Closed chrisjenx closed 3 years ago
@chrisjenx I recommend following the approach I outlined here:
https://github.com/hotwired/turbo-android/issues/142#issuecomment-772585629
Activity.onCreate()
is too early to navigate, since the NavHostFragment
may not be attached/ready.
Closing in favor of: https://github.com/hotwired/turbo-android/issues/142#issuecomment-772585629
Testing locally I can't reproduce, so I'm guessing a real world issue where the Fragment isn't started before I call navigate from the TurboActivity?
This is where we get a deeplink which passes a location into the turbo activity. We use lifecycle hooks to fire this, so should always be fire on or after on activity
onCreate