Skip to content

Commit 76d748f

Browse files
committed
Don't change setting to don't ask again unless that's what we've got from system
1 parent ecca15d commit 76d748f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

com.unity.mobile.notifications/Runtime/Android/AndroidNotificationCenter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -686,7 +686,7 @@ public static PermissionStatus RequestPermissionToPost()
686686
// Can only request permission if applications target SDK is 33, not actual device SDK
687687
if (s_TargetApiLevel < API_POST_NOTIFICATIONS_PERMISSION_REQUIRED)
688688
{
689-
SetPostPermissionSetting(PermissionStatus.DeniedDontAskAgain);
689+
// don't change setting here, in case app gets updated
690690
return PermissionStatus.DeniedDontAskAgain;
691691
}
692692

0 commit comments

Comments
 (0)