Hi,
The application we're making contains a custom component and since Mobile Apps doesn't support custom components yet, we have to run the application in the browser -> which will be used on mobile phones.
The custom component is required, since it's the only way I can get the geolocation of a user.
I get error:
"Feature policy 'Geolocation' check failed for iframe with origin 'null' and allow attribute 'geolocation'."
I can't edit the iframe property.
Script;
function GetPos() {
navigator.geolocation.getCurrentPosition((position) => {
longitude = position.coords.longitude;
laditude = position.coords.latitude;
console.log(longitude, laditude);
laditudeInput.value = laditude
longitudeInput.value = longitude
window.Retool.modelUpdate({laditude : laditude, longitude : longitude})
});
}