KjellConnelly / react-native-shared-group-preferences

125 stars 56 forks source link

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

Open naveedashfaq272 opened 6 months ago

naveedashfaq272 commented 6 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 2 months ago

I am also getting this error while read data.

Cannot read property 'getItem' of null

elencho commented 1 month ago

same