question

joeypc6 avatar image
joeypc6 asked

Give Notification

I have A register System held on cloud script and i want to give the player a Notification when the other player accept him

And Selling method i want the player to know if the item is sold imminently without timed-based checks

is That possible or not

apisunity3d
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

·
JayZuo avatar image
JayZuo answered

If you mean the Push Notification on iOS/Android devices, then you can use server.SendPushNotification function. This function will send an iOS/Android Push Notification to a specific user, if that user's device has been configured for Push Notifications in PlayFab. If a user has linked both Android and iOS devices, both will be notified. For more details, please see https://api.playfab.com/docs/tutorials/landing-players/push-notification-basics.

For Selling method, I’m not sure how you implement it. In my opinion, you can put the seller’s PlayFabId together with the item he wants to sell. And when someone buys this item, you can get the seller’s PlayFabId and send the Push Notification with using this ID. So that the seller can know the item is sold without timed-based checks.

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.