Geolocation native plugin is blocked only locally by msg: Geolocation has been disabled in this document by Feature Policy

Hi all,

After a while I found time to continue my app.
An see, a lot of problems at code, which worked before :wink:

Following method, which worked before, throws me an error now:


The error-message within the devtools-console of chrome is:

Geolocation has been disabled in this document by Feature Policy.

On the iPhone device everything works.

Does anybody have an idea?


ionic (Ionic CLI) : 4.2.1 (/usr/local/lib/node_modules/ionic)
Ionic Framework : ionic-angular 3.9.2
@ionic/app-scripts : 3.1.2


cordova (Cordova CLI) : 8.0.0
Cordova Platforms : android 6.3.0, ios 4.5.4
Cordova Plugins : cordova-plugin-ionic-webview 1.1.1, (and 8 other plugins)


Android SDK Tools : 26.1.1 (/Users/oliverwaterkamp/Library/Android/sdk)
ios-deploy : 1.9.2
NodeJS : v8.12.0 (/usr/local/bin/node)
npm : 6.4.1
OS : macOS High Sierra
Xcode : Xcode 10.1 Build version 10B61


Meanwhile I found out that the problem has something to do with the Cross-Origin Iframes:

If I use locally the Ionic default lab plattform, to see the different plattform (ios, android, windows), Ionic is
using an iframe to show the pages.

When I set the view to fullscreen it works, because it’s not using an iframe to present the pages within the simulated phone views.

Does anybody know, how I can access the Iframe (created by the Ionic Framework) within the DOM?

I am currently getting the same issue in all of my projects that use geolocation. Does anyone have a fix for this?