App not working after app store update


#1

Hi all,
We had a version of our app in the app store, ios only, and everything was working great. We just released a new major version, and during that time I updated both ionic and cordova to the latest versions (among lots of other changes and plugin upgrades, major version!). No problems on any device. Our new version gets approved by the app store, and suddenly nobody can upgrade from their old version. If they uninstall/reinstall it works great, but after an update it just goes to a white screen. If you kill the app and restart it, same thing.

I’m able to reproduce this by exporting an ad-hoc build of our old version, installing it on my phone via xcode’s devices panel, and then update an ad hoc build of the newest version. From this same devices panel, I see the xcode logs as follows:
Jun 5 17:26:50 ... <Warning>: Apache Cordova native platform version 4.1.1 is starting. Jun 5 17:26:50 ... <Warning>: Multi-tasking -> Device: YES, App: YES Jun 5 17:26:50 ... <Warning>: Using UIWebView Jun 5 17:26:50 ... <Warning>: [CDVTimer][handleopenurl] 0.283957ms Jun 5 17:26:50 ... <Warning>: Unlimited access to network resources Jun 5 17:26:50 ... <Warning>: Unlimited access to network resources Jun 5 17:26:50 ... <Warning>: [CDVTimer][intentandnavigationfilter] 2.319038ms Jun 5 17:26:50 ... <Warning>: [CDVTimer][gesturehandler] 0.100017ms Jun 5 17:26:50 ... <Warning>: Starting Facebook Connect plugin Jun 5 17:26:50 ... <Warning>: [CDVTimer][facebookconnectplugin] 0.222981ms Jun 5 17:26:50 ... <Warning>: [CDVTimer][file] 4.042983ms Jun 5 17:26:50 ... <Warning>: [CDVTimer][splashscreen] 19.551992ms Jun 5 17:26:50 ... <Warning>: [CDVTimer][statusbar] 3.881991ms Jun 5 17:26:50 ... <Warning>: [CDVTimer][keyboard] 0.244975ms Jun 5 17:26:50 ... <Warning>: [CDVTimer][backgroundfetch] 0.262022ms Jun 5 17:26:50 ... <Warning>: [CDVTimer][TotalPluginStartup] 32.600999ms Jun 5 17:26:50 ... <Warning>: createNotificationChecker Jun 5 17:26:50 ... <Warning>: not coldstart Jun 5 17:26:50 ... <Warning>: active Jun 5 17:26:50 ... <Warning>: PushPlugin skip clear badge Jun 5 17:26:50 ... <Warning>: Resetting plugins due to page load. Jun 5 17:26:50 ... <Warning>: Finished load of: file:///var/containers/Bundle/Application/D085B54A-3492-41D9-AADA-8EDC5E85B4B8/....app/www/index-deploy.html Jun 5 17:26:51 ... <Warning>: Ionic Core: plugins are ready

Pretty standard, right? If I just install our newest build via xcode on my phone, I get the same startup sequence, except that afterwards I start seeing my own logging statements once angular bootstraps.

As far as I can tell, no js code is actually running. I was worried that the deviceReady event wasn’t getting fired, so I put in a timer in js to bootstrap angular (for 30 seconds or so) to make sure that wasn’t the problem, no luck. I commented out all my angular code so that nothing runs except a simple console log, still no luck. I can’t get anything at all to run after an update.

Here’s my environment:
Cordova CLI: 6.2.0 Gulp version: CLI version 3.9.0 Gulp local: Local version 3.9.1 Ionic Framework Version: 1.1.0 Ionic CLI Version: 1.7.15 Ionic App Lib Version: 0.7.2 ios-deploy version: 1.8.3 ios-sim version: 5.0.4 OS: Mac OS X El Capitan Node Version: v4.2.3 Xcode version: Xcode 7.3.1 Build version 7D1014

Any ideas? Is there a way to make the app store do a full uninstall/reinstall during updates for example? I’ve been on this for ~4 hours and I’m not even sure what the problem is.
Thanks for your help!