I am using Playfab Unity SDK version 2.34.180102
I found some problem with Push on Android
these my related case :
- I tried to bulk push from Playfab Dashboard with schedule task, but the notification doesn't appear
- I tried to push single player from Player Tab, apparently it's work but the title(Subject) shown PlayfabTitleId
- I tried to push from FCM, it's works as we expected
- I tried to bulk push from Playfab CloudScript, it's work but the title shown PlayfabTitleId
Do you need another information related this case?
Answer by 1807605288 · Jan 17, 2018 at 11:19 PM
Thanks for your submission.
You are correct, it looks like the Title gets lost in some circumstances.
I have filed a bug internally on this issue. I'll keep an eye on it and post again once there's been some progress.
Answer by Brendan · Jan 17, 2018 at 07:37 AM
Yes, can you please provide the code snippets showing the calls you're making, provide the details of the values of the parameters you're passing in, and specify your Push configuration? Specifically, it sounds like you're using the FCM plugin in all cases, is that correct? Finally, what is the Title ID, so that we can look at its setup?
Answer by kevinjulian · Jan 17, 2018 at 02:16 PM
public PFPushService(string deviceToken) { #if UNITY_ANDROID var request = new AndroidDevicePushNotificationRegistrationRequest() { DeviceToken = deviceToken }; PlayFabClientAPI.AndroidDevicePushNotificationRegistration(request, result => { Debug.Log("PFPushService: Play Fab Push Notification Registration Completed"); }, error => { Debug.LogError(error.ErrorMessage); }); #elif UNITY_IOS var request = new RegisterForIOSPushNotificationRequest() { DeviceToken = deviceToken }; PlayFabClientAPI.RegisterForIOSPushNotification(request, result => { Debug.Log("PFPushService: Play Fab Push Notification Registration Completed"); }, error => { Debug.LogError(error.ErrorMessage); }); #endif } void Awake(){ Firebase.Messaging.FirebaseMessaging.TokenReceived += (sender, args) => { var stringToken = args.Token; if (!string.IsNullOrEmpty(stringToken)) { // create service _pushNotifServiceService = new PFPushService(stringToken); } else { // handle error } }; }
Yes we use FCM plugin.
I cannot upload one more pic, that's show push notification work but the subject is '345B', and the message is correct
Answer by AdrianVoinea · May 01, 2018 at 02:41 PM
Hello.
This may be an older post, but I'm experiencing the exact same problem:
1) Pushing to user directly, displays it with Title id in title
2) Pushing from Schedule Task doesn't do anything
3) Sending from Firebase console works as intended
Is there any additional configuration step which I might have missed?
Thanks in advance,
Adrian
Yes, there's a known issue right now, which is specific to new Android Push setups. We're tracking on this in this thread: https://community.playfab.com/questions/18452/android-push-notifications-invalid-parameter-name.html