aws-amplify / aws-amplify/amplify-android
[Notification] Why are notifications not sent when the app is in the foreground?
- Dominant language
- Java
- Stars
- 287
- Forks
- 132
- Avg merge
- 2d 2h
- Merged PRs (30d)
- 45
Description
Looking inside `AWSPinpointPushNotificationsPlugin.handleNotificationReceived()`, notifications are not displayed on the device when the app is in Foreground.
In some cases it may appear as if it could not be sent, which can be a source of confusion.
If this is the intention, it should be noted in the comments.
https://github.com/aws-amplify/amplify-android/blob/97ddb8b546c9d9f1807314eff2928cc0ca6afd92/aws-push-notifications-pinpoint/src/main/java/com/amplifyframework/pushnotifications/pinpoint/AWSPinpointPushNotificationsPlugin.kt#L329
Contributor guide
Research direction
Open aws-push-notifications-pinpoint/src/main/java/com/amplifyframework/pushnotifications/pinpoint/AWSPinpointPushNotificationsPlugin.kt and inspect handleNotificationReceived() around the referenced line. Confirm how foreground notifications are handled, then document in the nearby comments whether the lack of device display is intentional and how it should be understood.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, aws, kotlin
- Domain
- documentation, mobile
- Issue type
- Documentation
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100