I am facing this problem on a device with Android 6, that fix you mentioned you are using Ionic 4, right?
How about the android platform version? What is it?
Mine is 6.3.0 (not sure why).
It’s just a very simple project with Ionic 4, with a map only.
I had this problem for days and all the solutions I found did not work.
Ionic recommends using Capacitor to build the app and not Cordova. With Cordova does not work, on the other hand with Capacitor it works fine.
In your app directory first delete the Android folder (if any) and the one in Platform / Android folder.
I used these commands in this order launched by Powershell while staying in the APP directory
ionic build
ionic capacitor add android
npx cap open android
The first command will create a www folder. If the last command give an error and does not open Android Studio, do it manually, (I recommend using 4.0 version). Open Android Studio → open folder, navigate to the folder named Android located in the folder in your APP and then it worked for me. In Android Sudio 4 make sure you have Gradle updated and the SDK loaded.
Hey my friend I have a question about the connection with server with the method rest api basic authentication help me please.I am in the process of developing a mobile application using ionic and angular for the purpose of devloping a task so my problem is connecting with the server and accessing to the api
this is my issue in browser![Untitled|546x33]