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 Brendan · May 04, 2017 at 04:46 AM · Push Notifications

Questions on Push Notifications

Questions on Push Notifications from a developer:

1. Can I send Push Notifications to a specific device?

2. I want to give players a daily reward, similar to regenerating currencies (but a catalog item, in this case). How would I drive notifications about this gift? Can I have the Push send every day at a certain time?

3. Is there an example anywhere of a friend asking another user via Photon for help or issuing a challenge, which uses Push Notifications?

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 Brendan · May 04, 2017 at 04:46 AM

1. Push Notifications are sent to a player account, rather than a device. So all devices configured for Push Notifications for that player, in that title, would receive the notification message.

2. Yes, you could create a scheduled Task which operates on the "all players" segment, and have it send out a once-a-day notification to players, to let them know about their gift. In it, trigger a script that checks the player's last sign-in timestamp, so that you don't send the notification to players who have already received the day's gift.

3. Photon Realtime doesn't directly provide a way to have hosted game logic, so the logic for requesting that a Push Notification be sent would have to come from the client. What you could do is have the client call a Cloud Script which checks to make sure that the request is legitimate (so that players aren't spamming people), and sends the Push.

Comment
developerjazzhaq
MGGD

People who like this

2 Show 5 · 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 developerjazzhaq · May 04, 2017 at 07:10 AM 0
Share

Thanks Brenden...

avatar image developerjazzhaq · May 04, 2017 at 07:10 AM 0
Share

Thanks a lot brenden

avatar image ignat-nee-1 · May 04, 2017 at 08:11 AM 0
Share

Greetings.
There is a small question - how can i send push notification to all players?
My apologies for such question, but i'm find script for only one recepient:
https://api.playfab.com/documentation/Server/method/SendPushNotification

avatar image ignat-nee-1 ignat-nee-1 · May 04, 2017 at 08:21 AM 0
Share

My apologies. Already find out answer - there is "segment" block in players section from dashboard, when you able create notification script for all players.

avatar image Brendan ♦♦ ignat-nee-1 · May 04, 2017 at 02:41 PM 0
Share

Correct - and for others looking into this, it's specifically called the "Task" system in the Game Manager (currently under the Automation tab).

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

    FCM ios push notifications aren't working (android does) for Unity 4 Answers

    How can I use AdvancedPlatformDelivery to send push notifications? 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