Hi,
I’m using App Preferences within my app and it works great in both the Android Virtual Device when debugging or when installed directly through APK.
For reference: https://ionicframework.com/docs/native/app-preferences
Nevertheless, when I publish my app to Google Play and install it through Google Play, App Preferences does not work. It never save nor load the preferences being set into the app.
Any clue what to do to resolve this issue? could it be a permission problem?
The code I use is pretty simple via Angular and latest version of Ionic:
Instantiate:
constructor(
private appPreferences: AppPreferences
) {}
To Set:
this.appPreferences.store('MyParameter',ev.target.value);
To Load:
this.appPreferences.fetch('MyParameter').then((res) => { this.MyParameter = res; });
Thanks for your help.
1 post - 1 participant