79663345

Date: 2025-06-12 10:30:09
Score: 2
Natty:
Report link

It seems like this happens when trying to fetch the location from a background isolate. After some debugging, I realized that the location package only works on the main isolate, and calling Location().getLocation() from a background isolate leads to this issue.

If you need background location updates, consider using the geolocator package.

Hope this helps others facing the same issue!

Reasons:
  • Whitelisted phrase (-1): Hope this helps
  • Has code block (-0.5):
  • Me too answer (2.5): facing the same issue
  • Low reputation (1):
Posted by: Mann Patel