When a notification is pressed in my app, it goes to the onNewIntent()
and the app is processing the extras in the intent. I am not doing setIntent
any where in my code.
All is working good except for this weird behavior: If, after the notification was processed, the user presses the back button, which closes the activity) and then in the resent apps menu he presses on my app then the intent that gets to the app is the same intent that came from the push.
Just to be clear, If the user presses on the launcher Icon, it's not happening. It happens only if he presses on the recent apps.
why is that so?
I even tried to do a setIntent
with new extras but it's still stuck on the old intent.
Why is that and how can I fix this?
Update:
extraMatchId = intent.getStringExtra(StaticParams.KEY_MATCH_ID);
extraUrl = intent.getStringExtra(StaticParams.KEY_URL);