Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49083

App Preferences - Android: not working when app installed via Google Pay

$
0
0

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

Read full topic


Viewing all articles
Browse latest Browse all 49083

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>