App not working on iOS device, but in simulator

Hey guys,

I’m trying to run my app on an iPad 2 with iOS (9.3.2) with XCode. The app works in the simulator, but not on the device. It is starting normally, but I can’t press any button. It looks like it freezes after the splash screen. The console of XCode looks fine:

2016-06-05 18:55:10.458 My App[222:9289] DiskCookieStorage changing policy from 2 to 0, cookie file: file:///private/var/mobile/Containers/Data/Application/54759EB3-2DD2-4A17-A890-9241A7B66B07/Library/Cookies/Cookies.binarycookies
2016-06-05 18:55:10.750 My App[222:9289] Apache Cordova native platform version 4.0.1 is starting.
2016-06-05 18:55:10.753 My App[222:9289] Multi-tasking -> Device: YES, App: YES
2016-06-05 18:55:10.885 My App[222:9289] Using UIWebView
2016-06-05 18:55:10.891 My App[222:9289] [CDVTimer][handleopenurl] 0.717998ms
2016-06-05 18:55:10.899 My App[222:9289] [CDVTimer][intentandnavigationfilter] 7.113993ms
2016-06-05 18:55:10.900 My App[222:9289] [CDVTimer][gesturehandler] 0.367045ms
2016-06-05 18:55:10.961 My App[222:9289] [CDVTimer][splashscreen] 60.352981ms
2016-06-05 18:55:10.971 My App[222:9289] [CDVTimer][statusbar] 9.294987ms
2016-06-05 18:55:10.985 My App[222:9289] [CDVTimer][socialsharing] 14.136016ms
2016-06-05 18:55:10.989 My App[222:9289] [CDVTimer][localnotification] 3.701031ms
2016-06-05 18:55:10.990 My App[222:9289] [CDVTimer][localnotification] 0.063002ms
2016-06-05 18:55:10.993 My App[222:9289] [CDVTimer][keyboard] 2.514005ms
2016-06-05 18:55:10.993 My App[222:9289] [CDVTimer][TotalPluginStartup] 102.974057ms
2016-06-05 18:55:11.331 My App[222:9289] Resetting plugins due to page load.
2016-06-05 18:55:13.921 My App[222:9289] Finished load of: file:///var/containers/Bundle/Application/7A6281A7-01A4-4727-82E6-8818EA7805DB/My%20App.app/www/index.html#/onboarding

I have tried to debug with Safari Inspector, but without luck. I find my device and index.html, everything is empty and I can’t reload :frowning:

With GapDebug I see at least the console log Ionic Core: – "plugins are ready". And in the network tab the request write to apps.ionic.io which is spinning forever.

Any idea how I can get my app running?

Thanks and kind regards,
Thomas

I finally found the issue! It was a problem in Apache Cordova. This post helped me a lot: iOS app freezes on load with Cordova 4.0.1 and latest ionic