getNotificationDenialInfo method

Future<NotificationDenialInfo?> getNotificationDenialInfo()

Gets metadata about previous notification permission denials.

Useful for implementing "ask again after X days" or "ask again after Y launches" logic. Delegates to NotificationPermissionHelper.getNotificationDenialInfo.

Implementation

Future<NotificationDenialInfo?> getNotificationDenialInfo() {
  if (_testGetNotificationDenialInfoOverride != null) {
    return _testGetNotificationDenialInfoOverride!();
  }
  return _permissionHelper.getNotificationDenialInfo();
}