Wajid khan
Wajid khan

Reputation: 872

Access the IP Address of mobile

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.

Upvotes: 0

Views: 1314

Answers (3)

Nick Fortescue
Nick Fortescue

Reputation: 13852

Why not just read the IP address of the device on the server instead? Then you won't fall foul on any privacy protection.

Upvotes: 1

desmaxi
desmaxi

Reputation: 291

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?

Upvotes: 0

fcortell
fcortell

Reputation: 107

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.

Upvotes: 0

Related Questions