cancel
Showing results for 
Search instead for 
Did you mean: 

[Violation]Only request geolocation information in response to a user gesture

rb
Active Participant
0 Kudos

Hello together,

we do use the navigator.geolocation.getCurrentPosition Geolocation API in one of our UI5 app.

[Violation]Only request geolocation information in response to a user gesture in the console.

And the Geolocation API is not even called.

Any ideas how to solve this?

We did try to:

Call the code via UI5 Press event

Attach the native click Event handler in afterRendering

But nothing seems to work in chrome.

View Entire Topic
rb
Active Participant
0 Kudos

Fyi it seems this is a policy problem on our end. We always get timeouts while trying to get the geolocation, the warning seems only an other symptom.