Question:
How can I obtain the HWID / push token of a device to store it on my own server?
Answer:
Use the SDK getters below and send the values to your backend yourself.
Android
String hwid = Pushwoosh.getInstance().getHwid();
String pushToken = Pushwoosh.getInstance().getPushToken();
iOS (SDK 7.x)
let hwid = Pushwoosh.configure.getHWID()
let pushToken = Pushwoosh.configure.getPushToken()
Web SDK 3.x — both methods are asynchronous:
const hwid = await Pushwoosh.getHWID();
const pushToken = await Pushwoosh.getPushToken();
References: Android SDK API docs, iOS SDK docs, and Understanding device identifiers in Pushwoosh (also explains how to read both values from device logs and from browser IndexedDB).
Comments
0 comments
Please sign in to leave a comment.