Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The launchNotification is null after clicking on a notification if the Android OS has destroyed the activity. #5496

Open
2 of 14 tasks
tomlocksapps opened this issue Sep 29, 2024 · 0 comments
Labels
pending-maintainer-response Pending response from a maintainer of this repository pending-triage This issue is in the backlog of issues to triage

Comments

@tomlocksapps
Copy link

Description

Hi,
I'm trying to implement the Push Notifications API in my app, and I've noticed that it doesn't work properly when the activity is destroyed by the system. This issue can be easily reproduced by enabling the 'Don't keep activities' option in the system settings.

I tested it on both an API 34 emulator and a Samsung S21.

Categories

  • Analytics
  • API (REST)
  • API (GraphQL)
  • Auth
  • Authenticator
  • DataStore
  • Notifications (Push)
  • Storage

Steps to Reproduce

  1. Go to System Settings -> System -> Developer options -> enable "Don't keep activities".
  2. Open the app.
  3. Press home button.
  4. Open push message.
  5. Amplify.Notifications.Push.launchNotification is null.

Screenshots

No response

Platforms

  • iOS
  • Android
  • Web
  • macOS
  • Windows
  • Linux

Flutter Version

3.24.3

Amplify Flutter Version

2.4.1

Deployment Method

Amplify Gen 2

Schema

No response

@github-actions github-actions bot added pending-triage This issue is in the backlog of issues to triage pending-maintainer-response Pending response from a maintainer of this repository labels Sep 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pending-maintainer-response Pending response from a maintainer of this repository pending-triage This issue is in the backlog of issues to triage
Projects
None yet
Development

No branches or pull requests

1 participant