What is push_token in registerDevice api, how do I get the psuh_token?

asked 31 Jul '15, 09:57
kuldeep's gravatar image

kuldeep
112

Hi,

Actually, the device token is, in some ways, analogous to a phone number. It contains information that enables APNS/GCM to locate the device on which your application is installed. It is also used to authenticate the routing of a notification.

Please note that device token (the same as push token) is received by our SDK from APNS or GCM and is sent over to our database. So, in order to retrieve it, you need to connect your device to the computer, run your project and look for the /registerDevice method in the console log.

See the more detailed instructions here:

Android: http://docs.pushwoosh.com/docs/android-faq#how-can-i-obtain-my-android-device-push-token

iOS: http://pushwoosh.readme.io/v1.0/docs/ios-faq?bypass=238797e9f6#how-do-i-obtain-my-ios-device-push-token-to-use-in

permanent link
answered 11 Aug '15, 14:20
Benedict's gravatar image

Benedict
7127

edited 11 Aug '15, 14:24

You may find this code helpful Pushwoosh.push(function(api) { $.post('/url/for/save/token', { pushToken: api.pushToken }); }); taken from http://domyhomeworkonline.net .

permanent link
answered 03 Jun, 09:01
MeganeBradly's gravatar image

MeganeBradly
-11

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×119
×73
×47

question asked: 31 Jul '15, 09:57

question was seen: 1,796 times

last updated: 22 Aug, 08:08