Hi everyone,
I have run into some trouble while trying to build my app in Phone Gap. It seems like I can't change the app icon from the default Phone Gap icon. I have tried building the app multiple times through Aware IM but I can't seem to work out the problem. I have tried setting a default icon and I have also tried setting multiple icons of various sizes (I read somewhere that iOS requires this) and unfortunately I have gotten nowhere.
The zip that Aware generates doesn't contain any icons or any reference to the icons in the config file.
Does anyone know what I am doing wrong? Any help would be appreciated.
Thanks
Phone Gap App Icon
Re: Phone Gap App Icon
you're right, i tried it and I dont see either the Icon, or the entries in config.xml
Click Here to see a collection of my tips & hacks on this forum. Or search for "JaymerTip" in the search bar at the top.
Jaymer
Aware Programming & Consulting - Tampa FL
Jaymer
Aware Programming & Consulting - Tampa FL
-
- Posts: 7525
- Joined: Sun Apr 24, 2005 12:36 am
- Contact:
Re: Phone Gap App Icon
You can manually add icons to the config.xml file that PhoneGap uses. Unzip the file created by Aware IM, modify the file config.xml (in the root) and zip it back.
You can add something like this to your config,xml
<platform name="android">
<allow-intent href="market:*" />
<engine name="android" spec="latest" />
<resource-file src="google-services.json" target="app/google-services.json" />
<plugin name="cordova-plugin-permission" source="npm" spec="latest"/>
<plugin name="cordova-plugin-android-permissions" source="npm" spec="latest"/>
<config-file target="AndroidManifest.xml" parent="/*">
<uses-feature android:name="android.hardware.camera" android:required="false" />
</config-file>
<icon src='resources/icons/android/ldpi.png' platform='android' qualifier='ldpi' />
<icon src='resources/icons/android/mdpi.png' platform='android' qualifier='mdpi' />
<icon src='resources/icons/android/hdpi.png' platform='android' qualifier='hdpi' />
<icon src='resources/icons/android/xhdpi.png' platform='android' qualifier='xhdpi' />
<icon src='resources/icons/android/xxhdpi.png' platform='android' qualifier='xxhdpi' />
<icon src='resources/icons/android/xxxhdpi.png' platform='android' qualifier='xxxhdpi' />
<splash src='resources/screen/android/splash-port-hdpi.png' qualifier='long-port-hdpi' />
<splash src='resources/screen/android/splash-port-ldpi.png' qualifier='long-port-ldpi' />
<splash src='resources/screen/android/splash-port-mdpi.png' qualifier='long-port-mdpi' />
<splash src='resources/screen/android/splash-port-xhdpi.png' qualifier='long-port-xhdpi' />
<splash src='resources/screen/android/splash-port-xxhdpi.png' qualifier='long-port-xxhdpi' />
<splash src='resources/screen/android/splash-port-xxxhdpi.png' qualifier='long-port-xxxhdpi' />
</platform>
<platform name="ios">
<allow-intent href="itms:*" />
<allow-intent href="itms-apps:*" />
<engine name="ios" spec="latest" />
<splash src="resources/screen/ios/Default@2x~universal~anyany.png" />
<plugin name="cordova-plugin-ios-camera-permissions" source="npm" spec="latest"/>
<plugin name="cordova-plugin-ios-location-permissions" source="npm" spec="latest"/>
<icon src='resources/icons/ios/[email protected]' platform='ios' width='20' height='20' />
<icon src='resources/icons/ios/[email protected]' platform='ios' width='40' height='40' />
<icon src='resources/icons/ios/[email protected]' platform='ios' width='60' height='60' />
<icon src='resources/icons/ios/[email protected]' platform='ios' width='29' height='29' />
<icon src='resources/icons/ios/[email protected]' platform='ios' width='58' height='58' />
<icon src='resources/icons/ios/[email protected]' platform='ios' width='87' height='87' />
<icon src='resources/icons/ios/[email protected]' platform='ios' width='40' height='40' />
<icon src='resources/icons/ios/[email protected]' platform='ios' width='80' height='80' />
<icon src='resources/icons/ios/[email protected]' platform='ios' width='120' height='120' />
<icon src='resources/icons/ios/[email protected]' platform='ios' width='120' height='120' />
<icon src='resources/icons/ios/[email protected]' platform='ios' width='180' height='180' />
<icon src='resources/icons/ios/[email protected]' platform='ios' width='76' height='76' />
<icon src='resources/icons/ios/[email protected]' platform='ios' width='152' height='152' />
<icon src='resources/icons/ios/[email protected]' platform='ios' width='167' height='167' />
<icon src='resources/icons/ios/[email protected]' platform='ios' width='1024' height='1024' />
<splash src='resources/screen/ios/Default@2x~ipad~anyany.png' width='2732' height='2732' />
<splash src='resources/screen/ios/Default@2x~ipad~comany.png' width='1278' height='2732' />
<splash src='resources/screen/ios/Default@2x~iphone.png' width='640' height='960' />
<splash src='resources/screen/ios/Default@2x~iphone~anyany.png' width='1334' height='1334' />
<splash src='resources/screen/ios/Default@2x~iphone~comany.png' width='750' height='1334' />
<splash src='resources/screen/ios/Default@2x~universal~anyany.png' width='2732' height='2732' />
<splash src='resources/screen/ios/Default@3x~iphone~anyany.png' width='2208' height='2208' />
<splash src='resources/screen/ios/Default@3x~iphone~comany.png' width='1242' height='2208' />
<splash src='resources/screen/ios/Default~iphone.png' width='320' height='480' />
<splash src='resources/screen/ios/Default-568h@2x~iphone.png' width='640' height='1136' />
<splash src='resources/screen/ios/Default-667h.png' width='750' height='1334' />
<splash src='resources/screen/ios/Default-736h.png' width='1242' height='2208' />
<splash src='resources/screen/ios/Default-Portrait@2x~ipad.png' width='1536' height='2048' />
<splash src='resources/screen/ios/Default-Portrait~ipad.png' width='768' height='1024' />
</platform>
You can add something like this to your config,xml
<platform name="android">
<allow-intent href="market:*" />
<engine name="android" spec="latest" />
<resource-file src="google-services.json" target="app/google-services.json" />
<plugin name="cordova-plugin-permission" source="npm" spec="latest"/>
<plugin name="cordova-plugin-android-permissions" source="npm" spec="latest"/>
<config-file target="AndroidManifest.xml" parent="/*">
<uses-feature android:name="android.hardware.camera" android:required="false" />
</config-file>
<icon src='resources/icons/android/ldpi.png' platform='android' qualifier='ldpi' />
<icon src='resources/icons/android/mdpi.png' platform='android' qualifier='mdpi' />
<icon src='resources/icons/android/hdpi.png' platform='android' qualifier='hdpi' />
<icon src='resources/icons/android/xhdpi.png' platform='android' qualifier='xhdpi' />
<icon src='resources/icons/android/xxhdpi.png' platform='android' qualifier='xxhdpi' />
<icon src='resources/icons/android/xxxhdpi.png' platform='android' qualifier='xxxhdpi' />
<splash src='resources/screen/android/splash-port-hdpi.png' qualifier='long-port-hdpi' />
<splash src='resources/screen/android/splash-port-ldpi.png' qualifier='long-port-ldpi' />
<splash src='resources/screen/android/splash-port-mdpi.png' qualifier='long-port-mdpi' />
<splash src='resources/screen/android/splash-port-xhdpi.png' qualifier='long-port-xhdpi' />
<splash src='resources/screen/android/splash-port-xxhdpi.png' qualifier='long-port-xxhdpi' />
<splash src='resources/screen/android/splash-port-xxxhdpi.png' qualifier='long-port-xxxhdpi' />
</platform>
<platform name="ios">
<allow-intent href="itms:*" />
<allow-intent href="itms-apps:*" />
<engine name="ios" spec="latest" />
<splash src="resources/screen/ios/Default@2x~universal~anyany.png" />
<plugin name="cordova-plugin-ios-camera-permissions" source="npm" spec="latest"/>
<plugin name="cordova-plugin-ios-location-permissions" source="npm" spec="latest"/>
<icon src='resources/icons/ios/[email protected]' platform='ios' width='20' height='20' />
<icon src='resources/icons/ios/[email protected]' platform='ios' width='40' height='40' />
<icon src='resources/icons/ios/[email protected]' platform='ios' width='60' height='60' />
<icon src='resources/icons/ios/[email protected]' platform='ios' width='29' height='29' />
<icon src='resources/icons/ios/[email protected]' platform='ios' width='58' height='58' />
<icon src='resources/icons/ios/[email protected]' platform='ios' width='87' height='87' />
<icon src='resources/icons/ios/[email protected]' platform='ios' width='40' height='40' />
<icon src='resources/icons/ios/[email protected]' platform='ios' width='80' height='80' />
<icon src='resources/icons/ios/[email protected]' platform='ios' width='120' height='120' />
<icon src='resources/icons/ios/[email protected]' platform='ios' width='120' height='120' />
<icon src='resources/icons/ios/[email protected]' platform='ios' width='180' height='180' />
<icon src='resources/icons/ios/[email protected]' platform='ios' width='76' height='76' />
<icon src='resources/icons/ios/[email protected]' platform='ios' width='152' height='152' />
<icon src='resources/icons/ios/[email protected]' platform='ios' width='167' height='167' />
<icon src='resources/icons/ios/[email protected]' platform='ios' width='1024' height='1024' />
<splash src='resources/screen/ios/Default@2x~ipad~anyany.png' width='2732' height='2732' />
<splash src='resources/screen/ios/Default@2x~ipad~comany.png' width='1278' height='2732' />
<splash src='resources/screen/ios/Default@2x~iphone.png' width='640' height='960' />
<splash src='resources/screen/ios/Default@2x~iphone~anyany.png' width='1334' height='1334' />
<splash src='resources/screen/ios/Default@2x~iphone~comany.png' width='750' height='1334' />
<splash src='resources/screen/ios/Default@2x~universal~anyany.png' width='2732' height='2732' />
<splash src='resources/screen/ios/Default@3x~iphone~anyany.png' width='2208' height='2208' />
<splash src='resources/screen/ios/Default@3x~iphone~comany.png' width='1242' height='2208' />
<splash src='resources/screen/ios/Default~iphone.png' width='320' height='480' />
<splash src='resources/screen/ios/Default-568h@2x~iphone.png' width='640' height='1136' />
<splash src='resources/screen/ios/Default-667h.png' width='750' height='1334' />
<splash src='resources/screen/ios/Default-736h.png' width='1242' height='2208' />
<splash src='resources/screen/ios/Default-Portrait@2x~ipad.png' width='1536' height='2048' />
<splash src='resources/screen/ios/Default-Portrait~ipad.png' width='768' height='1024' />
</platform>
Aware IM Support Team