0 Replies
      Latest reply on Jan 22, 2020 6:37 AM by prestoCaleb
      prestoCaleb Level 1 Level 1 (0 points)

        I have an apple pages document stored in my apps bundle. How can i open this document in pages?

        i've tried:

         

        UIApplication.shared.openURL(tempUrl)

        where tempUrl looks like

        "file:///var/containers/Bundle/Application/92EF2211-48F9-40C5-A0E8-3AD6598569D8/PrestoPhoto.app/Frameworks/PrestoAssets_iOS.framework/storage/designer/2135/Apple%20Pages%207/Presto%20Photo%20Book%20-%20Stock%20Book%20Black%20-%20Landscape.template"

         

        When i do

        UIApplication.shared.canOpenURL(tempUrl)

        I get

        error: "This app is not allowed to query for scheme file"

         

        So i think i have to set LSApplicationQueriesSchemes in info.plist to whatever the scheme is for apple pages which i can not find. i've tried pages://,  applepages:// etc. what is the scheme for apple pages?