Coder Social home page Coder Social logo

adriano-di-giovanni / cordova-plugin-shared-preferences Goto Github PK

View Code? Open in Web Editor NEW
9.0 4.0 8.0 17 KB

Shared preferences for Cordova. Save and retrieve persistent key-value pairs of any Javascript data type.

License: MIT License

Java 12.76% Objective-C 12.75% JavaScript 74.49%
cordova cordova-android cordova-ios cordova-plugin cordova-android-plugin cordova-ios-plugin shared-preferences

cordova-plugin-shared-preferences's People

Contributors

adriano-di-giovanni avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

cordova-plugin-shared-preferences's Issues

Error

Hello,

I get an error:

2019-06-16 22:55:15.554 30449-30449/pl.expij.app D/SystemWebChromeClient: file:///android_asset/www/cordova.js: Line 312 : Uncaught TypeError: Cannot read property 'get' of null
2019-06-16 22:55:34.680 30650-30650/pl.expij.app D/SystemWebChromeClient: file:///android_asset/www/js/index.js: Line 23 : Uncaught TypeError: Cannot read property 'SharedPreferences' of undefined

on line:
this.prefs = window.plugins.SharedPreferences.getInstance();

It starts to pop up from nowere, everything was working fine and one time app give that.

Does not work on API 30

I'm trying to get a String on shared preferences on API 30. But is not retrieving the value and it's not giving an error. Just freeze the intere application. Do you have any solution to it?
Could try it on your smartphone please.

It doesn't work across apps... (should it?)

I thought this should work across apps... but it doesn't. I use the same set in both my Cordova apps, but the key-value pair I create in one app, doesn't exist in the other app. Is there a way to fix this?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.