Commit 8da4fc84 by wujek-srujek Committed by GitHub

fix/1158: Return permanentlyDenied for Permission.notification.status (#1159)

Co-authored-by: Rafał Świerzyński <rafal.swierzynski@jambit.com>
parent 78604e7f
## 11.0.3
* Fixes a bug where `Permission.notification.status` would never return `permanentlyDenied` on Android.
## 11.0.2 ## 11.0.2
* Fixes a bug where `Permission.Phone` would always return 'denied' when requesting the permission status. * Fixes a bug where `Permission.Phone` would always return 'denied' when requesting the permission status.
...@@ -72,4 +76,4 @@ instead of 'denied' when the user would dismiss the permission dialog. ...@@ -72,4 +76,4 @@ instead of 'denied' when the user would dismiss the permission dialog.
## 9.0.2 ## 9.0.2
* Moves Android implementation into its own package. * Moves Android implementation into its own package.
\ No newline at end of file
...@@ -609,7 +609,7 @@ final class PermissionManager implements PluginRegistry.ActivityResultListener, ...@@ -609,7 +609,7 @@ final class PermissionManager implements PluginRegistry.ActivityResultListener,
if (status == PackageManager.PERMISSION_GRANTED) { if (status == PackageManager.PERMISSION_GRANTED) {
return PermissionConstants.PERMISSION_STATUS_GRANTED; return PermissionConstants.PERMISSION_STATUS_GRANTED;
} }
return PermissionConstants.PERMISSION_STATUS_DENIED; return PermissionUtils.determineDeniedVariant(activity, Manifest.permission.POST_NOTIFICATIONS);
} }
@PermissionConstants.PermissionStatus @PermissionConstants.PermissionStatus
......
name: permission_handler_android name: permission_handler_android
description: Permission plugin for Flutter. This plugin provides the Android API to request and check permissions. description: Permission plugin for Flutter. This plugin provides the Android API to request and check permissions.
homepage: https://github.com/baseflow/flutter-permission-handler homepage: https://github.com/baseflow/flutter-permission-handler
version: 11.0.2 version: 11.0.3
environment: environment:
sdk: ">=2.15.0 <4.0.0" sdk: ">=2.15.0 <4.0.0"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment