Ensuring a consistent, seamless user experience while managing data on user devices can be a daunting task. Your Median-powered app will store web cookie data similar to browsers. However, 3rd party cookie restrictions, app upgrades/uninstallations, and mobile device changes often result in lost settings and frustrated users. That's where our Native Datastore plugin comes in, offering a vital solution to save app settings and string data.
Median’s Native Data Store plugin offers multiple options based on your needs. Data can be stored to the local device in App Storage mode. This option ensures your data is accessible regardless of cookie availability, different URLs, or after a full device backup and restoration to a new device. You may also choose to use Cloud Storage mode which will synchronize the data to the user’s connected iCloud or Android Backup Service. This option allows your data to be accessible across multiple devices connected to the same account.
Thankfully, integrating Native Datastore into your Median app is a breeze thanks to our handy App Studio and JavaScript Bridge. Provide a satisfying, personalized experience to your users by preserving critical data and preferences this powerful native plugin.
Whether you require a fresh start with each app update or seek to maintain continuity across devices and versions, Native Datastore has got you covered.
At the same time, when your users require a clean slate after major changes, the plugin offers the App Storage option to ensure that user preferences are reset when necessary.
Ensure data is always available:
Avoid the pain of missing local data and ensure login session data and user settings are stored natively to user devices.
Make updates smoother:
Seamlessly sync user preferences across devices and app versions, avoiding any disruptions caused by upgrades or reinstallation.
Enjoy a fast and effortless integration:
Native Datastore seamlessly integrates into your app development process through our handy App Studio and JavaScript Bridge.
The Native Datastore plugin comes in handy when you want to save and keep certain settings and string data on your user's device. This could include things like preferred language, dark mode / light mode, font size, favorite pages/shortcuts, or even the items in a shopping cart.
The Native Datastore plugin uses UserDefaults on iOS and SharedPreferences on Android. These storage mechanisms are provided by the iOS and Android platforms and are best practice approaches to storing data for native apps.
In Cloud Storage mode, your app will leverage the capabilities of the iOS Apple Keychain and Android Backup Service. These guarantee that a logged-in user’s data remains intact across all connected devices throughout app upgrades, uninstall/reinstall scenarios, and, wherever possible, device changes.
Determining which settings to save using App Storage versus Cloud Storage depends on a few factors. First, consider whether the data pertains to the user’s session on the specific device or their account on any device. Second, consider how critical the data is to retain in the event of a device change or lost device. Lastly, take into account the size of the data.
For example, an app setting like dark mode would be most appropriately saved in App Storage specific to each device. An app setting like favorite shortcuts would be best saved in Cloud Storage to be shared across all devices. A single base64 encoded profile image might be saved to Cloud Storage and available automatically on all devices, but if many images need to be saved and updated frequently, App Storage would be more appropriate to reduce storage size and sync data. The Median team can always assist with guidance on your specific app.