I'm missing just a single step, I can feel it...
I added the phonegap plugin to my project as so:
cordova plugin add phonegap-plugin-push --save --variable SENDER_ID="-redacted-"
and indeed it saved the entry into my config.xml
file. When I build and run the browser version
cordova build myApp browser
cordova run myApp browser
I get the error message: Error: exec proxy not found for :: PushNotification :: init
In the browser project folder, under myapp\platforms\browser\platform_www\plugins
there is a phonegap-plugin-push\www
folder with a single push.js
file, and nothing more. push.js
has calls to the native plugin (eg: exec(success, fail, 'PushNotification', 'init', [options]);
), but the plugin files that actually run the code are ... well, I don't exactly know. That's likely the problem, don't you think? :)
Any help getting this running in Chrome would be a big help. I'll move on and test Android after this.