To send test push notifications to a specific device, you need to add its Hardware ID (HWID) to the Test Devices list in your Pushwoosh account. The HWID is a unique identifier Pushwoosh assigns to a device for your specific app.
Important Clarifications:
* The HWID is not the same as your device's UDID.
* You must get the HWID from your own app's logs, not from the Pushwoosh Demo App, as each app has a different HWID for the same device.
Steps to Find Your HWID
To find the HWID, you need to view your app's real-time console logs when it launches. This requires connecting your device to a computer.
- Connect Your Device: Connect your iPhone or iPad to a Mac or Windows PC using a USB cable.
- Prepare to View Logs:
- On a Mac: Open the Console app (found in Applications > Utilities) or use Xcode's Devices and Simulators window.
- On a Windows PC: You can use third-party software like
3uToolsto view the iOS device's console logs.
- Capture the Log:
- Completely close (kill) your app on the iOS device.
- Start the log viewer on your computer and select your connected device.
- Launch your app on the device.
- Locate the HWID:
- In the stream of logs, search for
/registerDevice. You will find a log entry from the Pushwoosh SDK that contains the HWID. It will look similar to this:
[Pushwoosh] /registerDevice request: {"request":{"application":"XXXXX-XXXXX","hwid":"XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX", ...}}- Copy the alphanumeric value of the
hwid.
- In the stream of logs, search for
- Add to Pushwoosh:
- In your Pushwoosh Control Panel, go to Settings - Test Devices.
- Paste the HWID you copied and add the device.
You can now send test notifications directly to this device.
Comments
0 comments
Please sign in to leave a comment.