flutterlocation icon indicating copy to clipboard operation
flutterlocation copied to clipboard

PlatformException(UNEXPECTED_ERROR, 17: API: LocationServices.API is not available on this device. Connection failed with: b{statusCode=SERVICE_INVALID, resolution=null, message=null}, null, null)

Open kalyanchandra48 opened this issue 2 years ago • 3 comments

Describe the bug PlatformException(UNEXPECTED_ERROR, 17: API: LocationServices.API is not available on this device. Connection failed with: b{statusCode=SERVICE_INVALID, resolution=null, message=null}, null, null)

Can you please share your comments for this Bug?

Expected behaviour "Please don't expect any exceptions from the platform."Tested on:

Affected Devices: Pixel 6 Pro

Other plugins:

  • List of other Flutter plugins that could interfere

Additional logs

some logs

kalyanchandra48 avatar Apr 02 '24 06:04 kalyanchandra48

I'm seeing a similar issue on Crashlytics. So far only on Pixel 6 Pro, but i assume more devices will show up soon.

          Fatal Exception: io.flutter.plugins.firebase.crashlytics.FlutterError: PlatformException(UNEXPECTED_ERROR, 17: API: LocationServices.API is not available on this device. Connection failed with: b{statusCode=SERVICE_INVALID, resolution=null, message=null}, null, null)
       at StandardMethodCodec.decodeEnvelope(message_codecs.dart:648)
       at MethodChannel._invokeMethod(platform_channel.dart:334)
       at MethodChannel.invokeMapMethod(platform_channel.dart:534)
       at MethodChannelLocation.getLocation(method_channel_location.dart:83)
       at LocationRepository.getLocation(location_repository.dart:52)
       at Future.timeout.<fn>(dart:async)
       at MainPageCubit.onNoSavedPlaces(main_page_bloc.dart:159)
       at MainPageCubit._loadWeatherData(main_page_bloc.dart:106)
       at CancelableCompleter.complete.<fn>(cancelable_operation.dart:425)

nadavfima avatar Sep 06 '24 19:09 nadavfima

same problem

Zvirtuey avatar Sep 19 '24 16:09 Zvirtuey

What is the reason and how to solve it

zxk-design avatar Sep 27 '24 13:09 zxk-design