Native iOS App being replaced with Expo App. How to share data?

I’m currently writing an Expo backed app that will 100% replace an existing iOS app. It will be signed with the same certificates and have the same bundle ID so it should just replace the existing app on the users phone without any fuss.

I’m trying to prevent the users from being logged out during this upgrade. Currently the iOS app saves the users API key in NSUserDefaults. I don’t think there’s a way I can read from there with Expo (without ejecting) but please correct me if I’m wrong.

I’ll be updating the Native app in the next few weeks (to prepare for it’s EOL) and this also gives me the opportunity to save a copy of their API key anywhere I want. Is there any way I can (from Swift) save the value somewhere that once the app is updated I could read back in from RN/Expo?

Filesystem, AsyncStorage, ???

Just looking for ideas and if anyone has done this sort of thing before.

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.