jsb sys.localStorage undefined


#1

sys.localStorage is undefined in jsb, It works OK in browser.


#2

Please ensure your cocos2d-jsb version is supported sys.localStorage or not.


#3

The version cocos2d 2.2.1

It works well in browser,but not work in jsb


#4

did you binding cocos2d to AppDelegate.cpp?
Please refer to attachement.


#5

I have bound them to AppDelegate.cpp .
sys.localStorage throw the error message " localStorage was undefined "