0

它适用于浏览器和安卓,但不适用于 iOS。隐藏启动画面后,它显示空白屏幕。我使用 macincloud.com 进行 iOS 构建。

项目中的插件:

  • 科尔多瓦插件对话框@2.0.2
  • 科尔多瓦-插件-inappbrowser@5.0.0
  • 科尔多瓦插件网络信息@2.0.2
  • 科尔多瓦插件白名单@1.3.4
  • onesignal-cordova-plugin@2.4.5

配置.xml:

<?xml version='1.0' encoding='utf-8'?>
<widget id="au.com.youchoice.quotenet" 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">
    <name>Quotenet</name>
    <description>
        Quotenet
    </description>
    <author email="example@mail.com" href="https://youchoice.com.au">
        Name
    </author>
    <content src="index.html" />
    <preference name="DisallowOverscroll" value="true" />
    <preference name="android-minSdkVersion" value="22" />
    <preference name="KeyboardDisplayRequiresUserAction" value="false" />
    <preference name="AndroidPersistentFileLocation" value="Compatibility" />
    <preference name="BackgroundColor" value="#00000000" />
    <preference name="AllowInlineMediaPlayback" value="true" />
    <preference name="InAppBrowserStatusBarStyle" value="lightcontent" />
    <platform name="android">
        <edit-config file="app/src/main/AndroidManifest.xml" mode="merge" target="/manifest/application">
            <application android:usesCleartextTraffic="true" />
        </edit-config>
        <preference name="SplashMaintainAspectRatio" value="true" />
        <preference name="SplashShowOnlyFirstTime" value="true" />
        <icon density="ldpi" src="www/res/icon/android/ldpi.png" />
        <icon density="mdpi" src="www/res/icon/android/mdpi.png" />
        <icon density="hdpi" src="www/res/icon/android/hdpi.png" />
        <icon density="xhdpi" src="www/res/icon/android/xhdpi.png" />
        <icon density="xxhdpi" src="www/res/icon/android/xxhdpi.png" />
        <icon density="xxxhdpi" src="www/res/icon/android/xxxhdpi.png" />
        <splash density="port-ldpi" src="www/res/screen/android/splash-port-ldpi.png" />
        <splash density="port-mdpi" src="www/res/screen/android/splash-port-mdpi.png" />
        <splash density="port-hdpi" src="www/res/screen/android/splash-port-hdpi.png" />
        <splash density="port-xhdpi" src="www/res/screen/android/splash-port-xhdpi.png" />
        <splash density="port-xxhdpi" src="www/res/screen/android/splash-port-xxhdpi.png" />
        <splash density="port-xxxhdpi" src="www/res/screen/android/splash-port-xxxhdpi.png" />
        <splash density="land-ldpi" src="www/res/screen/android/splash-land-ldpi.png" />
        <splash density="land-mdpi" src="www/res/screen/android/splash-land-mdpi.png" />
        <splash density="land-hdpi" src="www/res/screen/android/splash-land-hdpi.png" />
        <splash density="land-xhdpi" src="www/res/screen/android/splash-land-xhdpi.png" />
        <splash density="land-xxhdpi" src="www/res/screen/android/splash-land-xxhdpi.png" />
        <splash density="land-xxxhdpi" src="www/res/screen/android/splash-land-xxxhdpi.png" />
        <resource-file src="www/res/icon/android/xhdpi.png" target="www/res/icon/android/xhdpi.png" />
    </platform>
    <platform name="ios">
        <icon height="1024" src="www/res/icon/ios/icon-1024.png" width="1024" />
        <icon height="29" src="www/res/icon/ios/icon-small.png" width="29" />
        <icon height="58" src="www/res/icon/ios/icon-small@2x.png" width="58" />
        <icon height="87" src="www/res/icon/ios/icon-small@3x.png" width="87" />
        <icon height="40" src="www/res/icon/ios/icon-small-40.png" width="40" />
        <icon height="80" src="www/res/icon/ios/icon-small-40@2x.png" width="80" />
        <icon height="120" src="www/res/icon/ios/icon-small-40@3x.png" width="120" />
        <icon height="50" src="www/res/icon/ios/icon-small-50.png" width="50" />
        <icon height="100" src="www/res/icon/ios/icon-small-50@2x.png" width="100" />
        <icon height="57" src="www/res/icon/ios/icon.png" width="57" />
        <icon height="114" src="www/res/icon/ios/icon@2x.png" width="114" />
        <icon height="60" src="www/res/icon/ios/icon-60.png" width="60" />
        <icon height="120" src="www/res/icon/ios/icon-60@2x.png" width="120" />
        <icon height="180" src="www/res/icon/ios/icon-60@3x.png" width="180" />
        <icon height="72" src="www/res/icon/ios/icon-72.png" width="72" />
        <icon height="144" src="www/res/icon/ios/icon-72@2x.png" width="144" />
        <icon height="76" src="www/res/icon/ios/icon-76.png" width="76" />
        <icon height="152" src="www/res/icon/ios/icon-76@2x.png" width="152" />
        <icon height="167" src="www/res/icon/ios/icon-167.png" width="167" />
        <icon height="167" src="www/res/icon/ios/icon-83.5@2x.png" width="167" />
        <splash src="www/res/screen/ios/Default@2x~iphone~anyany.png" />
        <splash src="www/res/screen/ios/Default@2x~iphone~comany.png" />
        <splash src="www/res/screen/ios/Default@3x~iphone~anyany.png" />
        <splash src="www/res/screen/ios/Default@3x~iphone~comany.png" />
        <splash src="www/res/screen/ios/Default@2x~ipad~anyany.png" />
        <splash src="www/res/screen/ios/Default@2x~ipad~comany.png" />
        <splash src="www/res/screen/ios/Default@2x~iphone~comcom.png" />
        <splash src="www/res/screen/ios/Default@3x~iphone~anycom.png" />
        <splash height="480" src="www/res/screen/ios/Default~iphone.png" width="320" />
        <splash height="960" src="www/res/screen/ios/Default@2x~iphone.png" width="640" />
        <splash height="1024" src="www/res/screen/ios/Default-Portrait~ipad.png" width="768" />
        <splash height="2048" src="www/res/screen/ios/Default-Portrait@2x~ipad.png" width="1536" />
        <splash height="1136" src="www/res/screen/ios/Default-568h@2x~iphone.png" width="640" />
        <splash height="1334" src="www/res/screen/ios/Default-667h.png" width="750" />
        <splash height="2208" src="www/res/screen/ios/Default-736h.png" width="1242" />
        <splash height="768" src="www/res/screen/ios/Default-Landscape~ipad.png" width="1024" />
        <splash height="1536" src="www/res/screen/ios/Default-Landscape@2x~ipad.png" width="2048" />
        <resource-file src="www/res/icon/android/xhdpi.png" />
    </platform>
    <platform name="windows">
        <icon src="www/res/icon/windows/storelogo.png" target="StoreLogo" />
        <icon src="www/res/icon/windows/smalllogo.png" target="Square30x30Logo" />
        <icon src="www/res/icon/windows/Square44x44Logo.png" target="Square44x44Logo" />
        <icon src="www/res/icon/windows/Square70x70Logo.png" target="Square70x70Logo" />
        <icon src="www/res/icon/windows/Square71x71Logo.png" target="Square71x71Logo" />
        <icon src="www/res/icon/windows/Square150x150Logo.png" target="Square150x150Logo" />
        <icon src="www/res/icon/windows/Square310x310Logo.png" target="Square310x310Logo" />
        <splash src="www/res/screen/windows/splashscreen.png" target="SplashScreen" />
        <splash src="www/res/screen/windows/splashscreenphone.png" target="SplashScreenPhone" />
    </platform>
    <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>
</widget>

xcode中的ios应用

4

0 回答 0