Skip to content
Snippets Groups Projects
Commit 554d7772 authored by Nicolas Pomepuy's avatar Nicolas Pomepuy Committed by Duncan McNamara
Browse files

Fix the notification permission asked on Android 12

parent 0cbe78a4
No related branches found
No related tags found
1 merge request!1584Fix the notification permission asked on Android 12
Pipeline #274533 passed with stage
in 21 minutes and 40 seconds
......@@ -102,7 +102,7 @@ object Permissions {
Manifest.permission.READ_EXTERNAL_STORAGE) == PackageManager.PERMISSION_GRANTED || isExternalStorageManager()
}
fun canSendNotifications(context: Context) = Build.VERSION.SDK_INT <= Build.VERSION_CODES.S || ContextCompat.checkSelfPermission(context, "android.permission.POST_NOTIFICATIONS") == PackageManager.PERMISSION_GRANTED
fun canSendNotifications(context: Context) = Build.VERSION.SDK_INT <= Build.VERSION_CODES.TIRAMISU || ContextCompat.checkSelfPermission(context, "android.permission.POST_NOTIFICATIONS") == PackageManager.PERMISSION_GRANTED
/**
* Check if the app has a complete access to the files especially on Android 11
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment