phonegap应用程序在Android 9 Pie上没有网络连接,但在Android 8(Oreo)上工作
我有一个phone gap应用程序,除了9 Pie外,它可以在所有Android版本上运行。 应用程序在Android 8中使用登录凭据登录,但在Android 9上不工作phonegap应用程序在Android 9 Pie上没有网络连接,但在Android 8(Oreo)上工作,android,html,phonegap,Android,Html,Phonegap,我有一个phone gap应用程序,除了9 Pie外,它可以在所有Android版本上运行。 应用程序在Android 8中使用登录凭据登录,但在Android 9上不工作 <widget xmlns="http://www.w3.org/ns/widgets" xmlns:gap="http://phonegap.com/ns/1.0"id="com.mitraye.earthinfosys" version="6.5.0">
<widget xmlns="http://www.w3.org/ns/widgets"
xmlns:gap="http://phonegap.com/ns/1.0"id="com.mitraye.earthinfosys"
version="6.5.0">
<name>Earth Infosys</name>
<description></description>
<description></description>
<author href="http://mitraye.com"
email="support@mitraye.com">Mitraye</author>
<content src="index.html"/>
<preference name="permissions" value="none"/>
<preference name="phonegap-version" value="cli-6.5.0" />
<preference name="orientation" value="default"/>
<preference name="target-device" value="universal"/>
<preference name="fullscreen" value="true"/>
<preference name="webviewbounce" value="true"/>
<preference name="prerendered-icon" value="true"/>
<preference name="stay-in-webview" value="false"/>
<preference name="ios-statusbarstyle" value="black-opaque"/>
<preference name="detect-data-types" value="true"/>
<preference name="exit-on-suspend" value="false"/>
<preference name="show-splash-screen-spinner" value="true"/>
<preference name="auto-hide-splash-screen" value="true"/>
<preference name="disable-cursor" value="false"/>
<preference name="windows-arch" value="anycpu" />
<preference name="android-minSdkVersion" value="20" />
<preference name="android-targetSdkVersion" value="28" />
<preference name="android-maxSdkVersion" value="28" />
<preference name="android-installLocation" value="auto"/>
<plugin name="cordova-plugin-battery-status" source="npm" spec="~1.1.1"/>
<plugin name="cordova-plugin-camera" source="npm" spec="~2.1.1"/>
<plugin name="cordova-plugin-media-capture" source="npm" spec="~1.2.0"/>
<plugin name="cordova-plugin-console" source="npm" spec="~1.0.2"/>
<plugin name="cordova-plugin-contacts" source="npm" spec="~2.0.1"/>
<plugin name="cordova-plugin-device" source="npm" spec="~1.1.1"/>
<plugin name="cordova-plugin-device-motion" source="npm" spec="~1.2.0"/>
<plugin name="cordova-plugin-device-orientation" source="npm"
spec="~1.0.2"/>
<plugin name="cordova-plugin-dialogs" source="npm" spec="~1.2.0"/>
<plugin name="cordova-plugin-file" source="npm" spec="~4.1.1"/>
<plugin name="cordova-plugin-native-spinner" source="npm" spec="~1.1.3"/>
<plugin name="cordova-plugin-file-transfer" source="npm" spec="~1.5.0"/>
<plugin name="cordova-plugin-geolocation" source="npm" spec="~2.1.0"/>
<plugin name="cordova-plugin-globalization" source="npm" spec="~1.0.3"/>
<plugin name="cordova-plugin-inappbrowser" source="npm" spec="~1.3.0"/>
<plugin name="cordova-plugin-media" source="npm" spec="~2.2.0"/>
<plugin name="cordova-plugin-network-information" source="npm"
spec="~1.2.0"/>
<plugin name="cordova-plugin-splashscreen" source="npm" spec="~3.2.1"/>
<plugin name="cordova-plugin-statusbar" source="npm" spec="~2.1.2"/>
<plugin name="cordova-plugin-vibration" source="npm" spec="~2.1.0"/>
<plugin name="cordova-plugin-whitelist" source="npm" spec="~1.2.1"/>
<access origin="*"/>
<allow-intent href="http://*/*"/>
<allow-intent href="https://*/*"/>
<allow-intent href="tel:*"/>
<allow-intent href="sms:*"/>
<allow-intent href="mailto:*"/>
<allow-intent href="geo:*"/>
<platform name="android">
<allow-intent href="market:*"/>
</platform>
<platform name="ios">
<allow-intent href="itms:*"/>
<allow-intent href="itms-apps:*"/>
</platform>
<icon src="icon.png"/>
<splash src="splash.png" />
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.myapp"
android:versionCode="1"
android:versionName="1.0" >
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.GET_ACCOUNTS" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.READ_CONTACTS" />
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
<uses-permission android:name="android.permission.RECORD_AUDIO" />
</manifest>
<preference name="SplashScreenDelay" value="5000" />
<splash platform="android" qualifier="port-ldpi" src="res/android/screen-
ldpi-portrait.png" />
<splash platform="android" qualifier="port-mdpi" src="res/android/screen-
mdpi-portrait.png" />
<splash platform="android" qualifier="port-hdpi" src="res/android/screen-
hdpi-portrait.png" />
<splash platform="android" qualifier="port-xhdpi" src="res/android/screen-
xhdpi-portrait.png" />
</widget>
地球信息系统
米特拉耶
要让应用程序与安卓9协同工作,需要17的版本。我的已经有19个了。TargetSdkVersion是28。我也面临同样的问题。您是否能够以任何方式解决此问题?您可以在android 9中使用https。它不适用于httpI。通过将
android:usesCleartextTraffic=“true”
添加到AndroidManifest.xml
文件中,它可以正常工作。虽然后来我不得不将服务器移动到https://
。我可以确认它不与http一起工作,但确实与https一起工作,任何有关发生这种情况的更多信息都将非常感激。我面临着同样的问题。您是否能够以任何方式解决此问题?您可以在android 9中使用https。它不适用于httpI。通过将android:usesCleartextTraffic=“true”
添加到AndroidManifest.xml
文件中,它可以正常工作。尽管后来我不得不将服务器移动到https://
。我可以确认它不使用http,但可以使用https,如果您能提供更多信息,我们将不胜感激