I am creating a multi-language app with WeWeb that recommends products to users based on their country.
Example
Language = EN | Country = US → Product 1
Language = EN | Country = UK → Product 2
I know there are API services such as geo.ipify.org. But maybe someone found a solution that works without that?
Extra: This is only relevant for non-logged in users. As soon as a user registers with my app, the IP address can be overridden with country settings made by the user.
You really only have two options other than using the third party APIs:
Ask them directly client-side for their location
Make your own server side endpoint with backend packages like whois, whoiser and use those
I know that Supabase for example provides really good informations about the invoker of the functions, so probably one might use it straight away (I haven’t had a usecase yet). As far as for Xano, I’m not sure. So yeah, these are the perks of Supabase over other backends, they have these little quality of life things
Is the problem that you want to get the location of the user without having to look it up? That’s not exposed by the browser, but it is implied by the IP of the user. You solve it through a lookup. The question is how you get that translation. In addition to contracting with a third party metered service, you have other options:
Supabase and Xano both offer this as a freebie AFAICT.