sentiance_flutter 0.0.1 copy "sentiance_flutter: ^0.0.1" to clipboard
sentiance_flutter: ^0.0.1 copied to clipboard

Flutter plugin for Sentiance

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 Name Description
token A unique identifier for your sentiance account.
sentianceSecret A secret key generated by Sentiance unique to your account.
appId Unique identifier for each device.
crashDetectionUrl Stores information regarding crash.
mobileHealthUrl Stores information regarding Mobile Health.

Get the Mobile Health Data

await SentianceFlutter.getMobileHealthData

Stop Sentiance

await SentianceFlutter.stopSentianceSDK;
1
likes
120
pub points
0%
popularity

Publisher

unverified uploader

Flutter plugin for Sentiance

Homepage

Documentation

API reference

License

BSD-3-Clause (LICENSE)

Dependencies

background_locator, flutter

More

Packages that depend on sentiance_flutter