We're updating our project to Unity 2022.3.7f1 and the class
UnityEngine.iOS.NotificationServices seems to no longer be part of Unity.
We already currently have push notifications working on iOS using the snippet provided in PlayFab's documentation (using Unity 2021) but there is nothing mentioning newer versions of Unity.
The current documentation converts
devicetoken (byte) into a string as shown below:
byte token = UnityEngine.iOS.NotificationServices.deviceToken; request.DeviceToken = System.BitConverter.ToString(token).Replace("-", "").ToLower();
UnityEngine.iOS.NotificationServices.deviceToken is no longer available, i've tried using the string value from
Firebase.Messaging.TokenReceivedEventArgs instead, like this:
request.DeviceToken = token.DeviceToken;
and like this:
request.DeviceToken = token.DeviceToken.Replace("-", "").ToLower();
but neither of them worked.
Could there be a difference in formatting when converting a string from a byte type (as it's done in the current documentation)? Or could it be that the device token passed in
Firebase.Messaging.TokenReceivedEventArgs is not the same one used by PlayFab as in
Thanks in advance! Any help here will be much appreciated as this is the only issue impending us from updating our app.