HI,
I have trouble using the secure storage echo plugin. When the app loads, the plugin works fine. But when the app is sent to background (paused activity), and again resumed (resume activity), the plugin works randomly (mostly doesn't). It doesn't even respond with error. It just hangs. I given below some example code for your reference:
var ss = new cordova.plugins.SecureStorage(
function () {
console.log("Success");
},
function (error) {
console.log("Error " + error);
},
"my_app"
);
}`
When the app starts, I get a success message in the console. But when send to background (using back button), and restarting (by clicking on app icon), the success message rarely is displayed in the console. Please help. Any work arounds are welcome too.
HI, I have trouble using the secure storage echo plugin. When the app loads, the plugin works fine. But when the app is sent to background (paused activity), and again resumed (resume activity), the plugin works randomly (mostly doesn't). It doesn't even respond with error. It just hangs. I given below some example code for your reference:
index.js `document.addEventListener("deviceready", onDeviceReady, false);
function onDeviceReady() { // Cordova is now initialized. Have fun!
console.log("Running cordova-" + cordova.platformId + "@" + cordova.version); document.getElementById("deviceready").classList.add("ready");
var ss = new cordova.plugins.SecureStorage( function () { console.log("Success"); }, function (error) { console.log("Error " + error); }, "my_app" ); }`
When the app starts, I get a success message in the console. But when send to background (using back button), and restarting (by clicking on app icon), the success message rarely is displayed in the console. Please help. Any work arounds are welcome too.