Open waihanko opened 2 weeks ago
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?
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
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