Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Incomplete
-
None
-
None
-
None
Description
var ref;
if (device.platform == 'Android')
else
{ ref = window.open('https://hadaf.pro', '_blank' ,'location=no,toolbar=no'); } /*
var ref;
if (device.platform == 'Android')
else
{ ref = window.open('http://192.168.1.7:3000', '_blank' ,'location=no,toolbar=no'); } */
ref.addEventListener( "loadstop", function() {
ref.executeScript({
code: "localStorage.setItem('pushnotifId','"regId"'); localStorage.setItem('platform','"device.platform"');"
//code: "alert('InApp');if (typeof(Storage) !== 'undefined')
else
{ alert('No local storage '); }; localStorage.setItem('pushnotifId','"regId"'); localStorage.setItem('platform','"device.platform"'); alert('LocalStorage'+localStorage.getItem('platform'));"
},function(data)
);
})
In android I get "Code Inserted Succesfully" when using _blank in both https://hadaf.pro and the local http://192..., however I get "Code Inserted Succesfully" when using _self only in the http://192.. but not in the https://hadaf.pro
So basically local storage seems to act weirdly in _self;