I made an app which uses PubNub (version 4.xx) && FCM.
Server sends me a JSON according the following format:
{
"pn_apns": {
"aps": {
"alert": "This is a push notification",
"badge": 9,
"sound": "bingbong.aiff",
"payload": {
"title": "Beastiality",
"message": "xxxx"
},
"type": 1
}
},
"pn_gcm": {
"data": {
"title": "Beastiality",
"message": "xxxxx"
}
},
"content": {
"title": "Beastiality",
"message": "xxxxxx"
}
}
The pn_gcm
is indicated, but I don't receive any push. If I make a push from Firebase console, it works fine. Is it a known issue or did I do something wrong?
Subscribe and push notifications (GCM and APNS) are not directly related in PubNub. You have to register for push notifications on channels and has nothing to do with the subscribe method.
Instructions:
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.