Hi,
My extension includes Stripe payments integrations and a number of offers that are made based on the country the user is in.
I've been hunting around online for the best way to detect the location of a given user.
I'm trying to use navigator.geolocation.
I'm running manifest 3 and I just added "geolocation" to the permissions array which I believed granted the ability to see user location in Chrome.
I'm testing this code now in my service worker but it seems that despite having the geolocation in the extension manifest permissions - it still needs to prompt the user to detect their location.
I'm wondering if there is an easier/less intrusive way to know their location? I only need to know their country so I know what payment options to offer, not their specific longitude/latitude.
Thank you