<?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 Milan Kamilya on Medium]]></title>
        <description><![CDATA[Stories by Milan Kamilya on Medium]]></description>
        <link>https://medium.com/@milan_kamilya?source=rss-1cc4b3173d02------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*IeNOFuE8IDmlFPIMlnJOJg.jpeg</url>
            <title>Stories by Milan Kamilya on Medium</title>
            <link>https://medium.com/@milan_kamilya?source=rss-1cc4b3173d02------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 17 Nov 2026 18:47:52 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@milan_kamilya/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[Xcode Hotkeys to Take You to Next Level]]></title>
            <link>https://medium.com/@milan_kamilya/xcode-hotkeys-to-take-you-to-next-level-e84ec9118b71?source=rss-1cc4b3173d02------2</link>
            <guid isPermaLink="false">https://medium.com/p/e84ec9118b71</guid>
            <category><![CDATA[productivity]]></category>
            <category><![CDATA[ios]]></category>
            <category><![CDATA[shortcuts]]></category>
            <category><![CDATA[xcode]]></category>
            <category><![CDATA[hotkeys]]></category>
            <dc:creator><![CDATA[Milan Kamilya]]></dc:creator>
            <pubDate>Tue, 24 Dec 2019 20:58:44 GMT</pubDate>
            <atom:updated>2019-12-24T20:58:44.590Z</atom:updated>
            <content:encoded><![CDATA[<p>You may have come across few developers or computer geeks in sci-fi movies who love to use keyboards rather than mouse. That surprises us why can’t we achieve similar skills even though we know lots of hotkeys. There are huge difference between remembering hotkeys and applying them in day-to-day life. You definitely have seen a list of hotkeys in various blogs, gist. Lets learn how to boost your productivity by using them.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*btQDNj0UW2HtgzclmRGZPQ.png" /></figure><p>Before jump to hotkeys, lets list down what are the recurring tasks of an iOS / tvOS / watchOS / Mac developer each day.</p><ul><li>Open up a particular file (.swift, json, .m, .h, podfile) and write new methods or update an old one.</li><li>Go to and fro between the files</li><li>Create new tab and go to and fro between the tabs</li><li>To know the callee of a particular method</li><li>search for a text through out file or entire project, replace them with a particular text. Also, go to next.</li></ul><p>Hey, do you agree with me? if you don’t, please post a comment with the missing tasks. I will catch up them.</p><p>Lets get introduced to four crucial keys which are definitely required for each hotkeys. Specially, this shift is used mostly for toggle. Like, to undo something you need <strong>⌘ + Z</strong>. and redo <strong>⌘ + ⇧ + Z</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*La0_lk5i1NYkdev5V-AO9Q.png" /></figure><p><strong>1. Open and update a particular method</strong></p><ul><li>From Xcode press <strong>⇧+⌘ + o / shift + command + o</strong> (alphabet)</li><li>You will get a search bar. Write initials of your desired file name</li><li>When you see your desired file, press <strong>↩︎ (return)</strong></li><li>Amazing!!! you got it so quick without scrolling through file navigation.</li><li>Now, its time to find the method name if it already exists</li><li>Press <strong>⌃ + 6 / Control + 6 </strong>and type name of your method</li><li>Select specific method and update. If you say you want to use by line; no…that is unrealistic for day to day life.</li><li>If you want to add new method then go by searching your mark / pragma mark name (i.e. lifecycle methods , utility, IBActions etc)</li></ul><p>This particular task you need to perform around 20–50 times in an average day. If you do it using GUI, it takes around 10–15sec each time whereas it will take 2–3 sec using hotkeys. You could become <strong>5X more productive</strong> using this simple hotkeys.</p><p><strong>2. Go to and fro between files</strong></p><p>As you keep opening up new files all are stacked in. So, you not to open them up each time. You can easily travel through them using following keys.</p><blockquote>Previous File. ⌃ + ⌘ + ← , Next File ⌃ + ⌘ + →</blockquote><p><strong>3. Create New Tab and gild through them</strong></p><p>Suppose, you are working on a new feature or for an critical issue, at that time your boss ask to change something and provide a build. 😡</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*kIKDcBR9N4Xr3OVA" /><figcaption>Photo by <a href="https://unsplash.com/@ryanmfranco?utm_source=medium&amp;utm_medium=referral">Ryan Franco</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Yeah I know that is the first expression. But, lets calm down. Lets make the changes in and push that file only.</p><ul><li>create a new tab. <strong>⌘ + t</strong> and follow through the no 1 task</li><li>Now, you already completed the tasks and need go back to previous tab. Previous tab <strong>⇧ + ⌥ + ⇥ / Shift + Control + tab</strong> and next tab <strong>⌥ + ⇥</strong></li><li>To close <strong>⌥ + ⌘ + W </strong>, to close other tabs without current one</li></ul><p><strong>4. Find Chain of method calling</strong></p><p>Suppose, you get a legacy codebase, initially, its really difficult to understand chain of method calling using copy and paste method functions and search them through out the project. That is OK, when you are starting your journey in iOS development. But, for intermidiate developers will search it using jumpbar.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*12U_-J1qgIgGFZ3_CcJhPQ.png" /></figure><p>So, to check callers of a method first point the cursor inside the method block and then press <strong>Control + 1</strong> and type “callers”. Then press → right arrow. You got the list of callers. [N.B. if that particular method is accessed via protocol, you can’t see any callers from the method definition, but protocol’s method declarations, you can see the callers ]</p><p>It is also obvious to know method definition from an called method, lets try that put the cursor within the called method and press</p><blockquote>⌃ + ⌘ + j</blockquote><blockquote>control + command + j</blockquote><p>Instead of jump to definition, if you want to see method definition</p><p><strong>5. Search &amp; Replace</strong></p><p>Similar to copy &amp; paste , search &amp; replace one of the essential tool for developers. You will hardly find any developer who didn’t use this feature in their day-to-day job.</p><p>Lets make it faster using hotkeys.</p><ul><li>To search in a file , <strong>⌘ + F</strong> / <strong>command + F</strong></li><li>After searching, to go to next. <strong>⌘ + G</strong> , , and go to previous <strong>⇧ + ⌘ + G</strong></li><li>Now, for search &amp; replace,</li><li>To perform all these tasks to entire project , you need to press extra <strong>option key or alt or ⌥</strong> .</li><li>To search in a file at entire project , <strong>⌥ + ⌘+ F</strong> / <strong>option + command + F</strong></li><li>After searching, to go to next.<strong>⌥ + ⌘ + G</strong> , and go to previous <strong>⇧ + ⌥ +⌘ + G</strong></li></ul><p><strong>How to practice these keys</strong></p><ul><li>First, remember the shortcuts of the first tasks and practice them. You have to keep doing it delibarely until you use them like a reflexion.</li><li>You can keep your mouse aside or <strong>put a paper on trackpad</strong> to avoid using GUI.</li><li>Initially, you will feel its difficult to grab the hotkeys as you are more comfortable in using mouse or trackpad. But, remember to achieve next level of your skill, you need to try hard.</li><li>If <strong>you forget some keys</strong>, then there is a another key to see list of hotkeys in Xcode. Just press <strong>⌘ + ,</strong> / <strong>command + comma</strong>. And press <strong>⌥ + ⌘ + F</strong> to search through list.</li></ul><p>Enjoy!!!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e84ec9118b71" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Remove a Published Push Notification Remotely in iOS]]></title>
            <link>https://medium.com/@milan_kamilya/remove-a-published-push-notification-remotely-in-ios-2d39311c66b2?source=rss-1cc4b3173d02------2</link>
            <guid isPermaLink="false">https://medium.com/p/2d39311c66b2</guid>
            <category><![CDATA[push-notification]]></category>
            <category><![CDATA[ios]]></category>
            <category><![CDATA[remove]]></category>
            <category><![CDATA[remote]]></category>
            <category><![CDATA[apple]]></category>
            <dc:creator><![CDATA[Milan Kamilya]]></dc:creator>
            <pubDate>Wed, 23 Oct 2019 17:13:34 GMT</pubDate>
            <atom:updated>2019-10-23T17:13:34.232Z</atom:updated>
            <content:encoded><![CDATA[<h3>Remove a Published Push Notification Remotely iOS</h3><p>I have come across a problem where a particular actionable push notification needs to be deactivated after 15 min if a iOS ( iPhone or iPad ) user doesn’t interact with it. You may come accross such challange now or future. So, lets begin..</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4GZrM-1X4CvDPCNIoGYe6Q.png" /></figure><p>If you are not familiar with Push Notification, you can start from <a href="https://github.com/milankamilya/apns">downloading this initial project</a> . I am using a nodejs with <a href="https://github.com/node-apn/node-apn">apns</a> library for sending push notification.</p><p>To send push notification we usually write method similar to “sendPushNotification” as below.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/c5ff71e01a5e14f70f6c16b02daeca7c/href">https://medium.com/media/c5ff71e01a5e14f70f6c16b02daeca7c/href</a></iframe><p>In this case, we need to send <strong>notification id</strong> (notification.id) explicitly. <strong>Apple uses this to distinguish a Push Notification uniquely</strong>. So, if you send another notification with the same id, the <strong>previous push notification will be replaced by this new one.</strong></p><p>Before removing that particular one, we need to understand another concept i.e. <strong>silent push notification</strong>. A silent push notification is not displayed on the notification center of iOS devices. To send it, you need to set sound as empty string and content available as true of the payload. <a href="https://stackoverflow.com/a/36695411/2666902">To know more.</a></p><p>So, to remove that particular push notification we will send <strong>another silent push notification with same notification ID.</strong></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/8d4eb48c30a8cc7b3a387538a27de876/href">https://medium.com/media/8d4eb48c30a8cc7b3a387538a27de876/href</a></iframe><p><strong>Cheers!! , you did what a mind-blowing hack with Apple!!</strong></p><p>Troubleshooting: if the message is not removed, check whether iOS app is set for silent notification properly. <a href="https://stackoverflow.com/a/36695473/2666902">To know more on that.</a></p><p>Please comment if it succeed or failed, I will help you.</p><p><strong>Please encourage me by CLAPPING.</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2d39311c66b2" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>