Using geolocation api in infinity host

Hello,
I created a website which finds the user location using geolocation api, which runs perfectly fine on the localhost, but as I push the webpage on server it is not fetching the user location(geoloaction).

Can anyone please tell me an approach?
Urgent help required!

TIA.

Not possible because of the security system. But Im not sure about GPS.
https://infinityfree.net/support/javascript-error-using-api-or-mobile-android-app/

1 Like

do you know any alternatives to do so?

Using a geo service on your website should work just fine. The security system prevents you from hosting a geo API server yourself, but as I understand it, that doesn’t apply here.

Do you have any logs or error message indicating why the API doesn’t work? Does it return any errors, or just return no or bad data?

3 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.