The default API level in the Cordova Android platform has been upgraded. On an Android 9 device, clear text communication is now disabled by default.
To allow clear text communication again, set the android:usesCleartextTraffic
on your application
tag to true
:
<platform name="android"> <edit-config file="app/src/main/AndroidManifest.xml" mode="merge" target="/manifest/application"> <application android:usesCleartextTraffic="true" /> </edit-config> </platform>
As noted in the comments, if you have not defined the android
XML namespace previously, you will receive an error: unbound prefix
during build. This indicates that you need to add it to your widget
tag in the same config.xml
, like so:
<widget id="you-app-id" version="1.2.3" 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">
Related Posts:
- Running Node.Js on Android
- Running Node.Js on Android
- ‘App not Installed’ Error on Android
- ‘App not Installed’ Error on Android
- Can’t start Eclipse – Java was started but returned exit code=13
- google console error `OR-IEH-01`
- Error: No toolchains found in the NDK toolchains folder for ABI with prefix: llvm
- How to display Toast in Android?
- ‘adb’ is not recognized as an internal or external command, operable program or batch file
- Flutter pageview : Find first and last page and swipe directions
- Enable VT-x in your BIOS security settings (refer to documentation for your computer)
- NetworkType.UNMETERED vs NetworkType.METERED – PeriodicWork
- Find all Bluetooth devices (headsets, phones etc) nearby, without forcing the devices in discoverable mode
- “Default Activity Not Found” on Android Studio upgrade
- how to overcome Android Studio cannot resolve symbol for android classes
- ADB Android Device Unauthorized
- Why fragments, and when to use fragments instead of activities?
- Error “File google-services.json is missing from module root folder. The Google Services Plugin cannot function without it”
- What is the meaning of Log.i()
- Execution failed app:processDebugResources Android Studio
- How can I use adb over WiFi?
- SQLiteDatabase.query method
- Android ADB device offline, can’t issue commands
- Android SDK location
- Android Studio Run/Debug configuration error: Module not specified
- Android Emulator Error Message: “PANIC: Missing emulator engine program for ‘x86’ CPUS.”
- IllegalArgumentException: Unable to locate adb in Android Studio v2.3
- How to set the text color of TextView in code?
- What is the “AdMob Offline Notifications” notification channel?
- What does FrameLayout do?
- How to use ScrollView in Android?
- How to make a countdown timer in Android?
- What is com.google.android.gms.persistent and why is it always using the CPU?
- IllegalStateException: Can not perform this action after onSaveInstanceState with ViewPager
- How to create a Custom Dialog box in android?
- Parcelable encountered IOException writing serializable object getactivity()
- Unfortunately Launcher3 has stopped working error in android studio?
- onActivityResult() not called
- “com.example is restricted” when uploading APK to Play Store
- How do we use runOnUiThread in Android?
- Android basics: running code in the UI thread
- Error getGoogleAppId failed with status: 10 Android KitKat – GCM and Google Drive
- Error:Execution failed for task ‘:app:transformClassesWithDexForDebug’
- Horizontal ListView in Android?
- How to add .gif Animation in unity Scene ? Does Unity support Animated GIFS?
- Rotating a view in Android
- How to customize a Spinner in Android
- Android error “unable to find explicit activity class”
- Can not resolve method ‘findViewById(int)’
- Cannot resolve symbol ‘context’
- Dialog throwing “Unable to add window — token null is not for an application” with getApplication() as context
- How to get current time and date in Android
- Mipmaps vs. drawable folders
- Gradle DSL method not found: ‘compile()’
- how to use getSharedPreferences in android
- What is the meaning of android.intent.action.MAIN?
- Set transparent background of an imageview on Android
- Play sound on button click android
- How to make the corners of a button round?
- Disable back button in android
- How to clear gradle cache?
- Converting pixels to dp
- ADB error: cannot connect to daemon
- How do I download the Android SDK without downloading Android Studio?
- Error:com.android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for details
- ClassLoader referenced unknown path: /data/app/
- Unknown URL content://downloads/my_downloads
- android edittext onchange listener
- Difference between getContext() , getApplicationContext() , getBaseContext() and “this”
- How to authorize and accept ADB RSA key with broken touch screen on Android
- Determining translationX/Y values for ObjectAnimator; how to move a view to an exact screen position?
- adb socket not working and daemon
- React Native: JAVA_HOME is not set and no ‘java’ command could be found in your PATH
- Installation error: INSTALL_FAILED_OLDER_SDK
- Unable to load script from assets index.android.bundle on windows
- Android getText from EditText field
- Default FirebaseApp is not initialized
- How can I create simple accordion with Angular 2?
- Error: Could not automatically detect an ADB binary. Some emulator functionality will not work until a custom path to ADB is added in the extended…
- Warning: Do not place Android context classes in static fields; this is a memory leak (and also breaks Instant Run)
- How to solve failed to find build tools revision 26.0.2?
- Why is the Android emulator screen blank?
- How do I “select Android SDK” in Android Studio?
- Reverse engineering from an APK file to a project
- Exception ‘open failed: EACCES (Permission denied)’ on Android
- How to disable Instant Run for Android Studio 3.0
- I can’t find adb_usb.ini file in .android folder?
- Android; Check if file exists without creating a new one
- Why am I getting Permission Denied when trying to push a Sqlite file to my rooted Android device?
- What is Activity.finish() method doing exactly?
- How to open adb and use it to send commands
- Scrollview can host only one direct child
- Unable to add window — token null is not valid; is your activity running?
- How to remove title bar from the android activity?
- How to determine the version of Gradle?
- Call requires permissions that may be rejected by user
- sendUserActionEvent() is null
- SDK Location not found in android studio
- Android app unable to start activity componentinfo