Assigned
Status Update
Comments
pe...@google.com <pe...@google.com> #2
Issue with notification access code in core. Unclear where, but probably safe to assume NotificationCompat
.
mi...@gmail.com <mi...@gmail.com> #3
Note that this is a lint error and can be suppressed or lowered to warning-level on the client side. Lowering back to P2
.
pe...@google.com <pe...@google.com> #4
To find cause of issue, update
androidx/platform/frameworks/support/+/androidx-main:buildSrc/public/src/main/kotlin/androidx/build/SupportConfig.kt;l=50 to 33 and then run ./gradlew :core:core:lintDebug
androidx/platform/frameworks/support/+/androidx-main:buildSrc/public/src/main/kotlin/androidx/build/SupportConfig.kt;l=50 to 33 and then run ./gradlew :core:core:lintDebug
mi...@gmail.com <mi...@gmail.com> #5
It's at
frameworks/support/core/core/src/main/java/androidx/core/app/NotificationManagerCompat.java:223: Error: When targeting Android 13 or higher, posting a permission requires holding the POST_NOTIFICATIONS permission [NotificationPermission]
mNotificationManager.notify(tag, id, notification);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Explanation for issues of type "NotificationPermission":
When targeting Android 13 and higher, posting permissions requires holding
the runtime permission android.permission.POST_NOTIFICATIONS.
pe...@google.com <pe...@google.com> #6
Handling this as part of
mi...@gmail.com <mi...@gmail.com> #7
Ok Thanks, I will see and let you know if the problem persists
Description
Version used: 1.8.0
Devices/Android versions reproduced on: Android 14
Details = We are using this library in one of our apps for a very long time, but suddenly I noticed this but in my latest divide that I was not able to upload files to websites which I am accessing through this library. I checked those websites on google chrome app and its working there but not with this library. downloading is working fine. In older android versions everything is working fine
Logs = "2024-03-26 07:42:57.172 2385-2743 ActivityManagerWrapper com.miui.home E getRecentTasks: mainTaskId=1300 userId=0 windowMode=1 baseIntent=Intent { act=android.intent.action.MAIN flag=270532608 cmp=ComponentInfo{in.example.example/in.example.example.MainActivity} }
2024-03-26 07:42:57.182 2385-2743 ActivityManagerWrapper com.miui.home E getRecentTasks: mainTaskId=1300 userId=0 windowMode=1 baseIntent=Intent { act=android.intent.action.MAIN flag=270532608 cmp=ComponentInfo{in.example.example/in.example.example.MainActivity} }
2024-03-26 07:42:57.347 2385-2743 ActivityManagerWrapper com.miui.home E getRecentTasks: mainTaskId=1300 userId=0 windowMode=1 baseIntent=Intent { act=android.intent.action.MAIN flag=270532608 cmp=ComponentInfo{in.example.example/in.example.example.MainActivity} }
2024-03-26 07:42:57.355 2385-2743 ActivityManagerWrapper com.miui.home E getRecentTasks: mainTaskId=1300 userId=0 windowMode=1 baseIntent=Intent { act=android.intent.action.MAIN flag=270532608 cmp=ComponentInfo{in.example.example/in.example.example.MainActivity} }"
If this is a bug in the library, we would appreciate if you could attach:
- Sample project to trigger the issue.
- A screenrecord or screenshots showing the issue (if UI related).