Search code examples
androidgeolocationchrome-custom-tabs

Geolocation in Chrome custom tab android


I want a method like ongeolocationpermissionsshowprompt in webview to be used in chrome custom tabs, or a way to manage location permission by my side.

Thanks!


Solution

  • Custom Tabs will use the underlying browser permission system, so it's not possible manage permission in the native app side.

    If you own/control the page being opened inside the application, you could use Trusted Web Activity with the upcoming Location Delegation feature.