appsflyer-react-native-plugin
appsflyer-react-native-plugin copied to clipboard
add on new intent override plugin for expo android
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;
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
cc: @iway1