Software Archive
Read-only legacy content
17061 Discussions

I am trying to build an app with cookies it is working in emulator but not working in mobile, i am using all the plugins

Murugesh_S_
Beginner
679 Views

i have attached my code 

0 Kudos
4 Replies
Dale_S_Intel
Employee
679 Views

When I try to import the project you posted, it has problems with one of the plugins:

The Intel XDK detected that the plugins and/or their versions in the Intel XDK project cookie_pro do not match those specified in your project's plugins directory. You must resolve the inconsistencies to open this project.

 

PLUGIN PLUGINS DIRECTORY SPECIFIED BY PROJECT FILE
io.litehelpers.cordova.sqlite origin: cordova-sqlite-storage@0.7.10 origin: io.litehelpers.cordova.sqlite
0 Kudos
Murugesh_S_
Beginner
679 Views

Now that error is not there everything is fine no error but app is working in emulator not in mobile!!!!!!!!!!!!!

0 Kudos
Hamilton_Tenório_da_
Valued Contributor I
679 Views

What is the error?

I use normally like this:

 

try {
        if(typeof(window.localStorage) != 'undefined') {
            if (window.localStorage.getItem(2)) {
                variable = window.localStorage.getItem(2);
            }
        } else {
            alert('window.localStorage, not defined');
            }
    }
    catch(err){
        alert('store_local,error,' + err);
    }

0 Kudos
Murugesh_S_
Beginner
679 Views

bro try with my code @Hamilton Tenório da Silva

I have no error but not working in mobile

0 Kudos
Reply