Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Internet permission not working in oreo and pie

I'm new here. I built a simple app that sends some data to server and as well receives the response.

The app is working fine on devices up to android N. But not working on O and P. Seems like the issue is with the internet permission. I have checked and the app is not sending any data to server while it is running on o and p. Please let me know if i need to seek any specific permission for internet access.

I have added this in manifest

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

Any help would be appreciated.

like image 489
Jameel Avatar asked Mar 09 '19 07:03

Jameel


1 Answers

If your URL start's with http then you have to use it is used in Android Pie i.e API level 28

android:usesCleartextTraffic="true"

in your manifest inside application tag as an attribute

like image 94
RAHUL MAURYA Avatar answered Oct 13 '22 02:10

RAHUL MAURYA