0

I have created android app using Cordova 8.1.0 version and it was successfully uploaded to the Playstore. this is working without any issue in bellow android 9. in android 9 this app is not working.

Then i have installed the debug-apk. it was working as i expected. but relase-apk is not working. how can i resolve this issue.

Udara Kasun
  • 2,182
  • 18
  • 25

1 Answers1

0

I Updated Config.xml Like this and solve the problem. the Error Was ERR_CLEARTEXT_NOT_PERMITTED

More details Stack overflow

   <?xml version='1.0' encoding='utf-8'?>   
     <widget android-versionCode="3001013" defaultlocale="en-US" id="com.siot.employeetraking" version="1.0.0" xmlns="http://www.w3.org/ns/widgets" xmlns:android="http://schemas.android.com/apk/res/android" xmlns:cdv="http://cordova.apache.org/ns/1.0" xmlns:vs="http://schemas.microsoft.com/appx/2014/htmlapps">

do the Bellow change

 <platform name="android"> 
        <edit-config file="app/src/main/AndroidManifest.xml" mode="merge" target="/manifest/application">
            <application android:usesCleartextTraffic="true" />
        </edit-config>
  </platform>
Udara Kasun
  • 2,182
  • 18
  • 25