emeraldsanto / react-native-encrypted-storage

React Native wrapper around EncryptedSharedPreferences and Keychain to provide a secure alternative to Async Storage.
https://www.npmjs.com/package/react-native-encrypted-storage
MIT License
572 stars 77 forks source link

Sharing storage with app extensions #93

Open jorgegvallejo opened 2 years ago

jorgegvallejo commented 2 years ago

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 commented 2 years ago

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

airakivela commented 1 year ago

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.