Skip to Content
0
Aug 21, 2023 at 11:55 AM

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

48 Views

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.