localStorage not found for native 3.0

For cocos2d-js-3.0, web browser works with localStorage without sys.localStorage, but native does not work.

native expect sys.localStorage, if I put sys.localStorage in javascript, web browser complains sys not defined.

Please help.

Hi
I can be normal use.
sys.localStorage.setItem(“xx”,xx);
What are your version?

I am using cocos2d-js 3.0. I got the support from cocos2d team, they told me to use cc.sys.localStorage, and it works out very well cross all platforms.

1 Like

so sorry…

cc.sys.localStorage this is right…