appsflyer-react-native-plugin icon indicating copy to clipboard operation
appsflyer-react-native-plugin copied to clipboard

add on new intent override plugin for expo android

Open f0wu5u opened this issue 1 year ago • 0 comments

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

f0wu5u avatar Sep 18 '24 13:09 f0wu5u