Open kevinfoley opened 5 months ago
we are very emergency about this ios push deprecated in unity 2022.3.53f1 If there is any possible alternative, please let me know.
because of our request, publisher started using Playfab. While positive opinions about Playfab are coming out, iOS push problem makes publisher feel not good. I hope an alternative comes out as soon as possible. Thank you.
is req.DeviceToken at below codes can be used in RegisterForIOSPushNotificationRequest?
IEnumerator RequestAuthorization() { var authorizationOption = AuthorizationOption.Alert | AuthorizationOption.Badge; using (var req = new AuthorizationRequest(authorizationOption, true)) { while (!req.IsFinished) { yield return null; };
string res = "\n RequestAuthorization:";
res += "\n finished: " + req.IsFinished;
res += "\n granted : " + req.Granted;
res += "\n error: " + req.Error;
res += "\n deviceToken: " + req.DeviceToken;
Debug.Log(res);
}
}
The documentation for setting up push notifications on iOS has several issues:
UnityEngine.iOS.NotificationServices.RegisterForNotifications()
. New projects should use the Mobile Notifications packageDocument Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.