Device is not defined error pops up when launching my Phonegap Push notification app
I used the example source code from ( https://github.com/phonegap-build/PushPlugin/tree/master/Example/www ). Problem is that, when I install my app and launch it my android phone (or android SDK emulator), it fails to register device to Android GCM. All the time error pops-up - "Device is not defined". I dont know exactly how I can catch error, why it fails to register device. Steps that I preformed is: – Created Phonegap project – Installed following 3 plugins (cordova-plugin-device.git, cordova-plugin-media.git, PushPlugin). – Registered App in Google Android GCM and retrieved my Goolge