Disclosure Statement: This site contains affiliate links, which means that I may receive a commission if you make a purchase using these links. As an eBay Partner, I earn from qualifying purchases.

How to enable Location Access

Post Reply
Tomminger
Posts: 14
Joined: Mon Aug 27, 2018 8:22 pm
Location: Germany

How to enable Location Access

Post by Tomminger »

Hello,

when I open e.g :

https://tinder.com/?lang=de

After Login the Site ask via PopUp for getting my current location.

If I press Ok for accepting the Location Request, the Site tells, there are no Location access accepted and then the site hangs.

What can I do to allow Location Requests in CEF4Delphi?

Regards Tom
User avatar
salvadordf
Posts: 4016
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: How to enable Location Access

Post by salvadordf »

Hi,

I'm not sure what Tinder.com does but if it tries to use geolocation then the current CEF version might not be a suitable solution.

CEF removed geolocation support with this commit :
https://bitbucket.org/chromiumembedded/ ... dd18d5a38b

due to this issue :
https://bitbucket.org/chromiumembedded/ ... ranch-3239

The CEF maintainer said in that issue that you can use the Google Maps Geolocation API as an alternative.
https://developers.google.com/maps/docu ... tion/intro

Perhaps OldCEF4Delphi can be used with Tinder. It has an older CEF version with geolocation.
https://github.com/salvadordf/OldCEF4Delphi
User avatar
salvadordf
Posts: 4016
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: How to enable Location Access

Post by salvadordf »

Hi,

The CEF maintainer commented in the previous links that he had to remove the Geolocation feature because it's never tested during development.

The latest CEF version doesn't have Geolocation support and you would need to modify CEF and then CEF4Delphi in order to make your application work.

Some video streaming sites also need proprietary codecs and you would need to build the CEF binaries with those codecs because the binaries from Spotify only have the open source codecs enabled.

Some other streaming sites also need a Widevine CDM license.

CEF4Delphi supports Widevine and it also works with the CEF binaries that include proprietary codecs but you would need to modify CEF and CEF4Delphi to have Geolocation.

OldCEF4Delphi still has Geolocation but it uses an old CEF branch which includes an old Chromium version and some sites may refuse to work with that version.
User avatar
salvadordf
Posts: 4016
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: How to enable Location Access

Post by salvadordf »

Pauven wrote: Fri May 03, 2019 7:19 pmIs there any plan to add Geolocation support back in?
I don't know. CEF4Delphi is just a CEF wrapper and I'm not in the CEF development team.

The CEF project maintainer suggested using the Google Maps Geolocation API as an alternative :
https://developers.google.com/maps/docu ... tion/intro
Post Reply