Skip to content

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

Open
@tomlocksapps

Description

@tomlocksapps

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

Metadata

Metadata

Assignees

Labels

AndroidIssues specific to the Android Platformpush notificationsquestionA question about the Amplify Flutter librariesto-be-reproducedIssues that have not been reproduced yet, but have reproduction steps provided

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions