Location location = new Location();
bool _serviceEnabled;
PermissionStatus _permissionGranted;
LocationData _locationData;
_serviceEnabled =
await location.serviceEnabled();
if (!_serviceEnabled) {
_serviceEnabled =
await location.requestService();
if (!_serviceEnabled) {
return;
}
}
_permissionGranted =
await location.hasPermission();
if (_permissionGranted == PermissionStatus.denied) {
_permissionGranted = await location
.requestPermission();
if (_permissionGranted !=
PermissionStatus.granted) {
return;
}
}
_locationData = await location.getLocation();
This is an example same as what you gave me in readme.
But When I run it on web in debug mode,it throw a error:

And after that,when I call it again,it will never return.
Same error here kind of blocking... Any workaround ?
Working in chrome but not in Safari
Same error here kind of blocking... Any workaround ?
Working in chrome but not in Safari
Haha,mine doesn't work in chrome and edge.
Are you able to launch the example app ? The implementation was tested with it :)
Are you able to launch the example app ? The implementation was tested with it :)
Let me have a try haha.
Are you able to launch the example app ? The implementation was tested with it :)
I had a try.

I think it still doesn't work in the example.
Anything new?
Anything new?
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Most helpful comment
Anything new?