Cordova

Konfiguracja projektu Cordova.

config.xml
<?xml version='1.0' encoding='utf-8'?>
<widget id="pl.optimalit.parafiaskoczow" version="1.1.7" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
    <name>Parafia Skoczów</name>
    <description>Aplikacja dla parafii Rzymskokatolickiej pw.św.ap. Piotra i Pawła w Skoczowie</description>
    <icon src="res/icon/ikona.png" />
    <author email="kontakt@optimalit.pl">
        Krzysztof Mendroch, OptimalIT
    </author>
    <content src="index.html" />
    
    // Vertical view lock
    <preference name="Orientation" value="portrait"/>

    <platform name="android">
        <preference name="android-minSdkVersion" value="24"/>
        <preference name="android-targetSdkVersion" value="32"/>
        
        // Localization of splash screen
        <preference name="AndroidWindowSplashScreenAnimatedIcon" value="res/screen/android/splashscreen.xml" />
        // Background color between the splash screen and the loaded application
        <preference name="AndroidWindowSplashScreenBackground" value="#1b7290" />

        <preference name="BackgroundColor" value="#1b7290" />
        // Status Bar Background Color
        <preference name="StatusBarBackgroundColor" value="#1b7290" />
        // Display mode of the Status Bar
        <preference name="StatusBarOverlaysWebView" value="false" />
    </platform>
    <platform name="ios">
        <allow-navigation href="*" />
        <allow-intent href="itms:*"/>
        <allow-intent href="itms-apps:*"/>
    </platform>
    <access origin="*"/>
    <allow-intent href="http://*/*" />
    <allow-intent href="https://*/*" />
</widget>

Last updated