Hello,
I have push notifications currently working (using the testing on the dashboard). I want to send push notifications to individual devices via Cloud Code, using either the playerId (optimal) or the pushToken (as is done in the dashboard).
Is this currently possible?
If not, can we use firebase with cloud code and do it that way?
I’m currently converting my project from using playfab/azure to UGS and the only thing I’ve been unable to replicate is the ability to send custom push notifications from the “server”.
1 Like
Im using firebase in cloud code atm and it seems to work fine. I’d rather have it all via unity on the backend, but even if it was, you’d still need a firebase account for android, just not have to access the api in cloud code
1 Like
Any luck doing this for iOS users?
I have it working for production iOS and Android using firebase in cloud code. Not really sure what the delay is with unity, its a more than common use case for pau notifications
Cool - glad to hear you got it working.
I agree this is a pretty major oversight on Unity’s part.
Sounds like Google is, unsurprisingly, ahead on this front.
Maybe I’ll go that route for next project, but I’m currently in pretty deep with all the Unity services.
We really do appreciate the feedback on this and it is a use case we’re keen to solve for in the future.
In the meantime if you want to target specific players you could make use of Push Messages in Cloud Code though this will only work for currently connected and in game players and will not send them a device notification so it will not work for all use cases. Alternatively you can call out to a third party Push Notification service like OneSignal via Triggers and Cloud Code.
1 Like
Hi, I’ve been trying for days to connect playfab to firebase to send a message to a specific player, but it hasn’t worked.
Could you help me a little with the code part of the cloud script and maybe a unity example? please and thanks
:):
I’ll post some snippets when i get home. Do you have a firebase account setup?
2 Likes