I decided to play a bit with ionic2 push notifications and started from this document: http://ionicframework.com/docs/v2/platform/push-notifications/.
Following the “Push Notification docs” the problems started right the beginning:
ionic add ionic-platform-web-client results in:
ERROR: Error: ENOENT, open 'C:\ionic2app\www\js\app.js’
at Error (native)
Is your app declaration contained in ‘app.js’?
Apparently the ionic cli is still aiming a v1 ionic app, so there won’t be any app.js inside /www/js. Even if I fake the file in there, it won’t be able to inject the code since app.js has a different format in v2. Any solution to this?
Furthermore it adds the following code to index.html:
which, of course, won’t work. When I
ionic serve my app I get a beautiful 404 on the file.
Is there a manual solution to have the push notifications working in a v2 app?
Thank you for the help