Closed bhavin-qfonapp closed 2 years ago
When ask android.permission.POST_NOTIFICATIONS it's not showing onForwardToSettings and onExplainRequestReason.
android.permission.POST_NOTIFICATIONS
PermissionX.init(activity) .permissions(POST_NOTIFICATIONS) .onExplainRequestReason { scope, deniedList -> scope.showRequestReasonDialog( deniedList, "Core fundamental are based on these permissions", "OK", "Cancel" ) } .onForwardToSettings { scope, deniedList -> scope.showForwardToSettingsDialog( deniedList, "You need to allow necessary permissions in Settings manually", "OK", "Cancel" ) } .request { allGranted, grantedList, deniedList -> if (allGranted) { Toast.makeText(this, "All permissions are granted", Toast.LENGTH_LONG) .show() } else { Toast.makeText( this, "These permissions are denied: $deniedList", Toast.LENGTH_LONG ).show() } }
Please upgrade to 1.7.1 version. The problem would be fixed.
When ask
android.permission.POST_NOTIFICATIONS
it's not showing onForwardToSettings and onExplainRequestReason.