Open b099l3 opened 2 years ago
Went with option 2:
Fix for the Application Installed event:
@b099l3
We can use cloud mode for facebook, no need to add the facebook library in our flutter-segment. Just add facebook destination from segment
admin panel.
https://segment.com/docs/connections/destinations/catalog/facebook-app-events/
For the advertising id, I fetch it from this plugin https://pub.dev/packages/advertising_id and set it manually using our existing method:
Segment.setContext({
'device': {
'adTrackingEnabled': adTrackingEnabled.toString(),
'advertisingId': advertisingId,
}
});
See this https://github.com/la-haus/flutter-segment/pull/54#issuecomment-1295875295 for details about why this didn't work in my case.
Context
I am looking to use Facebook App Events, only the Application Installed event, to track ads -> installs.
Current state of play
There is only a native and react-native support for this and Flutter we will have to add in to this repo or fork.
From reading these issues on this repo, I assume there is going to be work towards a "Fully Dynamic and Scalable Segment Integration":
17
18
In the meantime it looks like all integrations are done in this repo, with the idea of eventually separating them out:
49
PRs with integrations:
15
48
19
As for the Application Installed event, it appears there is an issue where it doesn't fire via the dart implementation:
26
I have noticed no
Application Installed
but I do getApplication Opened
Application Backgrounded
events. So I will try to look into that.Solutions
what is the best way to take this forward?