Skip to content
This repository has been archived by the owner on Nov 7, 2023. It is now read-only.

Sharing storage with app extensions #93

Open
jorgegvallejo opened this issue Jul 5, 2022 · 2 comments
Open

Sharing storage with app extensions #93

jorgegvallejo opened this issue Jul 5, 2022 · 2 comments

Comments

@jorgegvallejo
Copy link

Is it possible to share the encrypted storage (Keychain/EncryptedSharedPreferences) with app extensions?

So far I've only tried with iOS, but I can't access the data in my share extension, even with the app group (ie. group.com.appName) declared in both the main app and the extension.

Any help is appreciated, thank you.

@jorgegvallejo
Copy link
Author

Alright, I got it to work in IOS by adding the Keychain Sharing entitlement to both the main app and the app extension.

@airakivela
Copy link

airakivela commented Oct 5, 2023

Hi @jorgegvallejo.
Hope you are doing well.
I am using NotififcationServiceExtension.
Could you provide me any example how to get value from KeyChain in AppExtension?
Because when I dive in this package, for setItem, there is not any group in this package..
Thanks.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants