nowinandroid
nowinandroid copied to clipboard
[Bug]: Deeplink navigation duplicate MainActivity and mess up back navigation
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:
- Clear Now In Android app from launched list (means no activity exists).
- Get any notification from SystemTrayNotifier
- Navigate to app from notification
- Go back until you close the app
- Open app again
- 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
I was unable to reproduce this bug. Do you have video for it?
Sure, thanks!
For debugging I just edited NiaApplication onCreate method with:
val notifier = SystemTrayNotifier(this) notifier.postNewsNotifications( listOf( NewsResource( id = "test", title = "test", url = "test", content = "test", headerImageUrl = null, publishDate = Clock.System.now(), type = "test", topics = emptyList(), ), ), )