I am getting GRPC failed error whenever I use geolocator plugin...

126 views
Skip to first unread message

Souvik

unread,
Jun 17, 2020, 8:24:44 AM6/17/20
to Flutter Development (flutter-dev)

Hi,

I have been trying to solve this error for the past few days but was unable to o so.

 

Error:-

PlatformException(ERROR_GEOCODING_COORDINATES, grpc failed, null)

 

Code:-

Position position = await Geolocator()
    .getCurrentPosition(
        desiredAccuracy: LocationAccuracy.
high);
List<Placemark> p = await Geolocator()
    .placemarkFromCoordinates(
    position.
latitude, position.longitude);
Placemark place = p[0];

 

I have even tried restarting my device, upgrading to the latest version without success. Please help. I have set fine location access permission, but its not workinnnngggg!!!!!!!!!!!!!!!!!!!!!!!! Please help.

 

 

Sent from Mail for Windows 10

 

Suzuki Tomohiro

unread,
Jun 17, 2020, 9:37:16 AM6/17/20
to Souvik, Flutter Development (flutter-dev)
Do you know why the library uses gRPC (network connection) to get the location?

--
You received this message because you are subscribed to the Google Groups "Flutter Development (flutter-dev)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to flutter-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/flutter-dev/5eea0b82.1c69fb81.91797.eea1%40mx.google.com.

Souvik Dutta

unread,
Jun 17, 2020, 9:45:06 AM6/17/20
to Suzuki Tomohiro, Flutter Development (flutter-dev)
Probably to give realtime location which it fetches from somewhere... 

Souvik Dutta

unread,
Jun 17, 2020, 9:54:44 AM6/17/20
to Suzuki Tomohiro, Flutter Development (flutter-dev)
Could this be caused by internet connection problems?

Suzuki Tomohiro

unread,
Jun 17, 2020, 10:26:27 AM6/17/20
to Souvik Dutta, Flutter Development (flutter-dev)
Not sure.

Do you know which method is failing? placemarkFromCoordinate or getCurrentPosition

Souvik Dutta

unread,
Jun 17, 2020, 10:34:23 AM6/17/20
to Suzuki Tomohiro, Flutter Development (flutter-dev)
No, I don't. Need to see.

Souvik flutter dev
Reply all
Reply to author
Forward
0 new messages