Skip to content

[firebase_messaging] add support for critical alerts on iOS #6471

Discussion options

You must be logged in to vote

in the code I maybe found that its already implemented.
But not well documented:

  if (Platform.isIOS) {
    FirebaseMessaging messaging = FirebaseMessaging.instance;
    NotificationSettings settings = await messaging.requestPermission(
      alert: true,
      announcement: false,
      badge: true,
      carPlay: false,
      criticalAlert: true,
      provisional: false,
      sound: true,
    );
    print('User granted permission: ${settings.authorizationStatus}');
  }

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by KaiBroeker
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant