apla / me.apla.cordova.app-preferences

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

iOS and local Browser not working :( #108

Open quersumme opened 7 years ago

quersumme commented 7 years ago

Hello everybody,

I have problems with cordova-plugin-app-preferences in my ionic environment. :-(

I use the following code:

$ionicPlatform.ready(function() {
    $cordovaPreferences.store('key', 'myMagicValue')
      .success(function(value) {
        $scope.data.pref = "Success: " + value;
      })
      .error(function(error) {
        $scope.data.pref = "Error: " + error;
      })
});
    $cordovaPreferences.fetch('key')
      .success(function(value) {
        $scope.data.pref_read = value;
      })
      .error(function(error) {
        $scope.data.pref_read = "Error: "+value;
      })

On the android emulator is

On the iOS emulator is:

On the Chrome browser (ionic serve) is:

I have done the following steps so far:

<script src="lib/ngCordova/dist/ng-cordova.js"></script>
<!-- cordova script (this will be a 404 during development) -->
<script src="cordova.js"></script>

Can anyone help me?

Thank you, Tobias


Please specify your environment

Plugin version:

Toolchain:

Platforms affected:

What the scope of your problem:

ThodorisElissaios commented 7 years ago

also same problem here

nagubabu commented 7 years ago

Same problem for me also..