Flutterlocation: Do you support mock location?

Created on 1 Sep 2020  路  4Comments  路  Source: Lyokone/flutterlocation

Hi,

I would like to know, if you can also detect mock location?
Does it support Android and IOS?

Thanks

Markus

inactive

Most helpful comment

I am also looking for the isMocked location

it will be great to add isMocked bool to LocationData

All 4 comments

currently this plugin does't support mock location, but for timebeing you can add a method to it. as it uses fused location API so it has a method to detect whether it is from mock location or not.

Note: It only supports device >= Lollipop

I am also looking for the isMocked location

it will be great to add isMocked bool to LocationData

I came across this problem just the other day while completing module 13 Clima of Angela Yu's "The Complete Flutter Development Bootcamp Using Dart" (a Google recommended codelab). She explains how the emulators in iOS and Android can be used to get a "custom location" (aka mock location?). I didn't pay much attention to that part as I'm only using Flutter for web development. The exact part of the lesson on custom locations starts around minute 7:56, in the "Refactoring the Location Method" under Section 13 (Clima) of the Bootcamp class.

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

KingWu picture KingWu  路  11Comments

rsproule picture rsproule  路  13Comments

LondonJammo picture LondonJammo  路  4Comments

LinusU picture LinusU  路  3Comments

magicznyadrian picture magicznyadrian  路  3Comments