Closed akshay253101 closed 2 years ago
Thanks for your pull request. It looks like this may be your first contribution to a Google open source project (if not, look below for help). Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).
:memo: Please visit https://cla.developers.google.com/ to sign.
Once you've signed (or fixed any issues), please reply here with @googlebot I signed it!
and we'll verify it.
ℹ️ Googlers: Go here for more info.
@googlebot I signed it!
@akshay253101 In addition to this I had to prevent navController.handleDeepLink(intent)
to be called automatically on onCreate()
of the Activity with following code:
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
val uri = intent.data
intent.data = null
}
Otherwise, my Activity still was getting created twice. For more details please refer to https://stackoverflow.com/a/63032780/3873867
@nijat-ahmadli The above solution has an issue that it will create multiple instance of same fragment. To avoid multiple instance and restart check this sample app for SingleActivity Architecture with multiple backstack https://github.com/beetlestance/android-extensions/tree/main/navigation
Using handle deeplinks restarts the app to create correct backstack but to open deeplink within bottom navigation without restarting app.