I am trying to use Firebase
for push notification. i have successfully installed the Firebase
And Firebase messaging
via Cocoapods>
You should be calling (iOS 8+) registerForRemoteNotifications
, not isRegisteredForRemoteNotifications
.
Otherwise, you'll never get "high priority" messages from the Firebase server, delivered natively using APNS.
Please note that when you're running in XCode, you are running in sandbox mode, so be sure to register with the proper parameters.
Try sending it in "high priority" and see if your payload is in the proper APNS format:
{
"aps" : {
"alert" : "You got your emails.",
"badge" : 9,
"sound" : "bingbong.aiff"
},
}
Note that your payload may have =
instead of :
, which is acceptable.