Official chrome's guide on how to fetch user's geolocation from background service worker using offscreen document stopped working

47 views
Skip to first unread message

Stefan Markovic (Markoni)

unread,
Oct 10, 2025, 6:56:17 PM (4 days ago) Oct 10
to Chromium Extensions
Official chrome's guide on how to fetch user's geolocation from background service worker using offscreen document stopped working

https://developer.chrome.com/docs/extensions/how-to/web-platform/geolocation

It returns GeolocationPositionError with code:2 (POSITION_UNAVAILABLE)

Any solution for this?

Patrick Kettner

unread,
12:06 PM (1 hour ago) 12:06 PM
to Stefan Markovic (Markoni), Chromium Extensions
Hey Stefan! 
I am not able to replicate what you are seeing. Looking at the code, this happens when you don't have a valid geolocation provider for your device. 

--
You received this message because you are subscribed to the Google Groups "Chromium Extensions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-extens...@chromium.org.
To view this discussion visit https://groups.google.com/a/chromium.org/d/msgid/chromium-extensions/98aa14ff-003e-4906-b0cb-d344132407fcn%40chromium.org.
Reply all
Reply to author
Forward
Message has been deleted
0 new messages