TPNS provides you with a troubleshooting tool for message push exceptions such as message delivery or push failures. You can use this tool to troubleshoot issues on your own or query device details (including the bound accounts and tags) via an account or token.
A developer successfully pushes a message to the testing device via the console, but this message is not displayed in the notification bar of the device. Using a token to query the device details detects that the notification bar is disabled. Enable it on the device, trigger registration again, and send a message to the device again. The message is now displayed in the notification bar.
An operator fails to push a message to a specified account. Using the account to query the token in the troubleshooting tool detects that the account hasn’t been associated with a token yet. Please submit a ticket to check whether the account binding API for Android or iOS was called.
After completing the TPNS integration, a developer pushes a message to a certain batch of device tokens, but an online user reports that the push message hasn't been reported. Querying the obtained token and
pushID of the user in the troubleshooting tool detects that the token is not in the push list.
- Account: refers to the unique ID of the user bound to the token, including OpenID and UID.
- Token list: displays tokens in reverse chronological order by binding time. A maximum of 10 tokens are listed in a page. If the account is bound to multiple devices, the message will be pushed to the last device bound to this account. To push the message to all devices bound to this account, please change the push settings via the console or the API.
Click Push Query on the Troubleshooting Tools page.
pushid (required) and the device token to be queried (required), and click Query to view the troubleshooting results.
- Select Push Management -> Task List on the left sidebar to obtain the
PushIDto be queried.
- Obtain it from the response parameter of the push API.
<uses-library android:name="org.apache.http.legacy" android:required="false"/>