nowinandroid icon indicating copy to clipboard operation
nowinandroid copied to clipboard

[Bug]: Deeplink navigation duplicate MainActivity and mess up back navigation

Open ar2code opened this issue 1 year ago • 3 comments

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

ar2code avatar Jun 20 '24 12:06 ar2code

I was unable to reproduce this bug. Do you have video for it?

anhtuannd avatar Jun 22 '24 09:06 anhtuannd

Sure, thanks!

now_in_android_bug

ar2code avatar Jun 22 '24 12:06 ar2code

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(), ), ), )

ar2code avatar Jun 22 '24 12:06 ar2code