-
Notifications
You must be signed in to change notification settings - Fork 142
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
feature/scalable-integration - Add dynamic and scalable segment integration #18
Conversation
Hi, @danielgomezrico @MaiKaY any update on this? |
|
||
try { | ||
ApplicationInfo ai = applicationContext.getPackageManager() | ||
.getApplicationInfo(applicationContext.getPackageName(), PackageManager.GET_META_DATA); | ||
|
||
Bundle bundle = ai.metaData; | ||
|
||
FlutterSegmentOptions options = FlutterSegmentOptions.create(bundle); | ||
setupChannels(options); | ||
} catch (Exception e) { | ||
Log.e("FlutterSegment", e.getMessage()); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Whats the idea behind this change?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Got it, then it does not relate to this PR right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@danielgomezrico I think it's related because it is a breaking change since we can't use an array in the android manifest or .plist. So, We need to remove it then.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, I dont understand why this is related to this, can you try to explain it again please?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- The old implementation (Integration using AndroidManifest.xml and ios info.plist) is deprecated.
- what I propose here is a new method that will not be compatible with the old implementation. Breaking change.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The old implementation (Integration using AndroidManifest.xml and ios info.plist) is deprecated.
- what I propose here is a new method that will not be compatible with the old implementation. Breaking change.
@ariefwijaya there is another issue open where initializing the sdk using the dart initialization results in App Installed events not being tracked on iOS:
#26
So while the old implementation is marked as deprecated, we had to revert back to it and rely on it for our iOS integrations
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh Thanks for the info, but in my case, I don't get that problem and not related to my implementation.
Because, I just improve our existing dart only installation..
You can continue the discussion about Installed Events not being tracked in this issue #26
@ariefwijaya thanks for this! Please take a look at my questions here and in the discussion |
@danielgomezrico Thanks for the reply. look forward to hearing your feedback. |
@danielgomezrico @MaiKaY any feedbacks guys? |
@ariefwijaya since the discussion is not already answered I would continue adding more code, it is better to think a solution a then implement it, there are still some unknowns in the discussion |
I've replied to your question already, have you checked it? @danielgomezrico |
No updates on this? Is great having the integration settings to be dynamic and not just supporting Firebase/Amplitude... |
Purpose
Types of changes
What types of changes does your code introduce?
Put an
x
in the boxes that applyHow to Test
Environment
Please define your environment to test this, you can choose multiple options. Put an x in the boxes that apply
Attach your `flutter doctor -v` inside code block:
Expected Results
Notes