E
E
e-hot2017-06-17 10:44:01
JavaScript
e-hot, 2017-06-17 10:44:01

What are the ways (or permissions) to get location coordinates from a site with https ( ssl ) opened in an Android or iOS app browser?

Welcome all. Need advice or help in the following situation:
1. Situation: there is a working site with https ( ssl - Let's Encrypt ), in its js code there is a fragment that catches, if the client has agreed, the coordinates:

navigator.geolocation.getCurrentPosition( function( position ){
        var la = position.coords.latitude; 
        var lo = position.coords.longitude;
        ...
    } );

и сохраняет полученные данные себе в БД.
Все это дело отлично работает во всех браузерах на десктопах, ноутах, так же координаты схватываются в браузерах мобильников, если в мобильниках конечно настроено разрешение на передачу координат. Но когда этот же сайт открывается в браузере, являющимся одним из элементов рукописного приложения ( Android или iOS ), то координаты не подхватываются.
2. Вопрос: какие настройки и/или функционал необходимо применять в приложении Android или iOS, чтобы приложение позволяло открывающемуся через него сайту фиксировать гео-координаты?
Note: this is a fundamental question - it is the site that should read the geo-coordinates, and not the application that opens the site. Otherwise, if the application received geo-coordinates, then, having received them, the application must somehow transfer this data further to the site itself - if I think correctly. The application should simply either not block or additionally allow reading geo-coordinates. After all, any mobile web browser is an application, and a site opened through, for example, a Google Chrome mobile browser gives coordinates - this is so - reflections.
Thank you.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
rPman, 2017-06-17
@rPman

I believe no
The self-written built-in browser is used for this, so that the application can independently control any functionality.
Accordingly, if the application did not bother with issuing coordinates to you, then a bummer.
ps usually everyone uses webkit , like the list of geolocationapi features states:
https://webkit.org/status/#
https://developer.android.com/reference/android/we... support is also declared if the site uses ssl, but the application developer himself must implement a callback to confirm the issuance of data

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question