Does LocalStorage work on JSB?

Does LocalStorage work on JSB?
0.0 0


Hi, I’m making a game using cocos2d-html5 and currently using LocalStorage to give persistence to the user. So I was wondering: does this work straightforward with no modifications neccesary if I compile this game with JSB for andoid, ios, etc?


The answer is ‘Yes’.:slight_smile:


That’s one less worry then. Thanks! :smiley:


wow, that is good to know. Thanks.


The API is cc.sys.localStorage