Skip to content

Commit 7ba0d67

Browse files
committed
Add comments for denying permission
1 parent 70754e7 commit 7ba0d67

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

android/hello_sdl_android/src/main/java/com/sdl/hellosdlandroid/MainActivity.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,10 @@ public void onRequestPermissionsResult(int requestCode, @NonNull String[] permis
8181
} else if (permissions[i].equals(Manifest.permission.POST_NOTIFICATIONS)) {
8282
boolean postNotificationGranted =
8383
grantResults[i] == PackageManager.PERMISSION_GRANTED;
84+
if (!postNotificationGranted) {
85+
// User denied permission, Notifications for SDL will not appear
86+
// on Android 13 devices.
87+
}
8488
}
8589
}
8690
}

0 commit comments

Comments
 (0)