iT邦幫忙

0

利用curl 推播訊息(特定幾組token)

curl -X POST -H "Authorization: key=AAAAXZovoNQ...." -H "Content-Type: application/json" -d "{"notification": {"title": "This is from David", "body": "Hello"},"to":"eFHkg8shgobEWqcm....,cWHQvSBhRb0:AP...."}" "https://fcm.googleapis.com/fcm/send"

請問各位大大
"to":"eFHkg8shgobEWqcm....,cWHQvSBhRb0:AP...."
有2組token 要怎麼區隔?
麻煩解惑!感恩!

cshalove iT邦新手 4 級 ‧ 2020-03-31 17:51:18 檢舉
to 改用 registration_ids 然後 array 塞tokenlist
成功發送 感謝cshalove
圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

尚未有邦友回答

立即登入回答