zeexan-dev / detect_fake_location

Flutter plugin that detects if the user is using a fake(mock or simulated) location on their device.
BSD 3-Clause "New" or "Revised" License
9 stars 3 forks source link

Please Update Documentation for Android Release #3

Open waihanko opened 2 weeks ago

waihanko commented 2 weeks ago

image

You will face this issue when you release APK, but just debug working fine.

To Fix this issue

You need to add

<uses-permission android:name="android.permission.ACCESS_MOCK_LOCATION" tools:ignore="MockLocation,ProtectedPermissions" />

Refer to https://stackoverflow.com/questions/41198478/mock-location-permission-issue-on-release-app

zeexan-dev commented 2 weeks ago

image

You will face this issue when you release APK, but just debug working fine.

To Fix this issue

You need to add

<uses-permission android:name="android.permission.ACCESS_MOCK_LOCATION" tools:ignore="MockLocation,ProtectedPermissions" />

Refer to https://stackoverflow.com/questions/41198478/mock-location-permission-issue-on-release-app

@waihanko Thanks for the info. However, I just released one of my apps and I did not come across this issue. Can you please explain more? For example: what flutter version you used to release the app?

waihanko commented 1 week ago

Flutter 3.22.3 • channel stable • https://github.com/flutter/flutter.git Framework • revision b0850beeb2 (7 weeks ago) • 2024-07-16 21:43:41 -0700 Engine • revision 235db911ba Tools • Dart 3.4.4 • DevTools 2.34.3

flutter build apk --flavor development -t lib/main_app_development.dart