Send push notification on Skygear


#21

i just copy and paste the same code


#22

@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).


#23

i’m using push plugin, and i’m able to get device token


#24

Great, any other information which you think might let us help you?


#25

nothing else, even if I click on send the push nothing happens this


#26

posible to make it run with skygear-Chat?


#27

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


#28

possible to put this up with the chat?

https://docs.skygear.io/guides/chat/basics/js/#push-notification


#29

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/


#30

Thanks, i’m waiting for the issues.