This is a guide for those who want to remove a Message Center message but might not be familiar with using APIs or the command line. The following steps will assume that you have access to the web dashboard.
|
This guide is specifically for mac users. If using a windows computer, you will need to install cURL which can be found here: cURL download |
Step 1: Find the push id of the message
The following guide has information and screenshots of how to find this information: How to find the Push ID
Step 2: Get the app key & app master secret
The following guide has information and screenshots of how to find this information: How do I find my App Key or App Secret?
Step 3: Open the command prompt
The command prompt is built into iOS operating systems. Instructions to open it can be found here: Get to the Command Line on a Mac
|
Windows users: After installing cURL, instructions to find the command prompt can be found here: How to Open the Command Prompt in Windows |
Step 4: Add info to a curl request
Fill in the push id, app key, and app secret into the following curl request:
curl -X DELETE \
https://go.urbanairship.com/api/user/messages/<PUSH ID GOES HERE> \
-H 'accept: application/vnd.urbanairship+json; version=3;' \
-u "<APP KEY GOES HERE>:<APP MASTER SECRET>" \
-H 'cache-control: no-cache' \
-H 'content-type: application/json'
- Note that there is a colon separating the app key and app secret in the above code
Step 5: Copy/paste into the command prompt
With your information written into the above info, copy/paste that into your command window and hit enter.
Confirmation of success
If your response is successful you will see a response come back that says the following:
{
"ok" : true
}
Your message has now be removed from the Message Center.
Related Content: