-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Closed
Labels
StaleIssue with no recent activityIssue with no recent activityblocked: customer-responseWaiting for customer response, e.g. more information was requested.Waiting for customer response, e.g. more information was requested.closed-by-botimpact: deprecated-versionThis bug exists only in an older version and is no longer present in later releases.This bug exists only in an older version and is no longer present in later releases.type: bugSomething isn't workingSomething isn't working
Description
Bug report
The Push notification permissions pop up appears while configuration of FCM, It should be controlled by user with "request requestNotificationPermissions().
FCM plugin:
firebase_messaging: ^7.0.3
Flutter version: 1.22.5, channel: stable
Platform : iOS
Testing on: Simulator (iPhone 11 pro), 13.6
`
The push notification permissions dialog should only appear if requestNotificationPermission() is called.
if (Platform.isIOS) {
// _firebaseMessaging.requestNotificationPermissions(const IosNotificationSettings(
// sound: true, badge: true, alert: true, provisional: false));
// }
_firebaseMessaging.configure(
onBackgroundMessage: Platform.isIOS ? null : backgroundAppNtificationHandler,
onMessage: (Map<String, dynamic> message) async {
},
onResume: (Map<String, dynamic> message) async {
},
onLaunch: (Map<String, dynamic> message) async {
},
);
`
Steps to reproduce :
- Set up FCM example provided with plugin
- Run
flutterpackages get` - Run on any iOS device/simulator
flutter run - On start up it will appear the " push notification permission pop up" even if requestNotificationPermission() is not called.
- Or comment followings code line
_firebaseMessaging.requestNotificationPermissions(const IosNotificationSettings( sound: true, badge: true, alert: true, provisional: false)); } - Uninstall app
- flutter run (And in start up it will display the push notification permission pop up)
Metadata
Metadata
Assignees
Labels
StaleIssue with no recent activityIssue with no recent activityblocked: customer-responseWaiting for customer response, e.g. more information was requested.Waiting for customer response, e.g. more information was requested.closed-by-botimpact: deprecated-versionThis bug exists only in an older version and is no longer present in later releases.This bug exists only in an older version and is no longer present in later releases.type: bugSomething isn't workingSomething isn't working