Get users country without permissions

Hey,

I have a question if it possible to get users country or country calling code, without asking for permission for location or calls (for accessing SIM card).

I would need it for seting the default country calling code for phone number input.

If I use the sim plugin to check the country, it asks for permission for making calls.
But on “Viber” app for example they display the right country code without asking for any permissions.

Thank you for your anwsers.

check user location and get code, like if user from x-country is code is x.
code define in your app, so app can take from it.

yeah, but for user location i would need his permission to access his location. Is there any other way without asking for any permissions?

Try to get user ip address.
Then use http api to get country , city … from given ip address

You guys think way to complicated, why not use the device Language? If it is just for the default phone prefix, this should be enough.