The Native Datastore feature in Twinr allows you to store and retrieve data locally on a user’s device.
This can be useful for saving preferences, user settings, or small amounts of data that should persist across app sessions without requiring network requests. With Twinr’s Native Datastore, you can store integers, booleans, and strings, as well as retrieve them when needed.
Store Int Data
Stores an integer value locally on the device under a specified key.
twinr_set_int_local_data("userScore",100);
In this example, the integer 100 is saved under the key "userScore".
Store String Data
Stores a string value locally on the device under a specified key.