Hi @Diego and Thank you for your stunning grunt ionic generator!!!
I’m trying to load my custom app icon but it doesn’t work!
i simply copy my icons in ->projectFolder->ionic->icons->ios
Maybe i have to copy images in app folder?
i have this config.xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
Ionic
A sample Apache Cordova application that responds to the deviceready event.
Apache Cordova Team
Thank you.
Tommaso.
Continuing the discussion from SplashScreen location :
I recently added support for icons and splash screens to the Ionic Yeoman Generator using a hook based on the one from the article @jmondragon mentioned that might be helpful.
The hook from that article hardcodes the asset paths, which have changed in newer versions of Cordova, so I created a hook that is more general purposed .
At a high level, my hook does the following:
Look at all installed platforms
Copy (non-destructive) icons and splash screens from platforms/
to local RESOURCE_DIR
Copy (destructive) matching icons and splash screens from RESOURCE_DIR
back to platforms/
The benefit of this approach is that it ensures that your local (project root directory) RESOURCE_DIR
will be pre-scaffolded with icons and splash screens generated by Cordova as placeholders only for installed platforms AND that any modifications to local assets are reflected in the correct Cordova platform/
locations, without having to hardcode file paths!
If anyone cares to use my hook outside of the Yeoman Generator, be sure to replace the templatized <%= appName %>
variable with your application’s name on line 23 , then run cordova prepare
so the hook can scaffold out the appropriate files. Be sure to keep the file name conventions.
Hopefully someone finds this helpful!
Continuing the discussion from SplashScreen location :
I recently added support for icons and splash screens to the Ionic Yeoman Generator using a hook based on the one from the article @jmondragon mentioned that might be helpful.
The hook from that article hardcodes the asset paths, which have changed in newer versions of Cordova, so I created a hook that is more general purposed .
At a high level, my hook does the following:
Look at all installed platforms
Copy (non-destructive) icons and splash screens from platforms/
to local RESOURCE_DIR
Copy (destructive) matching icons and splash screens from RESOURCE_DIR
back to platforms/
The benefit of this approach is that it ensures that your local (project root directory) RESOURCE_DIR
will be pre-scaffolded with icons and splash screens generated by Cordova as placeholders only for installed platforms AND that any modifications to local assets are reflected in the correct Cordova platform/
locations, without having to hardcode file paths!
If anyone cares to use my hook outside of the Yeoman Generator, be sure to replace the templatized <%= appName %>
variable with your application’s name on line 23 , then run cordova prepare
so the hook can scaffold out the appropriate files. Be sure to keep the file name conventions.
Hopefully someone finds this helpful!