Geo location getCurrentPosition() and watchPosition() not work on insecure origins

前端 未结 1 1588
别那么骄傲
别那么骄傲 2021-01-28 07:34

I need user\'s Lattitude and longitude using php. try following code.

1条回答
  •  伪装坚强ぢ
    2021-01-28 08:19

    Geolocation API Removed from Unsecured Origins in Chrome 50.

    This change is effective as of Chrome 50 (12PM PST April 20 2016).

    Chrome's developer tools console has been providing warnings since version 44 (released July 21 2015). There have been a number of public announcements that describe the rationale (and discussion) of why we are making this change:

    Intent to deprecate set of powerful features over HTTP (Feb 2015) Intent to deprecate Geolocation API over HTTP (Nov 2015) Chrome Dev Summit (Nov 2016) Chrome Beta Channel release blog (March 17, 2016) Chrome Status website There have been a number of other sources that have highlighted this: Mobiforge (Jan 26, 2016), Wired (March 17, 2016), VentureBeat (April 13, 2016).

    Read More Documentatin here .So thats not possible to use GeoLocation Without HTTPS.

    0 讨论(0)
提交回复
热议问题