I am trying to push notifications through the API using big text style.
I am testing from postman using the below JSON body:
{
"audience": { "named_user":["someuser@gmail.com"] },
"notification": {
"android": {
"style": {
"type": "big_text",
"big_text": "This should be a very long text and also this and also this and also this and also this and also this and also this and also this and also this and also this and also this and also this and also this and also this and this is the end part of the message",
"title": "LiquorFlip",
"summary": "New preference on sale!"
}
},
"ios":{
"alert": "This should be a very long text and also this and also this and also this and also this and also this and also this and also this and also this and also this and also this and also this and also this and also this and this is the end part of the message"
}
},
"device_types": ["ios","android" ]
}
and using the reequired headers:
Authorization Basic XXXXXXXXX
Accept application/vnd.urbanairship+json; version=3
Content-Type application/json
When posting the above request I am getting the below response in the body:
{
"ok": true,
"operation_id": "74da40d6-4e62-43ed-9304-386af7940e8b",
"push_ids": [
"84316a9a-5001-456d-ac62-d965aad22e87"
],
"message_ids": [],
"content_urls": []
}
However I did not receive any notification in my android device.
Can you please help me with this issue?
Comments
7 comments