If you have Admob in your app then a consent message pops up for people in the EU. This is fine.
However, the docs state the app should have a Revoke Consent button so EU citizens can choose non-personalised ads if they want. Again this is fine.
I have developed an app and got the test ads working. It also shows the consent message because I am within EU.
I have developed a button to revoke consent and this works too.
The problem I have is for non-EU citizens. I don’t want the revoke consent button to show for people who are outside the EU.
How can I detect where people are based so that if they are inside the EU I can show a button for them to change their consent but if they are outside the EU it should be invisible?
The only thing I can think of is finding out longitude and latitude coordinates for the EU’s corners and if the users are within it to show to the Revoke Consent button and if they are outside to make it invisible. But this is a lot of hassle especially when my app is a game that doesn’t need GPS. I don’t want unnecessary permissions or have people think I’m tracking them.