Skip to content

Commit

Permalink
Fix push notifications permission issue
Browse files Browse the repository at this point in the history
  • Loading branch information
ismartcoding committed Feb 17, 2024
1 parent 039a2b4 commit 61109b3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ enum class Permission {
} else if (this == POST_NOTIFICATIONS) {
val permission = this.toSysPermission()
val activity = MainActivity.instance.get()!!
if (ActivityCompat.shouldShowRequestPermissionRationale(activity, permission)) {
if (ActivityCompat.shouldShowRequestPermissionRationale(activity, permission) || !isTPlus()) {
val intent = Permission.getEnableNotificationIntent(context)
if (intent.resolveActivity(packageManager) != null) {
intentLauncher?.launch(intent)
Expand Down

0 comments on commit 61109b3

Please sign in to comment.