You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
E/flutter (25474): [ERROR:flutter/runtime/dart_vm_initializer.cc(40)] Unhandled Exception: No location permissions are defined in the manifest. Make sure at least ACCESS_FINE_LOCATION or ACCESS_COARSE_LOCATION are defined in the manifest.
E/flutter (25474): #0 GeolocatorAndroid.checkPermission (package:geolocator_android/src/geolocator_android.dart:50:7)
E/flutter (25474): <asynchronous suspension>
E/flutter (25474): #1 LoginActivityNewState._getLocation (package:aatman/feauters_activity/LoginActivityNew.dart:305:39)
E/flutter (25474): <asynchronous suspension>
E/flutter (25474): #2 LoginActivityNewState.allowLocationAndroid (package:aatman/feauters_activity/LoginActivityNew.dart:292:5)
E/flutter (25474): <asynchronous suspension>
Even though I have already defined all the required location permissions (ACCESS_FINE_LOCATION, ACCESS_COARSE_LOCATION, and ACCESS_BACKGROUND_LOCATION) in my AndroidManifest.xml file, I am still encountering this error.The code works perfectly fine on iOS
I have checked the AndroidManifest.xml file thoroughly, and all permissions are correctly defined, but the exception persists.I have also tried upgrading the geolocator plugin version and downgrading it, but the issue still remains.
Any help or insights on what could be causing this issue would be greatly appreciated.
Version
9.0.0
The text was updated successfully, but these errors were encountered:
Saurav310799
changed the title
[Question]:
[Question]:Issue: Missing Location Permissions in Manifest (Works on iOS)
Jan 17, 2025
Please check the following before submitting a new issue.
Please select for which platform(s) you need help
Your question
I am encountering the following exception:
The issue occurs with the following code snippet:
LocationPermission permission = await Geolocator.checkPermission();
Even though I have already defined all the required location permissions (ACCESS_FINE_LOCATION, ACCESS_COARSE_LOCATION, and ACCESS_BACKGROUND_LOCATION) in my AndroidManifest.xml file, I am still encountering this error.The code works perfectly fine on iOS
I have checked the AndroidManifest.xml file thoroughly, and all permissions are correctly defined, but the exception persists.I have also tried upgrading the geolocator plugin version and downgrading it, but the issue still remains.
Any help or insights on what could be causing this issue would be greatly appreciated.
Version
9.0.0
The text was updated successfully, but these errors were encountered: