KjellConnelly / react-native-shared-group-preferences

127 stars 57 forks source link

Unable to Retrieve Stored Data from App Group in iOS Native App #35

Open naveedashfaq272 opened 8 months ago

naveedashfaq272 commented 8 months ago

I hope you're all doing well.

I've integrated this library to store data in the app group and successfully used SharedGroupPreferences.setItem and SharedGroupPreferences.getItem.

However, when attempting to fetch the stored data on the iOS native side, it returns nil values.

Could you please provide guidance on whether there are any extra configurations needed?

I've created a widget extension, but I'm unsure if additional code needs to be written inside the extension file.

Anyone can guide me what's can be the issue??

I did integrations with the help of this document: https://www.cristiangutu.pro/share-data-between-react-native-and-ios-widgets/

ashishneomenta commented 5 months ago

I am also getting this error while read data.

Cannot read property 'getItem' of null

elencho commented 3 months ago

same