Share between an iOS extension and its containing app with the keychain?

后端 未结 4 1476
渐次进展
渐次进展 2021-02-07 03:43

I understand I can share data between my share extension and its containing app by enabling app groups and using NSUserDefaults (see Sharing data between an iOS 8 share extensio

4条回答
  •  心在旅途
    2021-02-07 04:27

    This can be done. It is a combination of creating a framework to do the Keychain access, and turning on "Activate Keychain Sharing" under "Capabilities". This link told me what I needed to know: http://swiftandpainless.com/ios8-share-extension-with-a-shared-keychain/

提交回复
热议问题