Hello!
I have issues with native.showWebPopup() and cache on iOS (not tested on android yet, as it is not the primary target platform).
One of the scenes in my app open a fullscreen webPopup, which loads a HTML page on a remote server. This web page actually loads a game from a JS file collection. I changed some parameters in one JS file, thus changing the game behaviour (wining probability for the sake of tests). The win proba has been reduced from 100% to 0%.
I tested on my desktop, opened the game in a browser, and lost 3 times in a row.
I opened it on my iPhone, but the game continues to be winnable every time I try.
I read this topic about avoiding cache issued with a little trick:
Did it, but no changes.
I create the webPopup in enterScene()
I destroy it in exitScene() using native.cancelWebPopup()
I tried clearing Safari cache on the iPhone, even rebooting the device, but nothing seems able to solve the problem. The game includes “heavy” images, and the short download time on my consecutive tries indicates that most of it is cached already.
My best guess is that, JS being executed on client side, the JS files are not updated on the iPhone for some reason (I don’t know how the comparison between script files is done to determine when to update).
Any help would be greatly appreciated.
Thanks