Hello, Im using phonegap build Ive added phonegap-plugin-push version (1.8.1) with cli 6.3.0 ... I can see
assets/www/plugins/phonegap-plugin-push/www folderand there is also push.js in
assets/www/cordova_plugins.js but PushNotification is still undefined.
Here is my code:
here is the build log:
I dont understand why it is undefined, any ideas ? !
Can you share your PhoneGap Build App ID?
You are using 'typeof' as a function/method, as in:
which is syntactically incorrect.
typeof is an operand, not a function. See ECMAScript 2015 Language Specification – ECMA-262 6th Edition
The correct code would be