Query on Android push notification
Hi Team,
When we tried to trigger push notification the problem is we are not getting anything in notification and we are getting everything in data
Below is the format expected
{
"notification" : {
"body" : "Hello From Campaign789",
"OrganizationId":"2",
"content_available" : true,
"priority" : "high",
"subtitle":"Campaign Push Message12",
"title":"Campaign Title34",
"text" : "Big Text",
"contentTitle": "Content Title",
"summaryText": "Big Text summary will get dsiplayed here we cans show any big text we want to display if notfication get expanded"
},
"data" : {
"landing_page" : "buybundle",
"text" : "Big Text",
"contentTitle": "Big Text Content Title",
"summaryText": "Big Text summary will get dsiplayed here we cans show any big text we want to display if notfication get expanded",
"priority" : "high",
"sound":"app_sound.wav",
"content_available" : true,
"bodyText" : "New Announcement assigned",
"organization" :"Elementary school"
}
}
but we are getting like below
{"_collapseKey":"7744000","_data":{"Title":"Push MK","_msg":"Hi Test,\n\nThis is a test push notification","_mId":"7744000","_dId":"c67ca44","Message":"Test MK"},"_from":"40133492374","_messageId":"0:1574082464037201%8046df8abe4668d0","_sentTime":1574082464029,"_ttl":3600}
Could anyone suggest how to achieve this.
Thanks,
