I figured out how to look at the console.log output using Xcode and I can see that there is a registrationID in the log. I'm not sure why the alerts showed undefined, but that's a moot issue now.
So, I took the registration ID in the log, used the same exact "phonegap push" command-line command used in the tutorial, but replacing the deviceID param's value. I didn't receive any notification on my iPhone. I assume it has to do with the certificate needed to send the notification. I was able to send a notification to the app using the Java PNS library which, the call of which does point to the certificate.
Your project works with PhoneGap Developer App because it uses a compilation certificate and other certificate for push notifications. These certificates have been generated by Adobe to be able to perform the tests.
You need access the "member center iOS", create a certificate and provisioning compilation and a certificate for push notifications. Then you will have to use this last certificate for from nodejs to send your push notifications.
how is it about Android? Are those certificates also generated by Adobe first? And if i make a Built, do i need an equivialent certificate from the Play Store too to get Push Notifications via FCM?
Thanks in advance,