<?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 Timur Zhigmytov on Medium]]></title>
        <description><![CDATA[Stories by Timur Zhigmytov on Medium]]></description>
        <link>https://medium.com/@zhygmytov?source=rss-3620be944c24------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*jf_mnv96wJVv9r85cR6XXA.jpeg</url>
            <title>Stories by Timur Zhigmytov on Medium</title>
            <link>https://medium.com/@zhygmytov?source=rss-3620be944c24------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 20 Nov 2026 15:10:34 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@zhygmytov/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 Create Shortcuts to Your PWA]]></title>
            <link>https://medium.com/better-programming/how-to-create-shortcuts-to-your-pwa-fd7bbe108e96?source=rss-3620be944c24------2</link>
            <guid isPermaLink="false">https://medium.com/p/fd7bbe108e96</guid>
            <category><![CDATA[mobile]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[progressive-web-app]]></category>
            <category><![CDATA[pwa]]></category>
            <dc:creator><![CDATA[Timur Zhigmytov]]></dc:creator>
            <pubDate>Wed, 01 Jul 2020 03:53:18 GMT</pubDate>
            <atom:updated>2020-07-01T03:53:18.221Z</atom:updated>
            <content:encoded><![CDATA[<h4>How to get users to jump quickly to your app</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_BFC5cSHseYNjOQ4ZciBeQ.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@matfelipe?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Mateus Campos Felipe</a> on <a href="https://unsplash.com/collections/9416347/prowomen?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><p>Hello, Medium!</p><p>In this article, I want to explain and show an example regarding the new Shortcuts feature for PWA.</p><p><strong>Note before we start:</strong> Initial knowledge of PWA is required (<a href="https://codelabs.developers.google.com/codelabs/add-to-home-screen/index.html#0">how to create PWA and make it installable</a>).</p><h3>Introduction to Shortcuts</h3><p>Shortcuts are a list of tasks often performed by the user. You define these tasks yourself. This feature will improve users’ productivity as well as increase their engagement with the app. They’ll also reduce the number of clicks needed to access numerous locations and features.</p><h4><strong>Use cases</strong></h4><ul><li>Top-level navigation items (e.g., home, timeline, orders)</li><li>Search</li><li>Data-entry tasks (e.g., compose an email or tweet, add a receipt)</li><li>Activities (e.g., start a chat with the four most popular contacts in your contacts)</li></ul><h4><strong>How does it look?</strong></h4><p>The Shortcuts menu on Android appears after long-pressing the PWA icon. This is how it looks:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mj5FmIqm1SerGdZO8MXynQ.png" /><figcaption>Shortcuts on Android</figcaption></figure><p>On Windows, the Shortcuts menu is invoked by right-clicking the PWA icon in the taskbar. This is how it looks:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zqkmP7SK_hhNnKaANlxADw.png" /><figcaption>Shortcuts on a Windows desktop</figcaption></figure><h3>Code Example</h3><p>This is done with a few lines of code. In the web-app manifest file, you need to add a new shortcuts property (array type). Below is an example:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/66b836950b2900c11545e040611595dc/href">https://medium.com/media/66b836950b2900c11545e040611595dc/href</a></iframe><p>The shortcuts array has the following properties:</p><ul><li>name<strong>: </strong>Required. The human-readable label for the app shortcut when displayed to the user.</li><li>short_name<strong>: </strong>Optional.<strong> </strong>The human-readable label used when space is limited. It’s recommended you provide it.</li><li>description<strong>:</strong> Optional. Provides the shortcut action’s purpose.</li><li>url<strong>: </strong>Required. The URL that loads when a user activates the shortcut. This URL must exist in the scope of the web-app manifest file. If the url is a relative URL, the base URL will be the URL of the manifest.</li><li>icons<strong>: </strong>Optional. An array of image-resource objects. Each object’s required properties are src and sizes(the type property is optional).</li></ul><p>SVG files aren’t supported at the moment — use PNG instead. Otherwise, it’s recommended you use a single 192x192-pixel icon.</p><h3>Support</h3><p>App shortcuts are available:</p><ul><li>Chrome 84 on Android (currently available via <a href="https://play.google.com/store/apps/details?id=com.chrome.dev&amp;hl=ru">Chrome Dev</a>)</li><li>Chrome 84 and Edge 84 by enabling the flag about://flags/#enable-desktop-pwas-app-icon-shortcuts-menu on Windows</li></ul><h3>Example</h3><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2F4rQy9yDd5iw%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D4rQy9yDd5iw&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2F4rQy9yDd5iw%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/36d654544c79155686e9a97151da9210/href">https://medium.com/media/36d654544c79155686e9a97151da9210/href</a></iframe><h3>Final Thought</h3><p>I hope the article was helpful and understandable. Shortcuts are definitely worth embedding in your PWA right now for the following reasons:</p><ul><li>Create shortcuts quickly and easily</li><li>Devices that don’t support this feature simply won&#39;t display it (you won’t break anything in the code)</li></ul><p>I’m sure that soon other browsers will add support to shortcuts. When this happens, you’ll be ahead of the rest.</p><p>Thank you for your time, dear reader!</p><h3><strong>Resources</strong></h3><ul><li><a href="https://pwa-shortcuts.firebaseapp.com/index.html">Live Shortcuts PWA</a></li><li><a href="https://github.com/jyggiz/pwa-shortcuts">GitHub repo</a></li><li><a href="https://gist.github.com/jyggiz/96dccd90a7fec91acab1930ed8921a7c">Gist with Manifest.json</a></li><li><a href="https://github.com/MicrosoftEdge/MSEdgeExplainers/blob/main/Shortcuts/explainer.md">Shortcuts explainer</a></li><li><a href="https://codelabs.developers.google.com/codelabs/add-to-home-screen/index.html#0">PWA overview</a></li><li><a href="https://play.google.com/store/apps/details?id=com.chrome.dev&amp;hl=ru">Chrome Dev for Android</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fd7bbe108e96" width="1" height="1" alt=""><hr><p><a href="https://medium.com/better-programming/how-to-create-shortcuts-to-your-pwa-fd7bbe108e96">How to Create Shortcuts to Your PWA</a> was originally published in <a href="https://betterprogramming.pub/">Better Programming</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Use Contacts List in Your Web Application]]></title>
            <link>https://levelup.gitconnected.com/how-to-use-contacts-list-in-your-web-application-f002fc2c0e6c?source=rss-3620be944c24------2</link>
            <guid isPermaLink="false">https://medium.com/p/f002fc2c0e6c</guid>
            <category><![CDATA[android]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[contact-picker-api]]></category>
            <dc:creator><![CDATA[Timur Zhigmytov]]></dc:creator>
            <pubDate>Mon, 29 Jun 2020 15:29:06 GMT</pubDate>
            <atom:updated>2020-06-29T15:29:06.263Z</atom:updated>
            <content:encoded><![CDATA[<h3>How to Use the Contact Picker API for Web Applications</h3><h4>Using contacts on the web</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*s7t77NnStUUNyu5C" /><figcaption>Photo by <a href="https://unsplash.com/@christianw?utm_source=medium&amp;utm_medium=referral">Christian Wiediger</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Hello, Medium! In this article, I want to explain and show an example of a Web Contact Picker API.</p><p><strong><em>Note before we start</em></strong><em>: This article does not require specific knowledge, rather basic Javascript.</em></p><h3>What is it?</h3><p>The Contact picker model was chosen to give full control to users over the shared data, allowing users to choose exactly which contacts to provide to the website. This feature gives websites one-off access to a user’s contacts, meaning developers have to request access to the user’s contacts every time they need it.</p><p><strong>Use cases:</strong></p><ol><li>Listing event participants (names and numbers)</li><li>Selecting the recipients of a message within an e-mail application.</li><li>Specifying the physical address for sending the package</li></ol><h3>Code Example</h3><p>Before you start using browser API, you should always check whether the combination of your device and browser supports it. According to the specification, Contact Picker API in the browser is presented as a navigator.contacts . Below is a code example of check Contact Picker support:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/d907332049563ca12249ee89fd69e0f1/href">https://medium.com/media/d907332049563ca12249ee89fd69e0f1/href</a></iframe><p>After checking for support, we can start working with contacts. We need the navigator.contacts.select() — the method allows you to get the user’s contact list and select specific data for each contact for use in your web application. select() open Contact Picker and allowing the user to choose the contact(s) they want to share with the site.</p><p>navigator.contacts.select()takes two input arguments:</p><ol><li>Required argument. An array of properties for each contact you’d like returned (allowed values being any of &#39;name&#39;, &#39;email&#39;, &#39;tel&#39;, &#39;address&#39;, or &#39;icon&#39;). All values return an array of strings except the icon. This property returns an array of Blob (<a href="https://mimesniff.spec.whatwg.org/#image-mime-type">image mime type</a>).</li><li>Optional argument. Object with one boolean option multiple — select one or more contacts(default false).</li></ol><p><em>NOTE: </em>&quot;email&quot;, &quot;address&quot;, &quot;icon&quot;<em> may not be supported by some devices and browsers.</em></p><p>Below example of navigator.contacts.select():</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/47375acdf2f084edcc3b632626a24960/href">https://medium.com/media/47375acdf2f084edcc3b632626a24960/href</a></iframe><p>We will go further. In fact, not all fields are available on certain devices and browsers. Therefore, we will use navigator.contacts.getProperties(). This method allows you to get a list of available contact properties on your device and browser. Properties return as an array of strings.</p><p>In our case, navigator.contacts.getProperties() checks if the user’s device supports the adress property.</p><p>Here a final example of implementing Contact Picker API:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/aa34444288a350b60b310695d4b394d3/href">https://medium.com/media/aa34444288a350b60b310695d4b394d3/href</a></iframe><h3>Support</h3><p>Most mobile devices support Contact Picker API except only IOS Safari and Firefox on Android. On desktops Chrome, Opera and Edge already support this feature.</p><p>You can find full information about Contact Picker API support <a href="https://caniuse.com/#search=ContactsManager%20API"><em>here</em></a>.</p><h3>Example</h3><p>Here is a video example of Contact Picker API from <a href="https://contacts-picker.firebaseapp.com/"><em>my pet project “My Party List”</em></a><em>.</em></p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2F6oCOp1DlBVk%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D6oCOp1DlBVk&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2F6oCOp1DlBVk%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/f1c7d3350f091b2624491601e9cb4885/href">https://medium.com/media/f1c7d3350f091b2624491601e9cb4885/href</a></iframe><h3>Final thought</h3><p>Thank you for reading the article and I hope that it was useful to you.</p><p>The implementation of the Contact Picker API looks quite simple and not costly. In the right place, this feature can improve the user’s life. Even if you have nowhere to implement it, then knowledge of such API will not be superfluous.</p><p>Good luck, see you later!</p><h3>Resources</h3><ol><li><a href="https://wicg.github.io/contact-api/spec/#contacts-source-supported-properties">Contact picker API specification</a></li><li><a href="https://caniuse.com/#search=ContactsManager%20API">Support with Can I Use</a></li><li><a href="https://contacts-picker.firebaseapp.com/">Live Example ‘Party List’</a></li><li><a href="https://github.com/jyggiz/my-party-list/">Github repo</a></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f002fc2c0e6c" width="1" height="1" alt=""><hr><p><a href="https://levelup.gitconnected.com/how-to-use-contacts-list-in-your-web-application-f002fc2c0e6c">How to Use Contacts List in Your Web Application</a> was originally published in <a href="https://levelup.gitconnected.com/">Level Up Coding</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>