teliverflutter 1.0.1 copy "teliverflutter: ^1.0.1" to clipboard
teliverflutter: ^1.0.1 copied to clipboard

Teliver Flutter SDK.

TeliverFlutter #

Teliver is your one place stop for all GPS Based Location tracking solutions

Getting Started #

Add this to your package's pubspec.yaml file:

  dependencies:
  teliverflutter: ^1.0.1

Android - Configuration

  • Obtain the map key from Google maps Page.
  • Open your AndroidManifest.xml file and paste the following code under application tag after embedding your map key obtained from Google.
 <meta-data
   android:name="com.google.android.geo.API_KEY"
   android:value="API_KEY_FOR_MAP"/>

NOTE : You can skip the above step. If you have already got map key and added it in manifest or you just want the location updates alone.

Add the following line in app build.gradle - inside android of dependencies

    implementation 'io.teliver.sdk:TeliverSdk:4.0.9'
    implementation 'com.google.code.gson:gson:2.8.6'

Add the following line in app build.gradle - inside android

   packagingOptions {
        exclude 'META-INF/DEPENDENCIES'
    }

NOTE : App minSdkVersion version must be greater than or equal to 21

IOS

NOTE : Minimum Deployment Target support is 11

Usage/Examples #

  • Init our SDK by adding the following code snippet
import 'package:teliverflutter/teliverflutter.dart';

final _teliverFlutter = Teliverflutter();

var result = await _teliverFlutter.initSDK("teliver_key");
  • Next, setup the transmission for the operator app for whom the location has to be tracked.
result = await _teliverFlutter.startTrip("Tracking_Id");

Note: The Tracking_Id here is your unique identifier for the trip; basically it’s just the order id or driver id in your system (Currently startTrip is applicable for only Android)

  • Since our operator app is ready for transmission, we will now setup our consumer side to locate on map.
_teliverFlutter.startTracking("Tracking_Id");

Note: The Tracking_Id here is same as the id you given in previous step of operator start trip.

  • Stop Trip - Call this method with the tracking id to stop the trip on Operator side.
var result = await _teliverFlutter.stopTrip("Tracking_Id");

Note: Currently stopTrip is applicable for only Android

  • Stop Tracking - Call this method to stop tracking of Operator from Consumer side
_teliverFlutter.stopTracking("Tracking_Id");
1
likes
130
points
1
downloads

Publisher

unverified uploader

Weekly Downloads

Teliver Flutter SDK.

Documentation

API reference

License

MIT (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on teliverflutter

Packages that implement teliverflutter