Flutter
Build cross-platform apps (Android, iOS, Web) with Flutter. Integrate Antsomi SDK for in-app personalization & user insights.
Flutter stands as an innovative open-source UI software development kit, thoughtfully crafted by Google. With Flutter, you have the ability to create applications that span across diverse platforms, such as Android, iOS, Linux, Mac, Windows, Google Fuchsia, and the web, all while working from a single, cohesive codebase.
Our Antsomi Flutter Mobile SDK is expertly designed to seamlessly harmonize with the latest iterations of both Android and iOS, offering you a powerful solution for building engaging cross-platform applications.
Here's how you can integrate the Antsomi SDK with your Flutter apps:
1. Installation
Step 1: Add the antsomisdk
plugin in your pubspec.yaml
file.
Antsomi SDK only supports Dart SDK 3.0 and above.
Step 2: Run flutter packages get
to install the SDK.
2. Antsomi Instance Initialization
Step 1: Initialize Antsomi in main.dart
in main()
.
Step 2: Provide the Antsomi instance with your portal config.
In which:
appGroupId
Your iOS App Group ID.
For example, group.antsomi.mstore
portalId
Your CDP365 Portal ID.
For example, 564890637
propsId
Your CDP365 Event Source ID.
For example, 564993464
applicationID
Your CDP365 Application ID.
For example, e4e8d06e-4d97-43df-93e8-c36238147ca0
If you haven't had your CDP365 Application ID, please follow this instruction.
Remember to verify the user's mobile device operating system to ensure accurate event source configuration. In CDP365, mobile app event sources are categorized into iOS and Android sources, so it's essential to distinguish between them based on the user's device OS.
Finally, your setting will be similar to the code snippet below:
NEXT STEP
Last updated