To retrieve the history of notifications sent to a specific device, you should use the getMessageLog endpoint within the Statistics API. The getPushHistory method is not suitable as it does not support filtering by Hardware ID (HWID).
How to use getMessageLog
- Endpoint:
POST /getMessageLog - Required Parameter: Set the
hwidto the specific device identifier. Note: The HWID value is case-sensitive. - Optional Parameters: Use
date_fromanddate_toto filter by time range.
Retrieving Message Content
The getMessageLog response provides statistics (timestamps, status) but not the full message content (title/body). To get the content:
1. Extract the message_code from the log entry.
2. Use the messages:list endpoint to retrieve details for that specific code.
Note: The getMessageDetails endpoint is legacy and not recommended.
Comments
0 comments
Please sign in to leave a comment.