|
|
|
Re: ModelJobs not working when focus is out [message #1850033 is a reply to message #1850025] |
Fri, 11 February 2022 15:41 |
|
Hi Luka
The whole geolocation magic happens in the JS part of the application. The Java part in Desktop.java only sends an event to the browser, which results in a call to the "navigator.geolocation" API and returns the results in a JSON response. You should see that request/reponse when you open the network panel (F12) an look at the JSON requests.
I did not test it but I can imagine, that the browser does not respond to calls to the geolocation API when the browser tab/window is not active - it would make sense, because you don't want a malicious website to access your location in the background. You might need to debug into DesktopAdapter.js#_onRequestGeolocation to see what happens in your case.
I'd recommend to check first if the geolocation API responds to calls when the browser is in the background, in a plain HTML/JavaScript environment for instance with https://jsfiddle.net/.
Cheers
André
Eclipse Scout Homepage | Documentation | GitHub
|
|
|
Powered by
FUDForum. Page generated in 0.02700 seconds