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 /
  • General Discussion /
avatar image
Question by yyz291 · Oct 15, 2017 at 01:32 AM · sdksPush Notifications

PushNotificationPackage no Badge property

I'm trying to show a Badge number on my app when I send push notifications. According to https://api.playfab.com/documentation/Server/datatype/PlayFab.Server.Models/PlayFab.Server.Models.PushNotificationPackage there is a Badge property which I can set, but when I create a PushNotificationPackage, the 'Badge' property doesn't exist in the PlayFab ServerModel SDK. Am I doing something wrong? If not, how may I get the badge to show up on my iOS device?

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

2 Replies

· Add your reply
  • Sort: 
avatar image
Best Answer

Answer by 1807605288 · Oct 17, 2017 at 08:00 PM

That badge property was made public on the website a little too soon. Apologies.

It is now released however:
https://api.playfab.com/releaseNotes#171016

Update your SDK to the latest version, and it should work.

Comment
yyz291

People who like this

1 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
avatar image

Answer by yyz291 · Oct 18, 2017 at 09:50 PM

Just noticed that there was a PlayFabSDK update yesterday which included the new Badge property! That is really great! However after installing the latest SDK (17.29.171016), the push notification is delivering the json directly as a notification to my iOS device (see image attached) instead of the message when I try to set the package (PushNotificationPackage) to send in my PushNotificationRequest. The push notification is seen but its message is wrong. There is also no badge displayed.

This also occurs when I use the Game Manager to send a Push Notification to my player when I enable the "advanced" toggle under it. If I send a message normally without the package, or without the "advanced" toggle checked in Game Manager, my message is sent normally. Attached are also screenshots of my function calls if necessary.

Is there anything that I have missed out to make it work?


1ec2ccab-a248-4d8c-ab18-45b9d3ea0sdsd2bd.jpg (127.5 kB)
-playfabpushnotification2.jpg (75.9 kB)
Comment

People who like this

0 Show 3 · 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 yyz291 · Oct 17, 2017 at 09:12 PM 0
Share

Sorry, I quoted my SDK version incorrectly! My SDK version is 2.29.171016

avatar image yyz291 · Oct 18, 2017 at 07:00 PM 0
Share

Okay I managed to figure it out - turns out I hadn't updated my Push Notifications to FCM for my title in the Game Manager > Settings > Push Notification. Problem is solved and managed to get badges displaying properly now!

avatar image 1807605288 ♦ · Oct 18, 2017 at 10:00 PM 0
Share

I see you already found it, but for everybody else, you need to find and push this button:

NOTE: It will also upgrade your Android push messages, which will require updating to FCM or another compatible 3rd Party Push Plugin (we know a few others work, but we don't have a definitive list yet).

untitled.png (42.0 kB)

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

    New Apple root certificate for push notifications 1 Answer

    What happened to the OneSignal addon? (having iOS push errors with PlayFab) 1 Answer

    Limit number of push notifications. 1 Answer

    how to display friend list Because i want to send friend request?? 1 Answer

    How to unregister device from playfab push notifications?,How to un register device from playfab push notifications?,How can we un register device from push notifications? 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