Hi,
We’ve just upgraded to 1.10.2 and our previous version was very ancient (I think we had downloaded it from a Museum … 1.5.4). So we noticed there’s a change in HCP which requires us to WebAppLocalServer.switchToPendingVersion before reloading.
The thing is we keep catching js errors from that code that does not work with our clients but that works 100% of the time on our test phones. (I know, it’s always like that!)
So the error is: Uncaught TypeError: WebAppLocalServer.switchToPendingVersion is not a function
And here’s the code that’s creating it:
if (idleTime > 45){
console.log("boot/autoReloadHCP condition detected idleTime="+idleTime + " > 45sec");
updateIdleTime(true);
WebAppLocalServer.switchToPendingVersion();
Meteor.disconnect();
console.log("autoReloadHCP done: WebAppLocalServer.switchToPendingVersion();");
setTimeout(function(){window.location.replace(window.location.href);}, 3000);```
Any idea what the problem could be?
Regards,
Burni