Implement local notifications on iOS
iOS mobile local notifications are outside the scope of the push service Hive Axyl provides. Instead, you implement them directly in the app with Unity Mobile Notifications.
Instead of the previous procedure based on the Apple local notification plugin, use the newly added LocalNotificationExamples.cs example.
- Request permission:
LocalNotificationExamples.RequestPermissionAsync() - Schedule a notification:
LocalNotificationExamples.ScheduleAsync() - Cancel a specific notification:
LocalNotificationExamples.Cancel() - Cancel all notifications:
LocalNotificationExamples.CancelAll()
When you use them together with remote APNs push on iOS, you may need to reinstall the APNs notification center delegate after the Unity Mobile Notifications permission request. For the detailed implementation flow, see Use the Notifications example.