wongpiwat / trust-location

A Flutter plugin for detecting mock location on Android device. (Supports only high accuracy location mode)
https://pub.dev/packages/trust_location
BSD 3-Clause "New" or "Revised" License
15 stars 8 forks source link

MissingPluginException (MissingPluginException(No implementation found for method getLatitude on channel trust_location)) #14

Closed sudi909 closed 3 years ago

sudi909 commented 3 years ago

I'm trying to get location on my phone but keep getting the following error: MissingPluginException (MissingPluginException(No implementation found for method getLatitude on channel trust_location))

I added the package in my pubspec file and ran the get command without any error.

This is the code that I used :

TrustLocation.start(1);
TrustLocation.onChange.listen((values) => setState(() {
          _latitude = values.latitude;
          _longitude = values.longitude;
          _isMockLocation = values.isMockLocation;
        }));

I use trust_location version 2.0.12

sudi909 commented 3 years ago

image

image