Open m7madmagdy opened 1 day ago
You can do something like this I believe:
message = { 'token': "000iddqd", # send to a specific device 'data': { payload: { data: { id: 1 } }.to_json }, 'notification': { title: notification.title_th, body: notification.body_th, }, 'webpush': { ....data } }
https://firebase.google.com/docs/reference/fcm/rest/v1/projects.messages#WebpushConfig
You can do something like this I believe:
https://firebase.google.com/docs/reference/fcm/rest/v1/projects.messages#WebpushConfig