Skip to content

AppsFlyer plugin issue #36

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

Closed
QoLTech opened this issue Nov 6, 2023 · 3 comments
Closed

AppsFlyer plugin issue #36

QoLTech opened this issue Nov 6, 2023 · 3 comments

Comments

@QoLTech
Copy link

QoLTech commented Nov 6, 2023

I am having trouble adding the AppsFlyerDestination plugin. Anytime I call .track() with data, I get an exception here.

[OTTO::ERROR::LOGGER] Exception -> type 'Null' is not a subtype of type 'bool' [OTTO::ERROR::LOGGER] #0 extractRevenue utils.dart:2 #1 AppsFlyerDestination.track plugin_appsflyer.dart:93 #2 EventPlugin.execute plugin.dart:54 #3 DestinationPlugin.process plugin.dart:163 <asynchronous suspension>

I'm not passing revenue in with the properties and it fails even when I do.

Also, is there any information on how this integration works? Does it send directly to AppsFlyer, or does it process the event through the connection within Segment? My events don't have anything in the "integrations" field where previously we did when using the old flutter_segment package.

@edsonjab
Copy link
Contributor

edsonjab commented Nov 6, 2023

Hi @QoLTech thank you for your report, we start looking into this.

@QoLTech
Copy link
Author

QoLTech commented Nov 9, 2023

It looks like an issue with Utils.extractRevenue:2. You're checking the value of the item in the map by key when it looks like you're attempting to check if the value of the item in the map is null or not. I can get around this by passing 'revenue': false in the properties since that actually satisfies what the code is actually checking. The fix would be to change that line to if (properties[key] == null) {

@edsonjab

@oscb
Copy link
Contributor

oscb commented Feb 8, 2024

Fix already merged

@oscb oscb closed this as completed Feb 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants