bumptech / bumptech/glide

AGP 7.4.0 - When targeting Android 13 or higher, posting a permission requires holding the POST_NOTIFICATIONS

Open
#4,940 6 comments 12 reactions 0 assignees View on GitHub
bug
Dominant language
Java
Stars
35k
Forks
6.2k
Avg merge
1d 11h
Merged PRs (30d)
8

Description

# Description
Code: https://github.com/jaredsburrows/android-gif-example/pull/243

AGP 7.4.0+ brings in new lint checks

# Repro
```
git clone github.com/jaredsburrows/android-gif-example
cd android-gif-example
git checkout pr/jaredsburrows/updates-1666632461
gradlew :app:lintDebug
```

# Error:
```
Error: When targeting Android 13 or higher, posting a permission requires holding the POST_NOTIFICATIONS permission (usage from com.bumptech.glide.request.target.NotificationTarget) [NotificationPermission]

Explanation for issues of type "NotificationPermission":
When targeting Android 13 and higher, posting permissions requires holding
the runtime permission android.permission.POST_NOTIFICATIONS.
```
See: https://github.com/jaredsburrows/android-gif-example/actions/runs/3379144926/jobs/5610312788

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.