adobe_plugin_flutter is a flutter plugin for use AdobeMobileSDK.
Adobe Mobile services provides a new UI that brings together mobile marketing capabilities for mobile applications from across the Adobe Experience Cloud. Initially, the Mobile service provides seamless integration of app analytics and targeting capabilities from the Adobe Analytics, Adobe Audience Manager, and Adobe Target solutions, and Experience Cloud ID service.
To learn more about the Mobile Services UI and read the user documentation, see Adobe Mobile Services.
Note: This plugin is still under development, and some APIs might not be available yet. Feedback and Pull Requests are most welcome!
- Android
- iOS
To use this plugin, add adobe_plugin_flutter as a dependency in your pubspec.yaml file.
Tip:
-
On iOS, the
ADBMobileConfig.json
can be placed anywhere that it is accessible in yourbundle
. see Adobe Mobile iOS -
On android, the
ADBMobileConfig.json
can be placed on assets folder. See Adobe Mobile SDK android
This function is use for set the ADBMobile configuration with files.
- On iOS :
- add ADBConfigFile to
appDelegate.m
andimport ADBMobile.h
NSString *filePath = [[NSBundle mainBundle] pathForResource:@"ADBMobileConfig" ofType:@"json"];
[ADBMobile overrideConfigPath:filePath];
- add to
Info.plist
:
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
</dict>
- On Android : use
initTrack
function
initTrack(String fileName);
try{
await AdobeAnalyticsPlugin.initTrack("ADBMobileConfigCustom.json");
} on Exception {
print('Failed to init Adobe Tracking');
}
This function is use for track the screen with optional data.
trackState(String screenName, [Map<String, dynamic> additionalData]);
String result = await AdobeAnalyticsPlugin.trackState(
"SCREEN_NAME",
null
);
This function is use for track the action with optional data.
trackAction(String actionName, [Map<String, dynamic> additionalData]);
String result = await AdobeAnalyticsPlugin.trackAction(
"ACTION_NAME",
<String, dynamic>{
"action": "ACTION",
"category": "TEST"
}
);
See the example
directory for a complete sample app using adobe_plugin_flutter.
Plugin | Links |
---|---|
AdobeMobileSDK iOS | https://cocoapods.org/pods/AdobeMobileSDK |
AdobeMobileSDK android | https://mvnrepository.com/artifact/com.adobe.mobile/adobeMobileLibrary/4.18.2 |