iOS security-scoped bookmark

Hello,

using UIDocumentPickerViewController and startAccessingSecurityScopedResource(), I can access to a directory on iOS using Bookmark data, but when I save a Bookmark data, security-scoped bookmark not survive quitting the app and re-launching it.

I used the Apple example here but my app doesn't appear in Settings > Privacy > Files and Folders ?

Security-scoped bookmark is-it available on iOS ?

Thanks.

Answered by DTS Engineer in 810225022

Technically, iOS doesn’t support security-scoped bookmarks. That’s why this option is only available on macOS.

However, if you have access to a resource then you should be able to persist that access using a regular bookmark. Is that not working for you?

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Accepted Answer

Technically, iOS doesn’t support security-scoped bookmarks. That’s why this option is only available on macOS.

However, if you have access to a resource then you should be able to persist that access using a regular bookmark. Is that not working for you?

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Thanks, I had positioned the bookmark data in the wrong place in my code, a regular bookmark persist now.

iOS security-scoped bookmark
 
 
Q