AppsFlyerSDK / appsflyer-react-native-plugin

AppsFlyer plugin for React Native
MIT License
276 stars 197 forks source link

question regarding the af_app_opened event #499

Closed capaj closed 6 months ago

capaj commented 11 months ago

Sorry for deleting the issue template, but can I have just one question? Is af_app_opened event sent on startup by default or do I need to send it manually?

abdRida commented 10 months ago

same question !

amit-kremer93 commented 6 months ago

The SDK sends this event by default. You can read more here

Harkertron commented 1 month ago

Testing with the SDK we are observing the events are sent to Appsflyer correctly - with the exception of this specific af_app_opened event.

Is there explicit handling required for this event to surface? The iOS documentation linked above mentions triggering start within didBecomeActive iOS lifecycle - but this seems to make no impact - should we be calling isStopped=false, isStopped=true to restart the SDK if it was already running?

Similarly on Android - should we be restarting the Appsflyer SDK within the onStart() phase of the Android activity life cycle to force these events to surface? The documentation seems to imply it should just work without any extra configuration.

Any pointers would be appreciated :)