Open hundredball opened 3 years ago
I realized that I forgot to add background location permission in AndroidManifest.xml.
\<uses-permission android:name="android.permission.ACCESS_BACKGROUND_LOCATION"/>
After I added it and removed location_permission parts, now it works in both emulator and physical device!
I downloaded the FlutterGeofencing code and tried to utilize the geofencing plugin in my project. I created a button for registering geofences. After creating the google map, I pressed the button and got the following error on the Android emulator.
Since the error code means that the client doesn't have sufficient location permission to perform geofencing operations. I used the permission_handler plugin to assure that location permission is granted before initializing GeofencingManager. Permission is also granted before registering geofences.
However, I can successfully add the geofences without any issues when using the physical Android device. Is it possible that there's a conflict between google map and geofencing in the emulator but not in the physical devices?
Below is my flutter version. Any feedbacks are appreciated. Thank you for your time.