-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AppsFlyer Destination not initializing properly #98
Comments
Here's an example project that shows the issue |
Hi @ClaireDavis thank you for your report, we start looking into this. |
Hi @ClaireDavis sorry to answer late, I can't replicate the issue, could you help me to show us the logs with the error please? |
In order to repro the error, I had to add a write key to the configuration. I then get this error on running the app and letting it load:
this is the output of my flutter doctor:
I've attached a zip showing the issue. You'll notice that |
Hi @ClaireDavis sorry to answer late, this is an example to use the AppsFlyerDestination plugin: |
hey @edsonjab, I've followed your example to initialize Segment with AppsFlyer the following way: Future<void> config(Configuration configuration) async {
final appsFlyerSettings = {
'AppsFlyer': {
if (defaultTargetPlatform == TargetPlatform.iOS)
'appleAppID': _dotEnv.env['APPSFLYER_IOS_APP_ID'],
'appsFlyerDevKey': _dotEnv.env['APPSFLYER_DEV_KEY'],
'httpFallback': false,
'trackAttributionData': true,
'type': 'mobile',
'versionSettings': {'foo': []}
}
};
_appsFlyerDestination = AppsFlyerDestination();
_segment = createClient(configuration)
..addPlugin(PluginAdvertisingId())
..addPlugin(_appsFlyerDestination);
await _segment.init();
_appsFlyerDestination.update(appsFlyerSettings, ContextUpdateType.initial);
} But I'm not seeing anything under the integration property inside the Segment debugger when I track an event. |
any update?? |
Hello - I'm attempting to migrate my app to use the latest analytics_flutter package, but when I try to add the appsflyer plugin, it doesn't initialize properly.
This is how I'm setting up my analytics client:
Then when
update
is called inAppsFlyerDestination
, thesettings
map is null so it returns early on line 24 ofplugin_appsflyer.dart
. Later whenidentify
is called, there is a userId, but then line 61 throws an error because it's force unwrappingappsFlyer
which was never set inupdate
because of the early return.How can I get this to work properly?
The text was updated successfully, but these errors were encountered: