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.
source share