Coder Social home page Coder Social logo

fuadarradhi / gps_data_reset Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 1.0 67 KB

Flutter plugin to reset and download gps data

Home Page: https://pub.dev/packages/gps_data_reset

License: MIT License

Java 21.84% Swift 7.97% Objective-C 6.22% Dart 27.36% Ruby 36.61%
gps reset data cache extra

gps_data_reset's Introduction

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();
              }
            },
          ),
        ),
    );
  }

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" />

Author

This plugin for Flutter is developed by Fuad Ar-Radhi.

gps_data_reset's People

Contributors

fuadarradhi avatar

Watchers

James Cloos avatar  avatar

Forkers

mattyboy4444

gps_data_reset's Issues

iOS throws an exception

On iOS I get an exception when resetAndDownload is called.

MissingPluginException(No implementation found for method resetAndDownload on channel flutter.fuadarradhi.com/gpsdatareset)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.