question

HackerTester avatar image
HackerTester asked

How to get to know that Some data is changed?

(using cloudscripts to tag friend as confirmed/requestee/requester and showing them accordingly in the UI Can check the link below to get more info) How to get to know that a friend accepted ur request i mean if a friend A send request to friend b and then friend A is in lobby that exists in the game and friend b accepted the friend request at that time then how can i get instant update so that i can make api call and get further info if we use coroutine to get continuous update in gap of few secs but i that case i would be using a lot of api calls how can i pass info to friend A that now make a api call and show the friend in your friend list ? if anybody can help me then this could be useful for me also in email verification when the user email get verified i can do some actions regarding it instantly without making several api calls continously hope someone understands what is the ans to my problem and BTW these are the links i am following

Email verification playfab - https://docs.microsoft.com/en-us/gaming/playfab/features/engagement/emails/using-a-rule-to-verify-a-contact-email-address

Friend System (Two way friend system using cloudscripts) - https://community.playfab.com/questions/46961/add-friend-using-friend-request-with-acceptdecline.html

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

Currently, we support sending the email or sending the push notification to players to remind them something, please check the documentations Email messaging quickstart - PlayFab | Microsoft Docs and Push Notifications quickstart - PlayFab | Microsoft Docs for more information. For your case, you can call the API SendEmailFromTemplate and SendPushNotification, SendPushNotificationFromTemplate on the CloudScript directly or set a Rule to trigger the corresponding actions using your custom events.

Besides, for clarification, we currently don’t support the in-game notification. To implement the in-game notification, you can consider using the external web service, like Azure PubSub. If you don't want players to relay on the external platforms to receive the notification, the only way we provided for players to know the data updates in real time is calling the API methods such as GetFriendsList regularly.

1 comment
10 |1200

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

HackerTester avatar image HackerTester commented ·

@Sarah Zhang hmm... yeah i think creating rules to trigger events can e the solution, Thanks for your Ans

0 Likes 0 ·

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.