• Sign Up Login
  • Features
    • Game Services
    • Real-time Analytics
    • LiveOps
    • Add-ons
  • Game Services
  • Real-time Analytics
  • LiveOps
  • Add-ons
  • Games
  • Pricing
  • Blog
  • Support
    • Docs
    • Forums
    • Contact
  • Docs
  • Forums
  • Contact
  • Sign Up Login
  • Ask a question
  • Spaces
    • PlayStream
    • Feature Requests
    • Add-on Marketplace
    • Bugs
    • API and SDK Questions
    • General Discussion
    • LiveOps
    • Topics
    • Questions
    • Ideas
    • Articles
    • Users
    • Badges
  • Home /
  • Bugs /
avatar image
Question by stefanopezzoli82 · Feb 20, 2018 at 06:03 PM · Push Notificationsandroid

Push notification to segment doesn't show on android while to single player works correclty

HI all,

I have an issue with the push notification to a segment of players, in fact no push is received on android when on ios it appear correctly.

If I try to send a push message to a single player form the player profile web page instead the notification works as espected.

Any suggestions please?

thanks

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

4 Replies

· Add your reply
  • Sort: 
avatar image
Best Answer

Answer by 1807605288 · Feb 28, 2018 at 11:26 PM

I would like some additional information, and I'll give you some general answers while I await confirmation.

  • Which PlayFab SDK are you using? I assume based on Android device, that it is Unity, or Android Studio
  • Which Push Plugin are you using? Our guides suggest that you use the device native FCM plugin, but I am aware that there are multiple 3rd party push plugins that will work as well.
    • If you are using the very old PlayFab push plugin, please note that we have discontinued that plugin (because it didn't really work very well), and suggest switching to the FCM plugin.
  • Please indicate any other plugins or 3rd party software added to your project, and the version numbers for all relevant engine versions, PlayFab plugins, push plugin, etc.

The rest of this answer assumes that you're using a recent PlayFab SDK, a recent version of Unity or Android Studio, and the FCM plugin which is the device native plugin.

For Android, the client side plugin we suggest for our customers is the Firebase Cloud Messaging plugin, which is a 3rd party plugin, but the one recommended by the makers of the Android device. You may use any other plugin you wish, with the assumption that we are sending messages that follow the FCM messaging format. We don't support issues with the plugin itself, as we are not the providers of any push plugin.

You have indicated that the push notification displays when the app is running, but doesn't display when the app is closed. This tells me that the push notification is being delivered correctly to the device and your chosen plugin, and any issue with the message not displaying is a client-plugin problem. If there were an issue with PlayFab, the message would not display at all.

If you are writing your own plugin, receiving offline messages is done via an entirely separate mechanism than when the app is running. The mechanism for this has changed several times in the last year, and it's very hard to keep working with changing versions of the Android device OS. The only real plugin that does this properly across multiple device versions is the device native FCM plugin, which is why we recommend it.

In our guide, we suggest testing with messages sent directly from the Firebase Console. If you can correctly receive a message from the Firebase Console, but NOT from PlayFab under the same conditions, then post those conditions here for us to review, and we'll address the problem.

Thanks!

Comment

People who like this

0 Show 10 · 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 stefanopezzoli82 · Mar 01, 2018 at 09:09 AM 0
Share

Hi Paul,

thank you for your assistance

I'm using unity with FCM plugin as you suggest, we use different plugins in the project now I will list all with version:

Unity 2013.3.0f3

Playfab sdk 2.32.171106

Firebase 4.4.2

Facebook sdk (android) 4.23.0

GameAnalytics sdk 3.10.4

GooglePlayGames 0.9.50

unity iap 1.16.0

I can understand your doubts about the client implementation side, but as previously mentioned, if I send a message directly to a single player, using the send push message panel in the player page from the playfab project admin page, the message is received both in game and outside game. The missing message happens only when I send a message to a players segments and the single player is outside of the game, if inside the message is received also in this case.

Also push msg from firebase is working but I assume that if it works from single player push message than that route is correctly binded.

There're implementation differences from direct player push send and segment push send or the segment send simply iterate through al the players in the segment calling the same single player push message that I call in the player page?

There's something else I can check?

avatar image 1807605288 ♦ stefanopezzoli82 · Mar 01, 2018 at 06:20 PM 0
Share

Got it. The difference between normal push and segment push is something I can check.

I will investigate within the next couple days.

Thanks for the clarifications.

avatar image stefanopezzoli82 1807605288 ♦ · Mar 29, 2018 at 10:05 AM 0
Share

Hello,

any news about this issue? I have done some tests this morning and the issue seems the same. I have also tried another device with a new profile ( google and playfabs ) to see if was a profile related issue but the behaviour is exactly the same.

Show more comments
avatar image stefanopezzoli82 · Mar 01, 2018 at 09:13 AM 0
Share

Unity 2017.3.0f3 sorry I wrote wrong

avatar image stefanopezzoli82 · May 08, 2018 at 08:48 AM 0
Share

Hello,

I still have this issue, any news about that? Any suggestions?

avatar image Brendan ♦♦ stefanopezzoli82 · May 14, 2018 at 07:38 PM 0
Share

Sorry for the silence - there is a bug open on this, and the team is looking into a potential fix. We'll update here as we have more info.

avatar image Weyrdworks Brendan ♦♦ · Jun 13, 2018 at 06:30 AM 0
Share

Still doesn't work from scheduled tasks or from segments. I'm assuming it won't work from Prize Tables as well. As OP mentioned, single player push works on both iOS and Android. Any updates?

avatar image Brendan ♦♦ · Feb 26 at 11:26 PM 0
Share

Apologies for the silence on this. The engineering team confirmed that this has been fixed in the service layer.

avatar image

Answer by pfnathan · Feb 20, 2018 at 06:04 PM

Can you send us your TitleID which is having an issue please?

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 stefanopezzoli82 · Feb 20, 2018 at 09:37 PM 0
Share

Sure, the titleID is F26D

avatar image pfnathan ♦♦ stefanopezzoli82 · Feb 20, 2018 at 11:12 PM 0
Share

On your log, are you seeing "PlayFab GCM error"?

avatar image stefanopezzoli82 pfnathan ♦♦ · Feb 21, 2018 at 09:25 AM 0
Share

No PlayFab Error.

What I can say is that the bug happens only if the push message is sent when the app is not executing. If the app is active the message is correctly received in both cases, but if not, only a direct push message appear in the notification area.

I'have done different tests and no relevant logs are reported.

one time I have found

/GCM: Register request missing messenger

but it was reported also on one successful received message so I don't think is related

Show more comments
avatar image

Answer by pfnathan · Mar 01, 2018 at 05:30 AM

@stefanopezzoli82

Hope Paul's guide gave you an insight.

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

Answer by Weyrdworks · Jun 13, 2018 at 05:33 PM

June 13 2018. Still doesn't work from scheduled tasks or from segments. I'm assuming it won't work from Prize Tables as well. As OP mentioned, single player push works on both iOS and Android. Any updates?

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

    6 People are following this question.

    avatar image avatar image avatar image avatar image avatar image avatar image

    Related Questions

    Error on load .pem file 3 Answers

    Notifications don't come to iOS device 2 Answers

    Missing class com.google.android.gms.tasks.Task on AndroidPushPlugin Unity5.0 1 Answer

    Unity Android Plugin 1 Answer

    Android Push Plugin not functioning with latest PlayGamesPlugin 2 Answers

    • PlayFab

      • Features
      • Games
      • Pricing
      • Blog
    • Engineers

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

      • Forums
      • Videos
      • Contact
      • Service Health
      • Terms of Service
    • Social

      • Facebook
      • Twitter
      • LinkedIn
      • YouTube
    • Privacy & cookies
    • Terms of use
    • Trademarks
    • About Microsoft
    • Jobs
    • Accessibility
    • Diversity & inclusion
    • Security
    • Company news
    • © Microsoft 2019
    • Anonymous
    • Sign in
    • Create
    • Ask a question
    • Post an idea
    • Create an article
    • Spaces
    • PlayStream
    • Feature Requests
    • Add-on Marketplace
    • Bugs
    • API and SDK Questions
    • General Discussion
    • LiveOps
    • Explore
    • Topics
    • Questions
    • Ideas
    • Articles
    • Users
    • Badges