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.
Asked
Active
Viewed 1,367 times
1 Answers
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