android / android/nowinandroid
[Bug]: Deeplink navigation duplicate MainActivity and mess up back navigation
- Dominant language
- Kotlin
- Stars
- 21.8k
- Forks
- 4.6k
- Avg merge
- 19h 20m
- Merged PRs (30d)
- 2
Description
### Is there an existing issue for this?
- [X] I have searched the existing issues
### Is there a StackOverflow question about this issue?
- [X] I have searched StackOverflow
### What happened?
How to reproduce the bug:
1. Clear Now In Android app from launched list (means no activity exists).
2. Get any notification from SystemTrayNotifier
3. Navigate to app from notification
4. Go back until you close the app
5. Open app again
6. Try to go back again - you will see main screen twice before going to home screen
Thank you!
### Relevant logcat output
_No response_
### Code of Conduct
- [X] I agree to follow this project's Code of Conduct
Contributor guide
Research direction
Reproduce the sequence starting from SystemTrayNotifier after clearing the app from the launched list, then trace how the notification opens MainActivity and builds the navigation stack. Done means reopening the app after closing it no longer shows the main screen twice when navigating back.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, kotlin
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100