one_sdk_flutter 0.1.0 one_sdk_flutter: ^0.1.0 copied to clipboard
Thunderhead ONE SDK Flutter Plugin
one-sdk-flutter #
The Thunderhead ONE SDK Flutter Plugin for iOS and Android.
Example app #
Check out the flutter-example app to see integration examples.
Installation #
To install the Thunderhead ONE Flutter Plugin, go to your pubspec.yaml
and add the dependency:
one_sdk_flutter:
git:
url: https://github.com/thunderheadone/one-sdk-flutter.git
- See example here
Note: Android integrations will require MultiDex
to be enabled. For information on how to enable this, see the Google documentation here
Usage #
Initialization #
To initialize the ONE Flutter Plugin, call the following method:
import 'package:one_sdk_flutter/one_sdk_flutter.dart';
One.initializeOne(SITE_KEY, TOUCHPOINT, API_KEY, SHARED_SECRET, USER_ID, HOST, false);
- See example of usage here
Send an Interaction #
To send an Interaction request without properties, call the following method:
One.sendInteraction("/interactionPath", null);
- See example of usage here
To send an Interaction request with properties, call the following method:
One.sendInteraction("/interactionPath", { 'key' : 'value' });
- See example of usage here
Access debug information #
To configure logging, call the following method:
One.setThunderheadLogLevel(true);
- See example of usage here
Questions or need help #
Thunderhead ONE Support #
The Thunderhead team is available 24/7 to answer any questions you have. Just email onesupport@thunderhead.com or visit our docs page for more detailed installation and usage information.
Salesforce Interaction Studio Support #
For Salesforce Marketing Cloud Interaction Studio questions, please submit a support ticket via https://help.salesforce.com/home