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 Kim Strasser · Feb 19, 2020 at 12:42 PM · Push Notifications

Is it possible to store the content of a push notification in title player account?

I want to use SendPushNotification server API in Cloud Script to notify the player, for example when the player won an item or virtual currency. Is it possible to store the subject and the message of this push notification somewhere in title player account?

I need to store the subject and the message somewhere so that the player can read it when he wants.

Is there something similar like PlayFabClientAPI.GetTitleNews for push notifications so that the player can read his notifications when he wants?

Comment

People who like this

0 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 · Feb 20, 2020 at 06:47 AM

You may use Player Data to store it or directly store locally in the client. I don’t think it necessary to be stored somewhere safe like Player Read-only data because it only for reading.

If you want to store on the server side so that player can review it at any time or after switching to a new device, I think you can add a client API call UpdateUserData to upload the notification contents (in OnMessageReceived Functions if it is in Android). Meanwhile, as I have noticed in many mobile games on the market, they may directly cache the data locally to reduce the server loads.

Comment

People who like this

0 Show 4 · 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
avatar image Kim Strasser · Feb 20, 2020 at 07:39 AM 0
Share

I found out that the free limit for player data value size is 10,000 bytes. But how many free player data key/value pairs can I create?

I'm not sure if I should create one key/value pair for each push notification that I send to the player.

bildschirmfoto-2020-02-20-um-082636.png (64.3 kB)
avatar image SethDu ♦ Kim Strasser · Feb 21, 2020 at 08:45 AM 0
Share

There is no specified limit to the amount number of data entries, the player data value size 10,000 bytes should be calculated via total key size plus total value size.

avatar image Kim Strasser SethDu ♦ · Feb 22, 2020 at 09:42 AM 0
Share

Is it possible to display the current used total size(key size + value size) in Game Manager?

What happens if a player already uses 10,000 bytes and if my cloud script tries to create a new key/value pair for this player? Does cloud script create the key/value pair in this case or not?

Show more comments

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

    3 People are following this question.

    avatar image avatar image avatar image

    Related Questions

    How can I use Push Notifications 1 Answer

    Playfab android notification error,Playfab android notifications error 1 Answer

    Push notifications: application name and PlayFab title name? 1 Answer

    How frequently can I call RegisterForIOSPushNotificationAsync/AndroidDevicePushNotificationRegistrationAsync? 1 Answer

    AndroidDevicePushNotificationRegistrationRequest 409 conflict error 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