Adding the ionic-platform-web-client plugin stops app from working on devices and in emulators

Continuing the discussion from Push notifications problem as of february 2016 new problem because of updating:


Firstly thanks for the amazing framework again, the fact that this is mostly free is tremendous.

Unfortunately I’m experiencing an issue whereby when attempting to set up push notifications for my project for a good few hours, I get the impression that by adding the ionic-platform-web-client plugin to my app, it will no longer load on emulators or devices.

I tested this theory by moving over my code to a new project (copying ‘www’ directory, package.json files etc.) and the new projects (I did this multiple times) all worked as expected until I ran:

ionic add ionic-platform-web-client

When running in XCode, I recieve no error messages, just simply an app that doesn’t load past the splashscreen:

2016-02-28 11:21:46.698 GreyMatter[2451:3634417] Apache Cordova native platform version 4.0.1 is starting.
2016-02-28 11:21:46.699 GreyMatter[2451:3634417] Multi-tasking -> Device: YES, App: YES
2016-02-28 11:21:47.334 GreyMatter[2451:3634417] Using UIWebView
2016-02-28 11:21:47.336 GreyMatter[2451:3634417] [CDVTimer][handleopenurl] 0.066996ms
2016-02-28 11:21:47.339 GreyMatter[2451:3634417] [CDVTimer][intentandnavigationfilter] 3.066003ms
2016-02-28 11:21:47.339 GreyMatter[2451:3634417] [CDVTimer][gesturehandler] 0.096977ms
2016-02-28 11:21:47.406 GreyMatter[2451:3634417] [CDVTimer][splashscreen] 66.531003ms
2016-02-28 11:21:47.406 GreyMatter[2451:3634417] [CDVTimer][TotalPluginStartup] 70.665002ms
2016-02-28 11:21:47.417 GreyMatter[2451:3634417] active
2016-02-28 11:21:47.418 GreyMatter[2451:3634417] PushPlugin skip clear badge
2016-02-28 11:21:49.086 GreyMatter[2451:3634417] Resetting plugins due to page load.

I also tested this same assumption against adding the phonegap-plugin-push, but that was fine (was added to the project but never used), and the app still loaded in emulators and devices.

I’ve successfully implemented push notifications in a previous Ionic application, and think perhaps updates to various tools may be the cause of the issue.

Does anyone have any advice with how to get my app working in emulators and on devices again, and has anyone else experienced a similar issue?

Kind regards,

Ben Nawaz

Ionic information:

Your system information:

Cordova CLI: 6.0.0
Gulp version: CLI version 3.9.0
Gulp local: Local version 3.9.1
Ionic Version: 1.1.0
Ionic CLI Version: 1.7.14
Ionic App Lib Version: 0.7.0
ios-deploy version: 1.8.5 
ios-sim version: 5.0.6 
OS: Mac OS X El Capitan
Node Version: v4.2.4
Xcode version: Xcode 7.2.1 Build version 7C1002