如何使用消息api向所有用户发送firebase推送通知

时间:2017-12-15 10:14:13

标签: android firebase-cloud-messaging

邮递员中的

我使用下面的代码发送推送通知并收到错误:

{
"notification": {
    "title": "BISMILLAH",
    "body": "TEST"
},
"to": "/Refreshed token"
}

error: {
"multicast_id": 6066192261933960650,
"success": 0,
"failure": 1,
"canonical_ids": 0,
"results": [{
    "error": "InvalidRegistration"
}]
}

1 个答案:

答案 0 :(得分:2)

尝试使用ajax。

INSERT INTO `allcardticketingdb`.`ticket_dtl_comment`
(`comment`,
`comment_date`,
`UserID`,
`detailID`)
VALUES
(vcomment,vdate,vuser,v_ID);
END;
相关问题