flutterlocation
flutterlocation copied to clipboard
A Flutter plugin to easily handle realtime location in iOS and Android. Provides settings for optimizing performance or battery.
**Description** On Android Simulator or on real device the location update is not working on listener on Background **Expected behavior** When app is going to background listener should be fired....
On iOS after deny. ``` final hasPermission = await location.hasPermission(); // hasPermission == PermissionStatus.denied final requestPermission = await location.requestPermission(); // requestPermission == PermissionStatus.deniedForever hasPermission != requestPermission ``` **Expected behavior** Method...
at com.lyokone.location.b$a.onServiceConnected(Unknown Source:30) FATAL EXCEPTION: main Process: com.wahoo_express_delivery, PID: 7636 java.lang.NoClassDefFoundError: Failed resolution of: Landroidx/activity/ComponentActivity; at k0.d.k(Unknown Source:0) at com.google.android.gms.common.api.internal.c.x(Unknown Source:21) at l0.e.(Unknown Source:78) at l0.e.(Unknown Source:6) at l0.e.(Unknown Source:19)...
[✓] Flutter (Channel stable, 1.22.5, on macOS 11.2 20D64 darwin-x64, locale en-US) [✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2) [✓] Xcode - develop for iOS...
Just On Android 12 when I call **location.changeNotificationOptions** with the parameter **onTapBringToFront = true** flutter generates the error below ``` E/flutter ( 6703): [ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception: PlatformException(CHANGE_NOTIFICATION_OPTIONS_ERROR, An unexpected error...
**Description** I'm trying to get speed and speed accuracy information periodically from getLocation() but they return -1. I don't know how it works but even I move my phone forward,...
My App is getting crash when i start location track. and log s showing me like this while i have already added below permissions. uses-permission android:name="android.permission.FOREGROUND_SERVICE" /> uses-permission android:name="android.permission.ACCESS_BACKGROUND_LOCATION"/> uses-permission...
**On Android 12 (API level 31) or higher [user can grant only approximate location](https://developer.android.com/training/location/permissions#approximate-request)** When only approximate location access granted system returns only ACCESS_COARSE_LOCATION without ACCESS_FINE_LOCATION and plugin return **PermissionStatus.denied**...
Caused by java.lang.NullPointerException Attempt to invoke virtual method 'io.flutter.plugin.common.PluginRegistry$RequestPermissionsResultListener com.lyokone.location.FlutterLocationService.h()' on a null object reference com.lyokone.location.LocationPlugin.dispose (LocationPlugin.java:117) com.lyokone.location.LocationPlugin.detachActivity (LocationPlugin.java:56) com.lyokone.location.LocationPlugin.onDetachedFromActivityForConfigChanges (LocationPlugin.java:74) io.flutter.embedding.engine.FlutterEngineConnectionRegistry.detachFromActivityForConfigChanges (FlutterEngineConnectionRegistry.java:372) io.flutter.embedding.android.FlutterActivityAndFragmentDelegate.onDetach (FlutterActivityAndFragmentDelegate.java:651) io.flutter.embedding.android.FlutterFragment.onDetach (FlutterFragment.java:844) androidx.fragment.app.Fragment.performDetach (Fragment.java:3229) com.android.internal.os.ZygoteInit.main...
Non-fatal Exception: io.flutter.plugins.firebase.crashlytics.FlutterError PlatformException(UNEXPECTED_ERROR, 17: Error resolution was canceled by the user, original error message: CANCELED: null, null, null). Error thrown null.