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 Ian Oliver · Jul 06, 2016 at 06:58 PM · Push Notifications

iOS SendPushNotification Payload

I've been experimenting with the SendPushNotification server API and I was wondering if it was possible to customize the actual notification by adding to it's payload.

Specifically, I am getting a notification on device like so:

{ aps: { alert: "Test message" } }

But I would like to be able to customize the payload to include more useful information for my app (mainly to handle the notification in the background):

{ 
    aps: { alert: "Test message" },
    myKey: { eventType: "coinsUpdated" }
}

My understanding is that "myKey" should appear in Unity3D's Notification.userInfo hash -- assuming that I can get playfab to pass "myKey" to the client.

I've tried adding arbitrary keys to the SendPushNotification request to no avail. I am hoping there is some way to provide payload information.

Is this possible with the current implementation of SendPushNotification?

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 · Jul 06, 2016 at 07:29 PM

We do currently support advanced Push Notifications for Android: https://api.playfab.com/docs/push-for-android/. We'll be adding support for it on iOS as soon as we can as well.

Comment

People who like this

0 Show 2 · 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 ryan · Oct 17, 2016 at 10:56 AM 0
Share

Any update on when Advanced Push Notifications for iOS might be available? We need this to make it easier to launch into one of our multiplayer games from an invite. Is there a feature request page where we can track these sort of items?

avatar image Brendan ♦♦ ryan · Oct 17, 2016 at 03:36 PM 0
Share

Sorry, but until we're actively working on a backlog item, we can't really provide a date for it, as our schedule can change quite a bit from sprint to sprint (due to the needs of the live service).

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

    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

    Any reasons not to utilize a different GCM plugin? 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