ios8 extension and container app how to share data

后端 未结 3 1925
南方客
南方客 2020-12-09 22:16

I\'m having trouble to share data between iOS 8 extension and container app. I set up the group from develop portal and Xcode, and my entitlements plist both look like:

相关标签:
3条回答
  • 2020-12-09 22:38

    My solution is edit the Info.plist of my custom keyboard:

    NSExtension -> NSExtensionAttributes -> RequestsOpenAccess

    Make it YES.

    Then delete the keyboard in your device and re-add it. In your keyboard add page you will find a setting named "Allow Full Access", enable it and the keyboard will access the shared data.

    0 讨论(0)
  • 2020-12-09 22:57

    The problem only occurs for custom keyboard, and iOS8 beta 2 fixed the issue.

    0 讨论(0)
  • 2020-12-09 23:00

    For keyboard extension, make sure enable RequestsOpenAccess as heheBear's answer
    and try remove and add back keyboard from Setting/Keyoboard occasionally
    keyboard extension is not stable and performance is really bad since beta 4, include beta 5

    0 讨论(0)
提交回复
热议问题