Hi all,
According to this instructions when I`m using B4J code to send notification to specific user, I put the FCM_Token of the user instead of topic :
but it returned with this error :
Please can you help me either sending through b4j to FCM_Token or using the php right way?
According to this instructions when I`m using B4J code to send notification to specific user, I put the FCM_Token of the user instead of topic :
B4X:
Send("fHt-0W4FSUu0ggRCfZac3A:APA91bFkFiLWho .. to the end of token", "title", "body")
B4X:
ResponseError. Reason: , Response: {
"error": {
"code": 400,
"message": "Request contains an invalid argument.",
"status": "INVALID_ARGUMENT",
"details": [
{
"@type": "type.googleapis.com/google.firebase.fcm.v1.FcmError",
"errorCode": "INVALID_ARGUMENT"
},
{
"@type": "type.googleapis.com/google.rpc.BadRequest",
"fieldViolations": [
{
"field": "message.token",
"description": "Invalid registration token"