segmentio / analytics-react-native

The hassle-free way to add analytics to your React-Native app.
https://segment.com/docs/sources/mobile/react-native/
MIT License
354 stars 181 forks source link

Cannot configure `timeToWaitForATTUserAuthorization` for `AppsflyerPlugin` #926

Closed ebeigarts closed 1 month ago

ebeigarts commented 3 months ago

Currently there is no way to configure timeToWaitForATTUserAuthorization for AppsflyerPlugin. It is hardcoded as 60. In our app the tracking prompt is not triggered on the first screen, so we want to increase the timeout.

https://github.com/segmentio/analytics-react-native/blob/master/packages/plugins/plugin-appsflyer/src/AppsflyerPlugin.tsx#L28

Expected behavior

new AppsflyerPlugin({ timeToWaitForATTUserAuthorization: 120 })
oscb commented 3 months ago

I'll add an option for this in the configuration.

alanjcharles commented 1 month ago

addressed in #945