Device Geolocation doesn't work on using multiple subdomains

Created on 9 March 2013, almost 12 years ago
Updated 28 November 2024, 24 days ago

I am using the sub module Device Geolocation to detect the users position. Everything worked fine till I started to use subdomains as language detection method, like:

de.example.com
en.example.com etc.

Since than the method in device_geolocation.js
navigator.geolocation.getCurrentPosition()

to get the position form the browser always fails, will say, calls the error handler function. In Chromiums console I get the message:

One or more of the given URLs is not allowed by the App's settings. It must match the Website URL or Canvas URL, or the domain must be a subdomain of one of the App's domains.

In spite of the fact I gave the browser the permission to detect my position for each and every subdomain.

How to get the method navigator.geolocation.getCurrentPosition() to work with various sub domains?

🐛 Bug report
Status

Closed: outdated

Version

1.5

Component

Code

Created by

🇦🇹Austria gunwald

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • heddn Nicaragua

    Drupal 7 is no longer supported in a month. Closing old issues. If this is still an issue in the current 5.x version of the module, please re-open and provide some next steps.

Production build 0.71.5 2024