<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Thibaut Gensollen on Medium]]></title>
        <description><![CDATA[Stories by Thibaut Gensollen on Medium]]></description>
        <link>https://medium.com/@thibaut_choose?source=rss-bd5e4e806787------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*p6p--gzt1oGTLdaMwpjMqg.jpeg</url>
            <title>Stories by Thibaut Gensollen on Medium</title>
            <link>https://medium.com/@thibaut_choose?source=rss-bd5e4e806787------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 06:27:49 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@thibaut_choose/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[How to use AlternateIcons with Ionic/Cordova with iOS 10.3]]></title>
            <link>https://medium.com/@thibaut_choose/how-to-use-alternateicons-with-ionic-cordova-with-ios-10-3-ca1fad7279b1?source=rss-bd5e4e806787------2</link>
            <guid isPermaLink="false">https://medium.com/p/ca1fad7279b1</guid>
            <category><![CDATA[icons]]></category>
            <category><![CDATA[ios]]></category>
            <category><![CDATA[ionic]]></category>
            <category><![CDATA[cordova]]></category>
            <category><![CDATA[app-icon]]></category>
            <dc:creator><![CDATA[Thibaut Gensollen]]></dc:creator>
            <pubDate>Tue, 01 Aug 2017 16:01:21 GMT</pubDate>
            <atom:updated>2017-08-01T16:17:43.880Z</atom:updated>
            <content:encoded><![CDATA[<p>With the new iOS 10.3, developers can now change dynamically the icon of their App really easily. But, it can be painful to do it when you have an hybrid app. That’s why I wrote a simple plugin and this post to do so.</p><h3>Prerequisite</h3><p>First, you will need to install this cordova plugin. It is really simple, and you will be able to change, reset or get the current alternate icon set :</p><p><a href="https://github.com/tgensol/cordova-plugin-changeicon">tgensol/cordova-plugin-changeicon</a></p><p>You will also need to create a folder containing the basic icon (with all the sizes), and the alternates icons (the normal size and the <em>@2x</em> and <em>@3x</em>) in a folder where the name is only important to you (I choose <strong>AlternateIcons</strong>)<em>.</em></p><h3>Empty the AppIcon</h3><p>Initially, when using Ionic/Cordova, an <em>Images.xcassets</em> is created and used for the splashscreen, and for the icons. For using this new iOS 10.3 functionnality, you will need to empty the <em>AppIcon</em> folder (but do not remove it or your app will not build !).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mK9eZtHpWKXp9nWUiXCb5g.png" /><figcaption>My AppIcon is now empty to use the <strong>setAlternateIconName</strong> function</figcaption></figure><p>You will also have to remove the <strong>icon</strong> keys in the <strong>config.xml</strong> for the iOS platform.</p><h3><em>AlternateIcons</em></h3><p>At this moment, I did not find a better way to do it :</p><p>You will need to drag and drop the <em>AlternateIcons</em> folder in the Xcode menu (A dialog should prompt) to copy the icons in the App:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/229/1*w73sxNPscT4sa6vwaw3z8g.png" /><figcaption>My Cordova App Structure</figcaption></figure><h4>But, for uploading your app to the App Store, you will also need the 76x76, 120x120, and 152x152 of the ‘<strong>icon’ </strong>icon.</h4><h3>Register the icons in the Info.plist</h3><p>We need to change the <em>CFBundleIcons</em> key in the Info.plist. See below an example where the <strong>icon</strong> is the initial icon, and the <strong>gold</strong>, is one alternate icon:</p><pre>&lt;key&gt;CFBundleIcons&lt;/key&gt;<br>	&lt;dict&gt;<br>		&lt;key&gt;CFBundleAlternateIcons&lt;/key&gt;<br>		&lt;dict&gt;<br>			&lt;key&gt;gold&lt;/key&gt;<br>			&lt;dict&gt;<br>				&lt;key&gt;CFBundleIconFiles&lt;/key&gt;<br>				&lt;array&gt;<br>				&lt;string&gt;gold&lt;/string&gt;<br>				&lt;/array&gt;<br>			&lt;/dict&gt;<br>		&lt;/dict&gt;<br>		&lt;key&gt;CFBundlePrimaryIcon&lt;/key&gt;<br>		&lt;dict&gt;<br>			&lt;key&gt;CFBundleIconFiles&lt;/key&gt;<br>			&lt;array&gt;<br>				&lt;string&gt;icon&lt;/string<br><strong>&lt;string&gt;icon-40</strong><strong>&lt;/string&gt;<br>&lt;string&gt;icon-60</strong><strong>&lt;/string&gt;<br>&lt;string&gt;icon-72</strong><strong>&lt;/string&gt;<br>&lt;string&gt;icon-76</strong><strong>&lt;/string&gt;</strong><br>&lt;/array&gt;<br>			&lt;key&gt;UIPrerenderedIcon&lt;/key&gt;<br>			&lt;false/&gt;<br>		&lt;/dict&gt;<br>	&lt;/dict&gt;</pre><p><em>(Do not forget to add the multiple sizes of the icon here, as they are no more in the AppIcon file)</em></p><h3>Usage</h3><p>You should now be ready to change your main icon ! Anywhere you want, you can call the plugin function to change the icon like that :</p><pre>window[&#39;ChangeIcon&#39;].changeIcon(&#39;gold&#39;);</pre><p>The final result :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/407/1*5GBqWfHJ_cY63sn1T8V2jA.png" /><figcaption>The dialog when the change was a success</figcaption></figure><p>This is only the first release, and the plugin should improve with an easier procedure with time.</p><p>Thanks for your time ❤. It was my first post and I hope you liked it. We developed several plugins like this one at <a href="https://appchoose.io/"><strong>Choose</strong></a>, and you should try yourself the app !</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ca1fad7279b1" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>