DOT SDK topic
Get Started
Requirements
Android | iOS | |
---|---|---|
Support | SDK 21+ | iOS 11+ |
Licensing
Obtain a license file and include it into your project:
- Make sure that Application ID of your host Android app and Bundle ID of you host iOS app are the same value (e.g.
com.innovatrics.dot.flutter.example
):- Android: See
applicationId
inbuild.gradle
. - iOS: See General tab in Xcode.
- Android: See
- In order to obtain the license file, please contact your Innovatrics’ representative specifying your Application/Bundle ID.
- Include the license file into your app as an asset.
Basic Setup
Setup Android platform
You need to use FlutterFragmentActivity
instead of the default FlutterActivity
. If you are using customized activity that extends FlutterActivity
, simply change its parent class to FlutterFragmentActivity
. If you do not extend FlutterActivity
, you must specify FlutterFragmentActivity
in your Manifest.xml
.
<activity
android:name="io.flutter.embedding.android.FlutterFragmentActivity"
android:exported="true"
...>
Setup iOS platform
You need to include Innovatrics’ Cocoapods repository source into PodFile
file of your iOS runner application prior to using DOT SDK.
source 'https://github.com/innovatrics/innovatrics-podspecs'
In case DOT SDK will be part of another Flutter plugin, include this setup into its README.md
file.
Using DOT SDK
Before using any of the components, you need to initialize DOT SDK. When a process (e.g. onboarding) has been completed, it is usually a good practice to free the resources used by it. See how to initialize and deinitialize DOT SDK.
Example app
Find the example app here.