question

eparesignups avatar image
eparesignups asked

How to send event about user data updates to client for responsive interactions?

The use case goes something like this:


User selects a recipient from their friend list and sends some in game money (not VC) to that friend.

The recipient receives some form of update or event from the server so that the application can update the UI to show that money has been sent to them.

In many applications, when another user sends money to a friend (like cash app or Venmo) the recipient gets a notification (not push notification but an in app one) soon after the transaction is made.

I’ve looked on here and have really only seen answers that point towards “pub sub” which seems to have been abandoned. The alternative seems to be to have the application constantly ask the server via cloud script if any data has changed. This would run in intervals.

This solution seems like it would massively increase the calls to cloud script which would increase the costs. This method also seems to consume more resources than necessary, however, there doesn’t seem to be any alternative in the playfab sdk.


Is there a way for responsive updates to client when key data changes on the server? If not, what other alternative are there for unity to get this kind of functionality?

Player Datadata
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
Sarah Zhang avatar image
Sarah Zhang answered

As you said, there is no such features in the PlayFab now can implement the in-app push notification. You need to use the external cloud service to achieve it. For example, you can consider using Azure Messaging services (https://azure.microsoft.com/en-us/solutions/messaging-services/) to handle the message store and message push from cloud to clients.

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.