Get Instant Solutions for Kubernetes, Databases, Docker and more
Airship is a leading Push Communication API provider that enables businesses to engage with their users through push notifications, in-app messaging, and more. It is designed to help developers deliver timely and relevant messages to users, enhancing user engagement and retention.
When using Airship's API, you might encounter an error related to 'Invalid Message Priority'. This issue typically arises when the message priority specified in the API request is not recognized or supported by Airship.
Developers may notice that their push notifications are not being delivered as expected. Upon checking the API response, an error message indicating 'Invalid Message Priority' is returned.
The 'Invalid Message Priority' error occurs when the priority level set for a message does not match the accepted values defined by Airship. Message priority determines how urgently the message should be delivered to the user.
Airship supports specific priority levels for messages, which dictate the delivery urgency. Using an unsupported priority value will result in this error.
To fix this issue, follow these steps:
Visit the Airship Documentation to understand the valid priority values. Ensure that your API request aligns with these values.
Modify your API request to include a valid message priority. For example, if the valid priorities are 'high' and 'normal', ensure your request uses one of these values:
{
"audience": "all",
"notification": {
"alert": "Hello, World!",
"priority": "high"
}
}
After updating the priority value, test your API request to confirm that the error is resolved and messages are delivered as expected.
By ensuring that your message priority aligns with Airship's supported values, you can avoid the 'Invalid Message Priority' error and ensure successful message delivery. For further assistance, refer to Airship's Support Page for more resources and support.
(Perfect for DevOps & SREs)
(Perfect for DevOps & SREs)