Sentiance SDK Flutter

Flutter plugin for generating Mobile Health Status.

Disclaimer

This is package is only for Android.

Getting Started

This flutter plugin is a wrapper around our Android SDKs.

The following documentation is only focused on the wrapper around our native Android SDKs. To know more about our SDKs and how to link them within the projects, refer to the following documentation:

Android:

https://docs.sentiance.com/sdk/changelog/android

Prerequisites

Installation

Fork the repository from url

Go to android/src/res/AndroidManifest.xml and your Geo Location API KEY

  <meta-data
        android:name="com.google.android.geo.API_KEY"
        android:value= "GOOGLE_API_KEY"/>

This plugin is available on Pub: https://pub.dev/packages/sentiance_flutter

Add this to dependencies in your app's pubspec.yaml

sentiance_flutter:
      git: <Package url>
      branch: master

Note for Android: Make sure that the minimum API level for your app is 19 or higher.

Run flutter packages get in the root directory of your app.

Usage

Sample code to integrate can be found in example/lib/main.dart.

Import package

import 'package:sentiance_flutter/sentiance_flutter.dart';

Create Sentiance instance

await SentianceFlutter.initialiseSentiance();          

Properties names

The Properties names which are used in the initialiseSentiance Method.

Properties NameDescription
tokenA unique identifier for your sentiance account.
sentianceSecretA secret key generated by Sentiance unique to your account.
appIdUnique identifier for each device.
crashDetectionUrlStores information regarding crash.
mobileHealthUrlStores information regarding Mobile Health.

Get the Mobile Health Data

await SentianceFlutter.getMobileHealthData

Stop Sentiance

await SentianceFlutter.stopSentianceSDK;

Libraries

mobile_health_data
sentiance_flutter