Every time users update my APP from stores (Android Google Play or IOs APP Store) the HWID is updated.

For example, this is the HWID for a same user device on evey app update:

{"app-version": "1.0.0", "hwid": "XXXXXXXXXXX:APA91bF6d2gLUM8FpxhnttpEA5XcMGQWFhScVe2zcVLWBjT7gkLAZzMQEHGdcLs788B2qWw8zY8jQPKI1YeXXX-UjUMGzYpK1gPfVbvp8xwmwYXwQwu95NzdXhSP9KmUeCR9OlgvMXXX", "user-agent": "Mozilla/5.0 (Linux; Android 7.0; MI 5 Build/NRD90M; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/63.0.3239.111 Mobile Safari/537.36"}
{"app-version": "1.0.1", "hwid": "XXXXXXXXXXX:APA91bXXX-V8eOD1fuabrrsIuL1mU1WA57hkucLtodwRu4Lgzc9R5yj3V6ab8yeDnE9spyMdnAn5XLMz3PlBYbfXXX-SY0GDJGWMrHTssctpN2XXX-sDaPVfvjKm6R1XXX-t0yusWXXX", "user-agent": "Mozilla/5.0 (Linux; Android 7.0; MI 5 Build/NRD90M; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/63.0.3239.111 Mobile Safari/537.36"}
{"app-version": "1.0.2", "hwid": "XXXXXXXXXXX:APA91bFzD4gpFVnawcoZvaFyTZAuej8x12AlZtEhRts5cXXX-2pWB51gcq0XXX-tO2OYE5UDRq3AAiuK2FzokrR7oEolr75QIyRkwLzEz1dorh_RCAJOwHD8j5fsUCGJiTH4Hg4NZXXX", "user-agent": "Mozilla/5.0 (Linux; Android 7.0; MI 5 Build/NRD90M; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/63.0.3239.111 Mobile Safari/537.36"}
{"app-version": "1.0.3", "hwid": "XXXXXXXXXXX:APA91bEpgwQTFM99dXFOanAz7vQXL8I9aaKuVBB083YVJCHXXX-rHcLofIzKvYows6T_SL1oehLSTiCDEaQlouxx3XXX-umve5rlPMylTVu101BPeHCxJYuJjGAEFklZo1sFYDh4mXXX", "user-agent": "Mozilla/5.0 (Linux; Android 7.0; MI 5 Build/NRD90M; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/63.0.3239.111 Mobile Safari/537.36"}

Then I don't kown how many devices has the user, because same devices get a new HWID on every update.

Also I can't delete devices with an old app-version value from my database because an user can set two identical devices with same app.

How can I get a really unique device id for every user?

Thanks!

asked 29 Jan, 16:24
eusonlito's gravatar image

eusonlito
214

edited 29 Jan, 16:25

Hello,

Both HWIDs and push tokens are used for storing the information about a particular device in our system. HWIDs (hardware ID) are the unique device identifiers that are used for storing devices in user base; they are usually generated by Pushwoosh SDK according to IDFV/IDFA, or Android ID. While push tokens are provided by gateways (GCM, APNs, WNS, etc.) directly and used for sending pushes to devices.

Push Token could be changed in some cases such as reinstallation and app update. Moreover, it should be emphasized that Google tends to change tokens from time to time and it's hard to tell how often such events occur. Please note that Google does not provide any clear information regarding the token expiry process and it is unpredictable to some extent.

Meanwhile, only device reset (factory reset) and some very specific cases could cause HWID changing.

Also, you can use the custom tag "logged in/logged out" and send a message only to those who have logged in.

Regards, Ivan

permanent link
answered 31 Jan, 09:30
iskoritzky's gravatar image

iskoritzky
4028

Hello,

Please note that XXXXXXXXXXX:APA91bF6d2gLUM8FpxhnttpEA5XcMGQWFhScVe2zcVLWBjT7gkLAZzMQEHGdcLs788B2qWw8zY8jQPKI1YeXXX-UjUMGzYpK1gPfVbvp8xwmwYXwQwu95NzdXhSP9KmUeCR9OlgvMXXX is a device token, not a HWID.

Could you please check it on your side?

However, you can use our Push by User ID feature in order to set a unique value to each user.

Regards, Ivan

permanent link
answered 31 Jan, 08:51
iskoritzky's gravatar image

iskoritzky
4028

You are right. It's a device token, sorry. What's difference between device token and HWID? Device token is updated on every app update and HWID remains same?

User ID is not valid for me because user can logged in my app in some devices and other not, I need to notify only to logged devices.

Thanks!

(31 Jan, 09:04) eusonlito eusonlito'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:

×49
×38
×15

question asked: 29 Jan, 16:24

question was seen: 51 times

last updated: 31 Jan, 09:30