Vanethos / flutter_notification_permissions

Plugin for Flutter to check and ask for Notification Permissions
BSD 2-Clause "Simplified" License
81 stars 72 forks source link

requestNotificationPermissions() doesnt open settings in on iOS simulator #26

Closed dukaric1991 closed 4 years ago

dukaric1991 commented 4 years ago

requestNotificationPermissions() doesnt open app settings in simulator on mac, is this expected?

My code:

Container(
                                          child: Transform.scale(
                                            scale: ScreenUtil().setWidth(2.5),
                                            child: CupertinoSwitch(
                                              activeColor: store
                                                  .theme.cupertinoSwitchColor,
                                              value: store.notificationsStore
                                                  .notificationPermissionGranted,
                                              onChanged: (_) async {
                                                NotificationPermissions
                                                    .requestNotificationPermissions(
                                                  openSettings: true,
                                                );
                                              },
                                            ),
                                          ),
                                        )
dukaric1991 commented 4 years ago

Ok, it didnt open app settings because permission was granted.

Can NotificationPermissions.requestNotificationPermissions method open app notifications settings no matter if permission is granted, unknown or denied?

Vanethos commented 4 years ago

Why do you need to open the app if the permission was granted?

EDIT: upon further consideration this is out of the scope of the current project, going to close the issue