Giter Site home page Giter Site logo

angelhernandez20 / fake_gps_detector Goto Github PK

View Code? Open in Web Editor NEW

This project forked from andiksetyawan/fake_gps_detector

0.0 0.0 0.0 70 KB

A Flutter plugin for detecting the emulator device and mock location / fake gps.

License: MIT License

Ruby 17.78% Objective-C 5.87% Kotlin 42.17% Dart 26.85% Swift 7.33%

fake_gps_detector's Introduction

Fake GPS Detector, Emulator Device Detector

A Flutter plugin for detecting the emulator device and mock location / fake gps.

Getting Started

In your flutter project add the dependency:

dependencies:
  ...
  fake_gps_detector: ^0.5.0

Usage

Importing package

import 'package:fake_gps_detector/fake_gps_detector.dart';

Permission src/main/AndroidManifest.xml

<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />

Using it

(ANDROID ONLY) Checks whether device is real or emulator

bool isMock = await FakeGpsDetector.isFakeGps;

(ANDROID ONLY) Can this device mock location - no need to root!

bool isEmulator = await FakeGpsDetector.isEmulator;

Note:

Add a location permission request before calling the "isFakeGps" method, make sure it has been approved to access the location. For more details, please open the example directory

fake_gps_detector's People

Contributors

andiksetyawan avatar

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.