Bart Burg Bart Burg - 2 months ago 19
Android Question

Is the request for internet persmission required at runtime (Android)?

For Android, it is required that we ask permissions at runtime to make sure users understand better why en when permissions are needed. I know this is true for permissions like

WRITE_CALENDAR
and
ACCESS_FINE_LOCATION
but it seems it's not required for INTERNET. Not strange because almost all apps use internet.

Is it safe to say that I only need to declare it in the manifest?

<uses-permission android:name="android.permission.INTERNET" />


Or should I always check it at runtime?

Answer

No, you shouldn't ask for INTERNET permission at runtime.

INTERNET belongs to the Normal permissions group, which are automatically granted by the system if they're declared in the Manifest, as mentioned in this document:

Normal permissions do not directly risk the user's privacy. If your app lists a normal permission in its manifest, the system grants the permission automatically.