-
Notifications
You must be signed in to change notification settings - Fork 994
CB-13191: (ios) Support marketing icon #337
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Codecov Report
@@ Coverage Diff @@
## master #337 +/- ##
=======================================
Coverage 63.75% 63.75%
=======================================
Files 14 14
Lines 1680 1680
Branches 280 280
=======================================
Hits 1071 1071
Misses 609 609
Continue to review full report at Codecov.
|
You register it as an icon resource with width and height set to 1024px:
|
Thanks :-). Just one problem I am not able to update to cordova-ios@4.5.1
|
@stripathix 4.5.1 is not yet available via NPM, but you can use the specific tag:
|
I have just released cordova-ios@4.5.1 to npm. So that issue should be resolved. |
I added the line in config.json with <icon height="1024" width="1024" src="icons/ios/icon-1024.png" /> upgraded to Ios 4.5.2, but still get the warning when uploading to app store. I then updated the icon using XCode, and it updated Contents.json with the following {
"idiom" : "Ios-marketing",
"size" : "1024x1024",
"scale" : "1x"
} Have I missed to execute something, or are there still a bug? I can see I have an icon-1024.png as part of my solution I still get the warning |
I'm having the same issue I've added the correct lines in cordova config but it's not building under ios 4.5.2 downgraded to 4.5.1 and the icons started copying I think this may be a bug in ios 4.5.2 |
@ThorvaldAagaard Did you run |
@Gemeapp Which version of cordova-ios are you using? I added in the mapping for the remaining icons which included the Apple Watch ones too. |
Great. I am using 4.5.2 |
Gemeapp is also me. I didn't notive I was logged in with my company user |
@Gemeapp @ThorvaldAagaard Something is broken here, |
I am updating all to latest version so when done I will verify that the problem still is here. I might have taken the 2 screen shots at diffefent times as I saw IOS platform was reverted to 4.4.0 |
@Gemeapp That single missing icon is the bug that I mentioned earlier. I am starting the release process to get a version out that will resolve this. As to those warnings, you may want to check the actual images that you are using. Cordova will not resize the images for you and by the looks of it they all seem to be of size 96x96. |
I have just 2 images and then i run ionic cordova resources to get all images generated Isn't that ok? |
If that doesn't generate the sizes of the file that are expected by Xcode, this would be a bug on Ionic's site: |
@ThorvaldAagaard Just spoke with someone from Ionic and he said that this command should properly resize the images. He suggested updating to the latest, |
Have you removed and re-added the (You are still abusing the comments of a merged pull request for a normal usage problem by the way...) |
Sorry for not creating a real issue. Let us stop here. I will see if I can find time to recreate the problem in an empty project. But Android is my primary target, so I am no specialist in IOS. But thx for the help |
There's nothing in the docs about this. |
Paying whom @ibrent? |
hahahaha @ibrent its open source.... why are you paying? and to whom are you paying? |
The following fix worked. But there are small things to notice. 1. Make sure your 1024 icon is the correct size with no transparency or alpha channel. You can see this if you COMMAND-i while the icon is selected. This info window will tell you the size, format and if there is alpha. If there is, open it in your photo editing tool and fix it or I think Preview will do it too when you save. 2. Add this to your config XML:
3. Make sure to remove the old reference to an 'icon.png' in your config.xml. It was the first entry of my icons. There may be a tiny one there if you used PG app to build a hello world app. Replace the old reference with the new one. Make sure the image path correctly matches your icon folder path. 4. Add your new 1024px icon.png into your icon image folder. Delete the old image which may be named 'icon.png' with this new 1024px one. I just renamed the existing one 'icon-old.png'. This worked for me, but I spent a day searching the web and trying stuff. And this is a 2-year-old BUG. Good luck. |
Platforms affected
iOS
What does this PR do?
Adds support for the marketing icon. This is required for app submission since XCode 9.
What testing has been done on this change?
Ran
cordova prepare
and made sure that the icon referenced fromconfig.xml
gets properly added and is displayed in XCode.Checklist