I am trying to send push notification from firebase to iOS device but not successful. Following is the payload I tried:
var message = {
notification: {
title: '$GOOG up 1.43% on the day',
body: '$GOOG gained 11.80 points to close at 835.67, up 1.43% on the day.',
},
apns: {
headers: {
"apns-priority": '10'
},
payload: {
aps: {
alert: {
title: '$GOOG up 1.43% on the day',
body: '$GOOG gained 11.80 points to close at 835.67, up 1.43% on the day.',
},
"content-available": true
}
}
},
token: "adacxxxxxx 152 string"
};
When I try to trigger fbAdmin.messaging().send(message)
, I receive {"code":"messaging/internal-error","message":"Internal error encountered."}
.
I have another format for Android and it was working fine. So, I am trying to understand why iOS is not working. Any suggestions or help is appreciated as I have spent a few days on this.