apla / me.apla.cordova.app-preferences

App preferences plugin for cordova
Apache License 2.0
201 stars 210 forks source link

Unable to fetch by key on Android #103

Closed JoeKomputer closed 7 years ago

JoeKomputer commented 7 years ago

Please specify your environment :

Plugin version:

Toolchain:

Platforms affected:

What the scope of your problem:

Please describe the issue: fetch is always returning null in android. It never makes it inside of this if statement(line:204 AppPreferences.java): if (sharedPrefs.contains(key)) { Even though the keys do exist, it is unable to find them in sharedPrefs.

Tested with both cordova 5.4.0 and 6.1.1, and Android 4.4.2 and 5.1.1.

apla commented 7 years ago

Same as #100