Question:
How do I set up my Chrome browser as a test device?
Answer:
Web browsers are registered as test devices by their Hardware ID (HWID), not by push token. The QR-code auto-configuration flow works for iOS and Android apps only.
- Open your website and subscribe to push notifications.
- Right-click the page and choose Inspect.
- Open the Application tab (in Safari it is the Storage tab).
- Go to IndexedDB → PUSHWOOSH_SDK_STORE → keyValue and copy the value of the
params.hwidrecord.
Alternatively, runawait Pushwoosh.getHWID()in the Console tab. This method returns a Promise, so useawaitor.then(); callingPushwoosh.getHWID()without them just printsPromise {}. - In the Control Panel go to Settings → Test Devices, click Create test device → Push, and fill in Device Name, Device HWID and Device Type (Web). Click Save.
See Add test push devices and Device identifiers for details.
Comments
0 comments
Please sign in to leave a comment.