콘텐츠로 이동

iOS 로컬 알림 구현하기

iOS 모바일 로컬 알림은 Hive Axyl 제공 푸시 서비스 범위가 아니라 Unity Mobile Notifications를 이용해 앱에서 직접 구현합니다.

기존 Apple 로컬 알림 플러그인 기반 절차 대신, 새로 추가된 LocalNotificationExamples.cs 예시를 사용하세요.

  • 권한 요청: LocalNotificationExamples.RequestPermissionAsync()
  • 알림 예약: LocalNotificationExamples.ScheduleAsync()
  • 특정 알림 취소: LocalNotificationExamples.Cancel()
  • 전체 알림 취소: LocalNotificationExamples.CancelAll()

iOS에서 리모트 APNs 푸시와 함께 사용할 때는 Unity Mobile Notifications 권한 요청 뒤 APNs notification center delegate를 다시 설치해야 할 수 있습니다. 자세한 구현 흐름은 Notifications 예시 활용하기를 참고하세요.