0 purchases
test plugin fftt test
Teliver #
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.0
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
Usage/Examples #
Initiate our SDK by adding the following code snippet in your Application class
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.
var 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
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: 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.
result = await _teliverFlutter.stopTrip("Tracking_Id");
copied to clipboard
Stop Tracking Call this method to stop tracking of Operator from Consumer side
_teliverFlutter.stopTracking("Tracking_Id");
copied to clipboard
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.