Wednesday 20 January 2021

Flutter Geolocator Plugin Permissions - For Android and iOS

Flutter Geolocator Plugin Permissions - For Android and iOS







Use the following code for Android device:

CODE:
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>



Use the following code for iOS:

CODE:
    <key>NSLocationWhenInUseUsageDescription</key>
    <string>This app needs access to location when open.</string>