Jakasha commented on issue #123: Android   Error : Only secure origins are 
allowed error
URL: 
https://github.com/apache/cordova-plugin-geolocation/issues/123#issuecomment-559097868
 
 
   The problem is that the default web view scheme for Android is: 
http://localhost
   The geolocation plugin does not accept "http://..."; as origin for position 
requests.
   On iOS it works because the default scheme is ionic://localhost
   
   Set the Android Scheme to "https" in the config.xml file:
   `<preference name="Scheme" value="https" />`
   
   NB: it is necessary to allow also the navigation for the new scheme:
   `<allow-navigation href="https://*"/>`
   
   Other web view configurations:
   https://github.com/ionic-team/cordova-plugin-ionic-webview
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to