Skip to content

[firebase_messaging] clear intent after onLaunch invoked on Android #1887

@ekasetiawans

Description

@ekasetiawans

I launch application and route to another page (not main page) by tapping a notification successfully. But I have problem, after I finished that page and return to main page and then close my application by pressing back button. Then I return to application by pressing recents button (task manager). My application will reopened the page with latest notification data.

To Reproduce
Steps to reproduce the behavior:

  1. Let application in background
  2. send a notification
  3. that will show another page when onLaunch or onResume invoked after notification tapped
  4. return back to main page of your application
  5. press back button or close application (dont close from task manager)
  6. open application from task manager (not from home screen)
  7. application will shows just like step 3.

Expected behavior
Just clear intent data after onLaunch or onResume invoked.

Additional context
I have try to add clearTaskOnLaunch in AndroidManifest.xml but it's not work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    impact: customerA bug with low impact (e.g. affecting only a few customers or has a workaround). (P3)platform: androidIssues / PRs which are specifically for Android.plugin: messagingtype: bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions