It doesn't work on web
See original GitHub issueLocation 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.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:2
- Comments:8 (1 by maintainers)
Top Results From Across the Web
What to Do When a Website Won't Load | PCMag
What to Do When a Website Won't Load · Check Your Connection (and Other Sites) · See if the Problem Is on Your...
Read more >How to Fix Web Pages That Won't Load - Online Tech Tips
Check Out Our Dedicated Guide for Your Specific Web Page Error · Make Sure Your Internet Connection Is Working · Check if the...
Read more >How to Fix if You Can't Access a Particular Website - wikiHow
1. Find out if the website is down. If it's just one website you can't access, there's probably nothing wrong with your computer,...
Read more >How to Tell If a Website Is Down for Everyone or Just You
The Website Isn't the Issue · Double-check the URL. · Try opening the site on a different device that uses the same network....
Read more >How to Fix Specific Website Not Opening on Internet
1. Many basic problems can be solved simply by restarting your device. This clears caches, and forces the device to re-load the program...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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.