import android.content.intent
override fun onNewIntent(intent: Intent?) {
super.onNewIntent(intent)
setIntent(intent)
}
by default if import android.content.intent is not already in MainActivity and if override fun onNewIntent(intent: Intent?) is not already implemented.
This ultimately resolves issue with expo android not opening deeplinks when app is in background
In reaction to this issue https://github.com/AppsFlyerSDK/appsflyer-react-native-plugin/issues/558 and this closed PR https://github.com/AppsFlyerSDK/appsflyer-react-native-plugin/pull/559.
This adds the;
by default if
import android.content.intent
is not already inMainActivity
and ifoverride fun onNewIntent(intent: Intent?)
is not already implemented.This ultimately resolves issue with expo android not opening deeplinks when app is in background
cc: @iway1