MicrosoftDocs / playfab-docs

Documentation for the Azure PlayFab service for game development
Creative Commons Attribution 4.0 International
97 stars 122 forks source link

iOS Push Notifications guide outdated and incomplete #561

Open kevinfoley opened 2 weeks ago

kevinfoley commented 2 weeks ago

The documentation for setting up push notifications on iOS has several issues:

  1. The example code uses a deprecated Unity API, UnityEngine.iOS.NotificationServices.RegisterForNotifications(). New projects should use the Mobile Notifications package
  2. The tutorial cannot be followed in a cross-platform application that implements Push Notifications on Android. The PlayFab documentation for Android push notifications directs us to use Firebase Cloud Messaging (FCM). If the FCM plugin is installed, on iOS it hijacks the normal notification APIs via swizzling. When we attempt to request user authorization to display notifications, we get an error "Attempting to complete future before FCM initialized."

Document Details

Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.