Microsoft Azure PlayFab logo
    • Multiplayer
    • LiveOps
    • Data & Analytics
    • Add-ons
    • For Any Role

      • Engineer
      • Designer
      • Executive
      • Marketer
    • For Any Stage

      • Build
      • Improve
      • Grow
    • For Any Size

      • Solo
      • Indie
      • AAA
  • Runs on PlayFab
  • Pricing
    • Blog
    • Forums
    • Contact us
  • Sign up
  • Sign in
  • Ask a question
  • Spaces
    • PlayStream
    • Feature Requests
    • Add-on Marketplace
    • Bugs
    • API and SDK Questions
    • General Discussion
    • LiveOps
    • Topics
    • Questions
    • Articles
    • Ideas
    • Users
    • Badges
  • Home /
  • API and SDK Questions /
avatar image
Question by Viacheslav Chiligin · Jun 02, 2021 at 01:32 AM · CloudScriptPush NotificationsFriends

Playfab action-event server system

Hello, I went through a lot of questions on the forum, but I still could not find an unambiguous solution to the problem.

What's the best way to send game events to the user?
Examples:
1. The player was taken to the clan and the event must be sent to him, so the user interface on his client is updated.
2. A friend of the player sent him help, and the list of currencies on the client has to update.
3. A friend request has been sent and a popup with the request must be shown.
Also, there are more similar events as well.
I have seen solutions using push notifications, but everywhere is written that you should not use this solution for the main logic of the game.

Comment
Viacheslav Chiligin

People who like this

1 Show 0
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

· Add your reply
  • Sort: 
avatar image
Best Answer

Answer by SethDu · Jun 02, 2021 at 09:49 AM

It is not supported by default due to the RESTful nature of PlayFab, and you have to send a request to get a response. However, it is possible to send messages to the client via Push Notification, and with the help of Rules feature, certain event will trigger the actions like sending push notification to the target players. Please refer to Push Notifications - PlayFab | Microsoft Docs.

Meanwhile, if you mean the real-time messaging, you may consider implementing SignalR to realize this feature. Good news is that we provide an official sample on GitHub -- MessagingClient. It is the fundamental implementation of preview feature PubSub (Please note that this feature has been delayed as you can see it is not included in the roadmap).

Comment

People who like this

0 Show 0 · Share
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Navigation

Spaces
  • General Discussion
  • API and SDK Questions
  • Feature Requests
  • PlayStream
  • Bugs
  • Add-on Marketplace
  • LiveOps
  • Follow this Question

    Answers Answers and Comments

    2 People are following this question.

    avatar image avatar image

    Related Questions

    Player Name in Push notification template/ Localization of Push notification messsages 1 Answer

    Avoid push notfication errors when sending notification to friends 1 Answer

    ailed to import package with error: Couldn't decompress package 1 Answer

    Friend request timeout? 1 Answer

    Get player ID by name 1 Answer

    PlayFab

    • Multiplayer
    • LiveOps
    • Data & Analytics
    • Runs on PlayFab
    • Pricing

    Solutions

    • For Any Role

      • Engineer
      • Designer
      • Executive
      • Marketer
    • For Any Stage

      • Build
      • Improve
      • Grow
    • For Any Size

      • Solo
      • Indie
      • AAA

    Engineers

    • Documentation
    • Quickstarts
    • API Reference
    • SDKs
    • Usage Limits

    Resources

    • Forums
    • Contact us
    • Blog
    • Service Health
    • Terms of Service
    • Attribution

    Follow us

    • Facebook
    • Twitter
    • LinkedIn
    • YouTube
    • Sitemap
    • Contact Microsoft
    • Privacy & cookies
    • Terms of use
    • Trademarks
    • Safety & eco
    • About our ads
    • © Microsoft 2020
    • Anonymous
    • Sign in
    • Create
    • Ask a question
    • Create an article
    • Post an idea
    • Spaces
    • PlayStream
    • Feature Requests
    • Add-on Marketplace
    • Bugs
    • API and SDK Questions
    • General Discussion
    • LiveOps
    • Explore
    • Topics
    • Questions
    • Articles
    • Ideas
    • Users
    • Badges