I am developing an application using flutter. Actually, I want to read the IP address of the device but I have doubt about Google and App Store policy about reading IP address. Please guide me should I read the IP address or not.
Asked
Active
Viewed 980 times
0
-
why do you need the ip address? – desmaxi May 22 '19 at 08:45
-
I want to use this for multiple purposes like from country/city users are sending the most request to the server. – Wajid khan May 22 '19 at 09:58
3 Answers
1
Why not just read the IP address of the device on the server instead? Then you won't fall foul on any privacy protection.

Nick Fortescue
- 13,530
- 1
- 31
- 37
-
-
1Then maybe you respect their privacy wishes and use the proxy address? – Nick Fortescue May 31 '19 at 11:52
0
If you get permissions like:
// AndroidManifest.xml permissions
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
And equivalen on iOS, you should not have legal problems with Apple or Google, it is assumed that you may use that information.

ferminx360
- 95
- 8
0
If the user allows your application to use internet and to access the network state you should not have any problem Google and App Store policy since the user give you the authorisation to use that information.
You can find more about how to find the IP address from this topic How to get IP address of the device from code?

desmaxi
- 293
- 1
- 13