Trigger.io freezes on splash screen in iOS

Often my application will hang on the trigger.io FORGE splash screen and never display my user interface.

For me, this happens both in the simulator and on a real device. This is intermittent, which makes me think, maybe this is a race condition somewhere (do I need to wait for the forge to be initialized?).

I have no idea how to debug this, because the trigger console does not spit out an error even when displaying debug output.

What should I check? This is strange, because if I make this call:

setInterval(function() { forge.logging.log('hi'); }, 1000);` 

I see that my JavaScript code is executing (and continues to execute, since it is successfully written until I kill the application) .. but it still hangs on the splash screen. Often, pressing the home button and re-entering the application will work. But sometimes it takes several adjustments before it goes through the splash screen.

I saw this on two different development environments, on two different physical devices, and on an iOS simulator.

+4
source share
1 answer

This sounds like a rare issue in iOS that triggers a DOM event. Forge listens to hide the screensaver not to run.

The easiest way to fix this is to make sure the splash screen is hidden by calling forge.launchimage.hide() at the point where your code is ready. See http://docs.trigger.io/en/v1.4/modules/launchimage.html#hide for details.

If this does not help, let us know and we can try to figure out what else could be.

+4
source

All Articles