Allow geolocation for iFrame - Forum

Forum Navigation
You need to log in to create posts and topics.

Allow geolocation for iFrame

Hi,

on one page I have an iFrame which is pointing to an address that uses a geolocation service. Now I´m looking for a place where I can add

allow="geolocation" attribute.

I hoped the custom-attr option would do this, but it doesn´t work. Do someone know where I have to put it so that geolocations works?

@sval it should work in VisualNEO Web latest version.
Anyway note that you can add the complete <iframe> HTML tag code into a Container.

Regards.

Thank you @luishp for your quick reply.

I've tried a little bit in the meantime and I don't think the error is in the settings of the iframe. It's more like Voltbuilder doesn't allow the use of geolocation. Because when I call up the files created by Visualneo in the browser, it works.

Do I have to set some function for Cordova/Voltbuilder in Visualneo to take care of that?

Some additional lines in the config.xml?

@sval not sure sorry, perhaps you should contact VoltBuilder support.
It's possible that you need to include this plugin in config.xml, but I have not experience using it:

<plugin name="cordova-plugin-geolocation" source="npm" />