teliverflutter

Creator: coderz1093

Last updated:

0 purchases

teliverflutter Image
teliverflutter Images

Languages

Categories

Add to Cart

Description:

teliverflutter

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
copied to clipboard
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"/>
copied to clipboard
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'
copied to clipboard
Add the following line in app build.gradle - inside android
packagingOptions {
exclude 'META-INF/DEPENDENCIES'
}
copied to clipboard
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");
copied to clipboard

Next, setup the transmission for the operator app for whom the location has to be tracked.

result = await _teliverFlutter.startTrip("Tracking_Id");
copied to clipboard
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");
copied to clipboard
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");
copied to clipboard
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");
copied to clipboard

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.