Sample Push Code currently throws 'TypeError: Cannot read property 'pushNotification' of undefined'


#1

If you use the current version of the ‘push code along’ it breaks. Also if you go to git and replace your code with the sanctioned code in git.


#2

Steps to re-create:

  1. If you download all of the github code it do not throw an error provided you update
    your app tokens manually in the .factory(’$ionicCoreSettings’,
    function() { … } in the lib/ionic-core.js file

  2. If you use the CLI function ‘ionic add ionic-service-push’ to update the tokens in lib/ionic-core.js it breaks.
    So sometthing seems to be broken in client 1.6.4 whereas in 1.6.3 it worked.


#3

do they know about this and on the fix?