aws-amplify / aws-amplify/amplify-android
customizable notification icon
- Dominant language
- Java
- Stars
- 287
- Forks
- 132
- Avg merge
- 2d 2h
- Merged PRs (30d)
- 45
Description
### Before opening, please confirm:
- [X] I have [searched for duplicate or closed issues](https://github.com/aws-amplify/amplify-android/issues?q=is%3Aissue+) and [discussions](https://github.com/aws-amplify/amplify-android/discussions).
### Language and Async Model
Kotlin - Coroutines
### Amplify Categories
Notifications
### Gradle script dependencies
```groovy
// Put output below this line
```
### Environment information
```
# Put output below this line
```
### Please include any relevant guides or documentation you're referencing
_No response_
### Describe the feature request
**customizable notification icon**
pinpoint sdk use ic_launcher_foreground that is hardcoded in the [code](https://github.com/aws-amplify/amplify-android/blob/3e5e8695ffaaaba280fbffa19587b593442d97d7/aws-push-notifications-pinpoint-common/src/main/java/com/amplifyframework/pushnotifications/pinpoint/PushNotificationsUtils.kt#L133), so it cannot be customized on the app side.
There are cases where a different icon is needed for notifications, so I would like the ability to pass a different icon.
### Initialization steps (if applicable)
_No response_
### Code Snippet
```java
// Put your code below this line.
```
### amplifyconfiguration.json
_No response_
### GraphQL Schema
```graphql
// Put your schema below this line
```
### Additional information and screenshots
_No response_
Contributor guide
Research direction
Start in aws-push-notifications-pinpoint-common/src/main/java/com/amplifyframework/pushnotifications/pinpoint/PushNotificationsUtils.kt at the linked notification-icon code and trace how notification options reach it. Done means an app can provide a custom notification icon instead of the hardcoded ic_launcher_foreground, with the behavior covered by the relevant existing tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- kotlin
- Domain
- mobile
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100