im trying to use Firebase Dynamic Links to open a screen in the app, like so:
FirebaseDynamicLinks.getInstance()
.getDynamicLink(intent)
.addOnSuccessListener(activity) { pendingDynamicLinkData ->
val uri = pendingDynamicLinkData?.link
val fragment = fragmentFromUri(uri)
fm.replace(fragment)
}
This however is asynchronous. So my main screen is visible for a split second and then switches to a deeplinked one.
Is there way to avoid this? Can I extract the deep link synchrously? When I'm already installed I do see the intent.data parameter, however after fresh install the data is null, and only the firebase callback works. How does it even work if the intent has null extras? Is there some network check or whatever?
Thanks