question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

It doesn't work on web

See original GitHub issue
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: image And after that,when I call it again,it will never return.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:2
  • Comments:8 (1 by maintainers)

github_iconTop GitHub Comments

5reactions
Dorbmoncommented, Apr 26, 2020

Anything new?

0reactions
stale[bot]commented, Jun 8, 2020

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found