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
Document how to integrate a flutter program into an existing Android application that already has adobe integration #95
Comments
Can you elaborate more about the usage?
In your Android mobile application, how do you implement Adobe Analytics? Which Mobile SDK extensions you use? How do you send data to Analytics? And you want to add a Flutter embedded program which also can send data to Adobe Analytics? How are you going to send data to Analytics from Flutter? Use trackAction/trackState API or Edge.sendEvent API? General Info about how Adobe Mobile SDK send data to Analytics. |
We have existing native applications that we are extending with a Flutter module. The existing application already has Adobe metrics in it using the SDK. The Flutter instructions say the application needs to use FlutterApplication (or is it activity, anyway) but our existing app doesn't use that. The instructions say to set the wrapper type to WrapperType.Flutter. Does that break or affect the existing metrics in anyway? Why is the WrapperType required? |
@freemansoft Setting MobileCore.setWrapperType(WrapperType.FLUTTER); mainly helps to identify the platform in the Analytics metrics. So you can tell the data is coming from a flutter app. |
We have an existing Native app that we are extending with Flutter code running in a fragment.
The mode switch looks global so it sounds like everything will get tagged as flutter metrics if we use WrapperType.FLUTTER |
We haven't tested or officially supported the scenario of running Flutter module in an existing native application. In this case, I am not sure your use case if you are going to call aepsdk_flutter SDK API from the flutter module or you have all the analytics code on the Native side. e.g trackAction/trackState calls. And for aepsdk_flutter, we don't support Analytics plugins (https://github.com/adobe/aepsdk_flutter?tab=readme-ov-file#about-this-project). For sending data to Analytics on Flutter, it needs to go through EdgeBridge and Edge plugins. I am not sure how that works if your native implementation uses Analytics extension. You will need to run some tests to see the behavior. WrapperType.FLUTTER is just for a platform reporting purpose. You can decide if you want to include that in your sdk initialization code. If your aepsdk mobile sdk code is only in Android, then there is no need to include that. |
Expected Behaviour
We want to include Adobe Analytics from a flutter program that is embedded in mobile applications that already use Adobe Analytics. There should be documentation or an example to support this or a disclaimer that it doesnt'.
Actual Behaviour
FlutterApplication
. Changing the main program may not be a viable solution for an existing application. Flutter Android builds don't include an application program by default.MobileCore.setWrapperType(WrapperType.FLUTTER);
Is this valid in an embedded module?Reproduce Scenario (including but not limited to)
See above
Steps to Reproduce
See above
Platform and Version
Not applicable
Sample Code that illustrates the problem
https://github.com/adobe/aepsdk_flutter/blob/main/example/android/app/src/main/java/com/adobe/marketing/mobile/flutter/flutter_aepsdk_example/MyApplication.java
Logs taken while reproducing problem
Not applicable
The text was updated successfully, but these errors were encountered: