gps_data_reset

Last updated:

0 purchases

gps_data_reset Image
gps_data_reset Images
Add to Cart

Description:

gps data reset

Usage #
import 'package:gps_data_reset/gps_data_reset.dart';

@override
Widget build(BuildContext context) {
return MaterialApp(
home: Center(
child: FlatButton(
child: Text('Reset GPS Data'),
onPressed: () async {

GPSResetStatus status = await GPSDataReset.resetAndDownload();

if (status == GPSResetStatus.SUCCESS) {
print("Reset succes");

} else if (status == GPSResetStatus.DENIED) {
print("User rejected permission");

} else if (status == GPSResetStatus.PERMANENTLY_DENIED) {
GPSDataReset.openAppSettings();
}
},
),
),
);
}
copied to clipboard
Permissions #
Android #
On Android you'll need to add either the ACCESS_FINE_LOCATION and the ACCESS_LOCATION_EXTRA_COMMANDS permission to your Android Manifest. To do so open the AndroidManifest.xml file (located under android/app/src/main) and add one of the following two lines as direct children of the <manifest> tag:
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_LOCATION_EXTRA_COMMANDS" />
copied to clipboard
Author #
This plugin for Flutter is developed by Fuad Ar-Radhi.

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.