Phonegap+Angular4 icon/splashscreen problem

19 views
Skip to first unread message

rocky

unread,
Feb 1, 2018, 10:29:45 AM2/1/18
to phonegap
Hi. I have problem with icon and splashscreen on Windows 10 Mobile. In PhoneGap Build I receive this error: 

Error: ENOENT: no such file or directory, scandir 'C:\project\res\icons\windows'
   at Error (native)
   at Object.fs.readdirSync (fs.js:808:18)
   at C:\project\cordova\lib\prepare.js:390:33
   at Array.forEach (native)
   at mapImageResources (C:\project\cordova\lib\prepare.js:378:12)
   at copyImages (C:\project\cordova\lib\prepare.js:442:23)
   at C:\project\cordova\lib\prepare.js:615:9
   at _fulfilled (C:\project\cordova\node_modules\q\q.js:834:54)
   at self.promiseDispatch.done (C:\project\cordova\node_modules\q\q.js:863:30)
   at Promise.promise.promiseDispatch (C:\project\cordova\node_modules\q\q.js:796:13)

I don't understand, why there is absolute path - I use just relative paths. And this folder (C:\project\...) doesn't even exists. Here is my config:

<?xml version='1.0' encoding='utf-8'?>
<widget id="com.example.epodatki" version="1.0.4" xmlns="http://www.w3.org/ns/widgets" xmlns:gap="http://phonegap.com/ns/1.0">
    <name>app</name>
    <description>
        app
    </description>
    <author email="exa...@example.com" href="https://example.com">
        example.com
    </author>
    <content src="index.html" />
    <preference name="phonegap-version" value="cli-7.0.1" />
    <preference name="DisallowOverscroll" value="true" />
    <preference name="ShowSplashScreen" value="false" />
    <preference name="SplashScreenDelay" value="0" />
    <preference name="FadeSplashScreenDuration" value="0" />
    <preference name="SplashScreen" value="none" />
    <preference name="android-minSdkVersion" value="15" />
    <preference name="windows-arch" value="arm" />
    <preference name="windows-appx-target" value="uap" />
    <preference name="windows-target-version" value="10.0" />
    <preference name="windows-phone-target-version" value="10.0" />
    <preference name="windows-identity-name" value="example.com.app" />
    <preference name="windows-store-publisher-name" value="CN=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxx" />
    <preference name="WindowsStoreIdentityName" value="example.com.epodatkidev" />
    <preference name="WindowsStorePublisherName" value="CN=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxx" />
    <plugin name="cordova-plugin-device" source="npm" spec="~1.1.1" />
    <plugin name="cordova-plugin-network-information" source="npm" spec="~1.2.0" />
    <plugin name="cordova-plugin-inappbrowser" source="npm" spec="~1.3.0" />
    <plugin name="cordova-plugin-dialogs" source="npm" spec="~1.2.0" />
    <preference name="ShowSplashScreenSpinner" value="false" />
    <preference name="SplashMaintainAspectRatio" value="true" />
    <plugin name="cordova-plugin-x-socialsharing" source="npm" />
    <plugin name="cordova-plugin-device-motion" source="npm" spec="~1.2.0" />
    <plugin name="cordova-plugin-file" source="npm" spec="4.3.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-media" source="npm" spec="~2.2.0" />
    <plugin name="cordova-plugin-whitelist" source="npm" spec="~1.2.1" />
    <icon src="icon.png" />
    <platform name="android">
        <resource-file src="google-services.json" target="google-services.json" />
        <plugin name="phonegap-plugin-push" source="npm" spec="2.0.0">
            <variable name="SENDER_ID" value="xxxxxxxxxxxx" />
        </plugin>
        <icon density="ldpi" src="res/icons/android/ldpi.png" />
        <icon density="mdpi" src="res/icons/android/mdpi.png" />
        <icon density="hdpi" src="res/icons/android/hdpi.png" />
        <icon density="xhdpi" src="res/icons/android/xhdpi.png" />
        <icon density="xxhdpi" src="res/icons/android/xxhdpi.png" />
        <icon density="xxxhdpi" src="res/icons/android/xxxhdpi.png" />
        <splash density="port-ldpi" src="res/screens/android/splash-port-ldpi.png" />
        <splash density="port-mdpi" src="res/screens/android/splash-port-mdpi.png" />
        <splash density="port-hdpi" src="res/screens/android/splash-port-hdpi.png" />
        <splash density="port-xhdpi" src="res/screens/android/splash-port-xhdpi.png" />
        <splash density="port-xxhdpi" src="res/screens/android/splash-port-xxhdpi.png" />
        <splash density="port-xxxhdpi" src="res/screens/android/splash-port-xxxhdpi.png" />
    </platform>
    <platform name="ios">
        <plugin name="phonegap-plugin-push" source="npm" spec="~1.10.5">
            <variable name="SENDER_ID" value="xxxxxxxxxxxx" />
        </plugin>
        <icon height="1024" src="res/icons/ios/icon-1024.png" width="1024" />
        <icon height="29" src="res/icons/ios/icon-small.png" width="29" />
        <icon height="58" src="res/icons/ios/icon-...@2x.png" width="58" />
        <icon height="87" src="res/icons/ios/icon-...@3x.png" width="87" />
        <icon height="40" src="res/icons/ios/icon-small-40.png" width="40" />
        <icon height="80" src="res/icons/ios/icon-s...@2x.png" width="80" />
        <icon height="120" src="res/icons/ios/icon-s...@3x.png" width="120" />
        <icon height="50" src="res/icons/ios/icon-small-50.png" width="50" />
        <icon height="100" src="res/icons/ios/icon-s...@2x.png" width="100" />
        <icon height="57" src="res/icons/ios/icon.png" width="57" />
        <icon height="114" src="res/icons/ios/ic...@2x.png" width="114" />
        <icon height="60" src="res/icons/ios/icon-60.png" width="60" />
        <icon height="120" src="res/icons/ios/ico...@2x.png" width="120" />
        <icon height="180" src="res/icons/ios/ico...@3x.png" width="180" />
        <icon height="72" src="res/icons/ios/icon-72.png" width="72" />
        <icon height="144" src="res/icons/ios/ico...@2x.png" width="144" />
        <icon height="76" src="res/icons/ios/icon-76.png" width="76" />
        <icon height="152" src="res/icons/ios/ico...@2x.png" width="152" />
        <icon height="167" src="res/icons/ios/icon-167.png" width="167" />
        <icon height="167" src="res/icons/ios/icon...@2x.png" width="167" />
        <splash height="480" src="res/screens/ios/Default~iphone.png" width="320" />
        <splash height="960" src="res/screens/ios/Default@2x~iphone.png" width="640" />
        <splash height="1024" src="res/screens/ios/Default-Portrait~ipad.png" width="768" />
        <splash height="2048" src="res/screens/ios/Default-Portrait@2x~ipad.png" width="1536" />
        <splash height="1136" src="res/screens/ios/Default-568h@2x~iphone.png" width="640" />
        <splash height="1334" src="res/screens/ios/Default-667h.png" width="750" />
        <splash height="2208" src="res/screens/ios/Default-736h.png" width="1242" />
    </platform>
    <platform name="wp8">
    </platform>
    <platform name="windows">
        <preference name="WindowsToastCapable" value="true" />
        <plugin name="phonegap-plugin-push" source="npm" spec="2.0.0">
            <variable name="SENDER_ID" value="xxxxxxxxxxxx" />
        </plugin>
        <!-- <icon src="res/icons/windows/storelogo.png" target="StoreLogo" />
        <icon src="res/icons/windows/smalllogo.png" target="Square30x30Logo" />
        <icon src="res/icons/windows/Square44x44Logo.png" target="Square44x44Logo" />
        <icon src="res/icons/windows/Square70x70Logo.png" target="Square70x70Logo" />
        <icon src="res/icons/windows/Square71x71Logo.png" target="Square71x71Logo" />
        <icon src="res/icons/windows/Square150x150Logo.png" target="Square150x150Logo" />
        <icon src="res/icons/windows/Square310x310Logo.png" target="Square310x310Logo" />
        <splash src="res/screens/windows/splashscreen.png" target="SplashScreen" />
        <splash src="res/screens/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:*" />
    <allow-navigation href="*" />
    <platform name="android">
        <allow-intent href="market:*" />
    </platform>
    <platform name="ios">
        <allow-intent href="itms:*" />
        <allow-intent href="itms-apps:*" />
    </platform>
</widget>



Reply all
Reply to author
Forward
0 new messages