NotificationSettingsDeepLinkCallback typedef

NotificationSettingsDeepLinkCallback = Future<void> Function(NotificationSettingsDeepLinkInfo info)

Callback type for when the OS requests the app to show notification settings.

Dreamic automatically performs permission flow integration before invoking this callback:

  • Snapshots denial state, then refreshes permission status
  • Auto-initializes FCM if permission is granted
  • Resets ALL notification tracking if permission is still denied (re-engagement signal)
  • Claims deep link ownership to prevent race with lifecycle resume handler

The info object provides the consuming app with enriched context about the current notification state.

Implementation

typedef NotificationSettingsDeepLinkCallback = Future<void> Function(
  NotificationSettingsDeepLinkInfo info,
);