My issue lies in the behavior of the app built with Backbone.js and Cordova. Everything works smoothly when there is an active network connection, but things change when the device goes offline. During each launch under offline conditions, the app exhibits different behaviors.
Interestingly, the app freezes before even reaching the App Init code, which marks the beginning of the app's execution.
What could be causing such unpredictable behavior?
Could it be a race condition between the loading of Cordova Plugins? This suspicion arises from the fact that the console.log() statement within one of the plugins consistently works, even when the app freezes at the splash screen.
Please review the list of Cordova plugins being used:
<plugin name="cordova-plugin-inapppurchase" spec="~1.0.0" />
<plugin name="phonegap-plugin-push" spec="~1.8.0">
<variable name="SENDER_ID" value="572****26*6" />
</plugin>
<plugin name="com.virtualartifacts.webintent" spec="https://github.com/florentvaldelievre/virtualartifacts-webIntent.git" />
<plugin name="cordova-plugin-camera" spec="~2.2.0" />
<plugin name="cordova-plugin-console" spec="~1.0.3" />
<plugin name="cordova-plugin-device" spec="~1.1.2" />
<plugin name="cordova-plugin-dialogs" spec="~1.2.1" />
<plugin name="cordova-plugin-file" spec="~4.2.0" />
<plugin name="cordova-plugin-file-transfer" spec="~1.5.1" />
<plugin name="cordova-plugin-inappbrowser" spec="~1.4.0" />
<plugin name="cordova-plugin-network-information" spec="~1.2.1" />
<plugin name="cordova-plugin-splashscreen" spec="~3.2.2" />
<plugin name="cordova-plugin-vibration" spec="~2.1.1" />
<plugin name="cordova-plugin-whitelist" spec="~1.2.2" />
<plugin name="parse-push-plugin" spec="https://github.com/taivo/parse-push-plugin" />
<plugin name="cordova-plugin-statusbar" spec="~2.1.3" />
Any assistance in pinpointing the debugging process would be highly appreciated. Where do you suggest I should start my investigation?