I'm developing in a Vagrant VM "local-ish" server and testing via Chromium on the host machine.
In my scripts I'm using HTML5's location API to send data to my VM server. When I run my app using Chromium it works as intended, even though it warns me about this:
getCurrentPosition() and watchPosition() are deprecated on insecure origins, and support will be removed in the future. You should consider switching your application to a secure origin, such as HTTPS. See https://sites.google.com/a/chromium.org/dev/Home/chromium-security/deprecating-powerful-features-on-insecure-origins for more details.
Although, when I tested with Chrome (DEV) for Android, my code hangs when calling navigator.geolocation.getCurrentPosition(callback)
.
The same warning pops up when I inspect my device with Chromium's remote debugging feature.
So I have 2 questions:
- Is there anyway I can "fake" https on my VM?
- If not, how can I circumvent this so that I can test my app in Android?