-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Push does not work as written in tutorial for Windows #487
Comments
Try this phonegap push --deviceID [whatever device id] --service gcm --payload '{ "data": { "title": "Hello", "message": "World"} }' |
Well that didn't work. Add a backslash before each double quote |
Thanks @racingsolution . Outer single quotes and escaped double-quotes worked in PowerShell: ...whereas outer double-quotes was necessary in the Windows command prompt: I would recommend that these instructions be included in the docs.phonegap.com documentation. |
@Lukenickerson thanks for pointing this out. I will update the docs. I've added Windows command line instructions in my push workshops but I forgot to update docs.phonegap.com. |
I have tried to run this on Windows to test on my phone (Galaxy S7) and in Chrome. When I use my phone device id it returns back with body: OK, but I do not get a message. When I put in my browser device id, the terminal freezes. Is there anything else I should be doing? |
Following along the instructions on http://docs.phonegap.com/develop/push-notifications/ with the default push example that is included with the Windows Phonegap app gives an error on the first "Sending Your First Push" step. I've found that doing
phonegap push --deviceID [whatever device id] --service gcm --payload '{ "data": { "title": "Hello", "message": "World"} }'
(with the appropriate device id entered) gives this error when using PowerShell:And a similar, but different, error when using the vanilla command prompt:
System: Windows 10, using Phonegap 6.4.3
Expected: Instructions would say that they are incompatible with Windows, or provide alternative command line instructions.
The text was updated successfully, but these errors were encountered: