简体   繁体   中英

Ionic Cordova to Capacitor, using cordova resorces icons and spash images

I have an app in Ionic with cordova that contains a resources folder with all the icons and splash screens inside this folder which is on the app root. It also contains the config.xml with the image paths etc.

My problem is that I'm rewriting this app using Ionic / Capacitor. I've pasted the resources folder in the root and the config.xml. I've then run the application but get no icons or splash screens from the resources folder.

How can I get my icons and splash images to work on my Ionic Capacitor version of the application?

You need to generate resources by hand or with online services like:

https://appicon.co/#app-icon

http://nsimage.brosteins.com/

For android put your resources file inside:

APP-ROOT/android/app/src/main/res

For Ios follow this guide:

https://guides.codepath.com/ios/adding-image-assets

Unfortunately there are no commands like in cordova

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM