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
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.
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!
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?
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.
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.
Hello,
I still have this issue, any news about that? Any suggestions?
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.
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?
Apologies for the silence on this. The engineering team confirmed that this has been fixed in the service layer.
Answer by pfnathan · Feb 20, 2018 at 06:04 PM
Can you send us your TitleID which is having an issue please?
On your log, are you seeing "PlayFab GCM error"?
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
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?