2

I have tried to integrate google map in ionic 3 android project. It works fine when run as 'ionic serve', but not in 'ionic cordova run android'. I see only a blank page on emulator.

enter image description here

sideshowbarker
  • 81,827
  • 26
  • 193
  • 197
Anu
  • 733
  • 1
  • 7
  • 24

1 Answers1

1

Have a look at the following document:

https://developers.google.com/web/updates/2016/04/geolocation-on-secure-contexts-only

Starting with Chrome 50, Chrome no longer supports obtaining the user's location using the HTML5 Geolocation API from pages delivered by non-secure connections. This means that the page that's making the Geolocation API call must be served from a secure context such as HTTPS.

As I can see in the screenshot you are not using HTTPS.

xomena
  • 31,125
  • 6
  • 88
  • 117
  • how to solve this error sir...i have tried many things but not working for me.please tell me sir how to fix this error sir. – Kapil Soni Jan 29 '19 at 13:52