Hi Pushwoosh,

In order to send notification to certain specfic device via web push, i found device token is needed for that purpose. From forum, i found it is possible to get device token but it is came from android and ios devices. However, my app is web application.

How to retrieve Device token or Hwid from web browser like chrome for send notification to specific targeted device?

Thank you.

asked 14 Nov '16, 08:56
Lim%20Leong%20Cheong's gravatar image

Lim Leong Ch...
214

Hello,

You could retrieve push token from Promise object returned after api.registerDevice(); method is successfully called.

Here is screenshot of Pushwoosh.api from browser console with object data mentioned above, for you to have a clearer picture.

pushwoosh_api_console

Regards, Nikita.

permanent link
answered 15 Nov '16, 04:51
novchinnikov's gravatar image

novchinnikov
2015

Hi Nikita,

Thank you for giving me another thought to retrieving device token and hardware id.

permanent link
answered 16 Nov '16, 15:20
Lim%20Leong%20Cheong's gravatar image

Lim Leong Ch...
214

Lim, you are welcome!

Regards, Nikita.

(17 Nov '16, 03:56) novchinnikov novchinnikov's gravatar image
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:

×64
×38
×15
×9

question asked: 14 Nov '16, 08:56

question was seen: 1,286 times

last updated: 17 Nov '16, 03:56