i just copy and paste the same code
Send push notification on Skygear
@arsene I think maybe it is easier for you to try the sample project to make sure your GCM configuration is correct first.
And for your own code, make sure you understand the code and put it in the right place in your app. Beware you need to get the device token correctly (you can’t use the one signal SDK device token).
HI @arsene,
Please go to https://console.firebase.google.com/project/{your_project_id}/settings/cloudmessaging/
and Copy and paste the Server key
into the FCM API KEy at https://portal.skygear.io/app/wangudoc/push-notification
It is Server Key, not Sender ID.
Best,
Rick
possible to put this up with the chat?
https://docs.skygear.io/guides/chat/basics/js/#push-notification
Yes, you can use push notification with chat. We will polish it soon. (you may follow the issue here: https://github.com/SkygearIO/chat/issues/158)
For now, you can use the basic notification https://docs.skygear.io/guides/push-notifications/basics/js/