user1496151
user1496151

Reputation:

how to test push notification in android phonegap?

I downloaded the push notification sample project from MarkNutter Project and imported it as android project its working fine as of now I am able to register from device

Since I do not have some server to send notification to device, How sould I test if the device is receiving some notifications?

Upvotes: 3

Views: 2155

Answers (1)

mram888
mram888

Reputation: 5139

There are some steps that maybe you haven't done yet:

  1. First you must register in Google APIs site, select Services: https://code.google.com/apis/console/
  2. Turn the Google Cloud Messaging toggle to ON
  3. In the Terms of Service page, accept the terms.Now you need to create the Server Key
  4. Press “API Access” button
  5. Press “Create new Server key”. Either a server key or a browser key should work. The advantage to using a server key is that it allows you to whitelist IP addresses.
  6. Press “Create”.
  7. You can find your ProjectID from the URL in your Google API console. Usually it looks like this: https://code.google.com/apis/console/#project:12345678912:access In this example, it would be: 12345678912
  8. With your app ID and sender ID just change them in the code you get from MarkNutter Project and you'll be done.

Upvotes: 6

Related Questions