I am using some jsb functions in my cocos creator project like jsb.saveimagedata and jsb.fileutils.xyz. it runs fine in the simulator but when I run it on the web I get the error :
can’t find variable jsb
is jsb not defined for the web?
for instance I am saving image data to the writable path…does that make sense in the web context? also, after saving the file I am checking if the file exists using jsb.fileUtils.isFileExist. will this work in a web build?
my requirement is basically that I want to save an image file on the device and then fetch image data from it when needed. please help with an example for the web build.