-
-
Notifications
You must be signed in to change notification settings - Fork 839
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
error when send notification using FCM Http v1 #788
Comments
@dongphh you might be getting "Requested entity was not found." since the client token is not an existing / registered token at the FCM. Platform seems to be set FCM in your request example, however, there may be some IOS specified fields as well. |
I will take it and test your input. |
Can you get the notification data with title, message, and custom data payload but miss the sound with iOS? Right? |
@obuzyig Please update the request body as below: volume must be in the interval [0, 1] {
"notifications": [
{
"tokens": [
"ftc3Q_b9ny_zfRyEIvs6gC:APA91bELvcQlOGnErWfZY5GWgVTi2SMZ41rGs5mIa_BhUFxcpaumYaTpXX-6eQ5EIxIg0t4-ws35eVOcVz08rcnGp9hH-_JJACd8T5W47P4vAH0AZYnCOlQ-3Hqq3ygnTWeSKZX9WZip"
],
"platform": 2,
"title": "Title",
"message": "notice",
"data": {
"id": "40007399",
"isLogin": "Y",
"messagetype": "HTML",
"data_extend": ""
},
"apns": {
"payload": {
"aps": {
"sound": {
"name": "default",
"critical": 1,
"volume": 0.1
}
}
}
}
}
]
}
|
Thanks for your help. |
Hi @appleboy
I had test send to Android and IOS notification using gorush setup on docker.
I check log and see some message send error for IOS
Request like this
What is the cause of this error? and how to fix it?
And IOS not play sound when received message
Thanks
The text was updated successfully, but these errors were encountered: