I have a pages document in my iOS applications bundle. I'd like to open this document directly with Apple's Pages iOS app. I know I have to add schemes in info.plist under LSApplicationQueriesSchemes. But i'm really just guessing what I should add. I have tried "pages"//" and "com.apple.pages://" and neither of these work.
If I try MS Word, it works!
UIApplication.shared.open(URL.init(string: "word://hello.doc")!, options: [: ]) { (result) in
print(result)
}
When I try:
UIApplication.shared.canOpenURL(URL.init(string: "pages://hello.pages")!)
I get the following error:
canOpenURL: failed for URL: "pages://hello.pages" - error: "The operation couldn’t be completed. (OSStatus error -10814.)"
When i google this error code, I find it means kLSApplicationNotFoundErr. Is it possible to open a .pages document this way? Or do u have to use UIDocumentInteractionController?