<?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 Enes Kocaman on Medium]]></title>
        <description><![CDATA[Stories by Enes Kocaman on Medium]]></description>
        <link>https://medium.com/@enskcmn?source=rss-8cca7a1f4cb4------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*O_Kd_mG-6xjj6ScXd_SYmA.png</url>
            <title>Stories by Enes Kocaman on Medium</title>
            <link>https://medium.com/@enskcmn?source=rss-8cca7a1f4cb4------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 18 Nov 2026 19:36:35 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@enskcmn/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[Exploring Huawei Cloud CodeHub: A Guide to Features and Migration from GitHub]]></title>
            <link>https://medium.com/huawei-developers/exploring-huawei-cloud-codehub-a-guide-to-features-and-migration-from-github-68770edeb5d5?source=rss-8cca7a1f4cb4------2</link>
            <guid isPermaLink="false">https://medium.com/p/68770edeb5d5</guid>
            <category><![CDATA[code-art]]></category>
            <category><![CDATA[devcloud]]></category>
            <category><![CDATA[huawei-cloud]]></category>
            <category><![CDATA[github]]></category>
            <category><![CDATA[codehub]]></category>
            <dc:creator><![CDATA[Enes Kocaman]]></dc:creator>
            <pubDate>Fri, 05 May 2023 06:11:20 GMT</pubDate>
            <atom:updated>2023-05-05T06:11:20.171Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ndq2Ju-zT4P4QHVFqKPQpw.png" /><figcaption>Huawei Cloud — CodeHub Service</figcaption></figure><p>Git-based version control tools like GitHub and GitLab have become essential resources for developers, providing a platform for managing code repositories, collaborating on code with other team members, and tracking issues and bugs.</p><p>Huawei Cloud CodeHub is a powerful source code management platform that builds on the standard Git platform, providing a range of additional features and tools to help developers streamline their development workflows. With the existing repository migration feature, developers can easily migrate their existing repositories from GitHub to CodeHub, providing a seamless transition and allowing them to take advantage of CodeHub’s powerful features. In this article, we will explore the features of CodeHub in depth and discuss how it can help developers improve their productivity and streamline their development workflows, with a specific focus on the migration process from GitHub to CodeHub.</p><h4>Comparison between CodeHub and GitHub</h4><p>When it comes to source code management tools, Huawei Cloud CodeHub service and GitHub are two popular options that developers can choose from. While both platforms share some similarities, there are also some key differences in terms of their features, integrations, and focus that make them better suited for different use cases and user groups. Let’s take a closer look at the advantages and disadvantages of each platform to help you decide which one might be the right fit for your needs.</p><p><strong>Huawei CodeHub service:</strong></p><ul><li>Integrated with Huawei Cloud services(CodeArts)</li><li>Advanced security features</li><li>Powerful collaboration features</li><li>Integrated CI/CD pipeline</li><li>Limited community and ecosystem</li><li>Limited third-party integrations</li></ul><p><strong>GitHub:</strong></p><ul><li>Large and active community of developers and open-source projects</li><li>Extensive third-party integrations</li><li>Strong support for open-source development</li><li>Limited integration with other cloud services</li><li>Security concerns related to ownership by Microsoft</li><li>Limited support for enterprise-level authentication and authorization mechanisms</li></ul><p>In general, CodeHub provides a more tightly integrated platform with Huawei Cloud services, advanced security features, and a strong focus on enterprise-level security and collaboration. On the other hand, GitHub has a larger and more active community of developers and open-source projects, extensive third-party integrations, and strong support for open-source development. Ultimately, the choice between these two platforms will depend on the specific needs and priorities of individual developers and organizations.</p><h4>Migrating a Repository from GitHub to CodeHub</h4><p>To import your existing repository from GitHub to Huawei Cloud CodeHub service, you need to first access CodeHub service under your Cloud Developer account. Once you’re logged in, click on the arrow located on the right side of the button and select “Import Repository” from the dropdown menu. Depending on the visibility settings of your repository, you can follow one of the options explained below to complete the import process.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DVy335t-EjkVoSFrqcfLMQ.png" /><figcaption>Figure 1.1. CodeHub — Import Repository</figcaption></figure><ul><li><strong>Private Repository</strong></li></ul><p>If you have an existing private repository on GitHub and want to migrate it to Huawei Cloud CodeHub service, there is a simple process to follow. First, you need to create a Personal Access Token under your GitHub account, which will be used as a parameter when importing your existing repository onto CodeHub. By following this process, you can seamlessly move your repository and continue your development work using the advanced features and integrations provided by CodeHub.</p><ol><li>Log in to your GitHub account and click on your avatar located at the top right corner of the page.</li><li>From the dropdown menu, select “Settings”.</li><li>In the left-hand navigation menu, click on “Developer settings” located at the bottom of the page.</li><li>Click on “Personal access tokens” from the submenu.</li><li>On the Personal access tokens page, click on the “Generate new token” button.</li><li>Give a descriptive name to your token in the “Note” field.</li><li>Choose the appropriate scopes that you want to grant the token. The scopes define what the token can access on your GitHub account.</li><li>Select the expiration date for the token or choose to make it never expire.</li><li>Finally, click on the “Generate token” button.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EdN9xJ7kGItVPBzqe23pNg.png" /><figcaption>Figure 2.1. GitHub— Creating Access Token</figcaption></figure><p>Once you’ve generated your token, you can use it as a parameter when importing your existing private GitHub repository into Huawei Cloud CodeHub service as shown below.</p><blockquote>https://&lt;PAT&gt;<a href="http://twitter.com/github">@github</a>.com/&lt;github username&gt;/&lt;repository name&gt;.git</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*b6K6qEKzOjVu8XEmCobizw.png" /><figcaption>Figure 2.2. GitHub — Import Repository URL</figcaption></figure><ul><li><strong>Public Repository</strong></li></ul><p>If your GitHub repository is public, you can import it into Huawei Cloud CodeHub service without using any access token. Simply copy and paste the URL of your repository into the import wizard, and then click on the “Next” button to proceed.</p><p>In conclusion, the use of version control tools has become essential for software development, and platforms like GitHub and GitLab have played a significant role in facilitating collaboration, managing code repositories, and tracking issues and bugs. Huawei Cloud CodeHub is a powerful source code management platform that provides a range of additional features and tools to help developers streamline their development workflows. This article has explored the features of CodeHub and discussed how it can help developers improve their productivity and streamline their development workflows, with a specific focus on the migration process from GitHub to CodeHub. While both CodeHub and GitHub offer unique advantages and disadvantages, the choice between these two platforms will ultimately depend on the specific needs and priorities of individual developers and organizations. With the existing repository migration feature, developers can easily migrate their existing repositories from GitHub to CodeHub, providing a seamless transition and allowing them to take advantage of CodeHub’s powerful features.</p><h4>References</h4><ul><li><a href="https://support.huaweicloud.com/intl/en-us/codehub/index.html">Progressive Knowledge_CodeArts Repo_Huawei Cloud</a></li><li><a href="https://stackoverflow.com/questions/68775869/message-support-for-password-authentication-was-removed-please-use-a-personal">Message &quot;Support for password authentication was removed. Please use a personal access token instead.&quot;</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=68770edeb5d5" width="1" height="1" alt=""><hr><p><a href="https://medium.com/huawei-developers/exploring-huawei-cloud-codehub-a-guide-to-features-and-migration-from-github-68770edeb5d5">Exploring Huawei Cloud CodeHub: A Guide to Features and Migration from GitHub</a> was originally published in <a href="https://medium.com/huawei-developers">Huawei Developers</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 URL Rewriting in Huawei Cloud CDN for Customized Retrieval Request URLs]]></title>
            <link>https://medium.com/huawei-developers/how-to-use-url-rewriting-in-huawei-cloud-cdn-for-customized-retrieval-request-urls-143cb648a371?source=rss-8cca7a1f4cb4------2</link>
            <guid isPermaLink="false">https://medium.com/p/143cb648a371</guid>
            <category><![CDATA[retrieval-request-urls]]></category>
            <category><![CDATA[content-delivery-network]]></category>
            <category><![CDATA[cloud-cdn]]></category>
            <category><![CDATA[huawei-cloud]]></category>
            <dc:creator><![CDATA[Enes Kocaman]]></dc:creator>
            <pubDate>Fri, 31 Mar 2023 08:56:58 GMT</pubDate>
            <atom:updated>2023-03-31T08:56:58.661Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*7bcmLi4SjtCmrl8zRvlF0w.jpeg" /><figcaption>CDN</figcaption></figure><h4>Introduction</h4><p>Assume you have multiple images and documents uploaded on your website. If you were to change the storage path of a file, such as relocating them to another folder, on the origin server, would you need to update all the source URLs for these images❓ I hear you say, “noo, this is too much workload..”😊 Thanks to Huawei Cloud CDN, there’s no need for such modifications. Instead, you can make use of the Rewriting Retrieval Request URLs solution, which simplifies the process. In this introductory article, we will delve into the details of how to use this solution.</p><p>Huawei Cloud CDN is a content delivery network (CDN) service that provides fast and reliable content delivery to users around the world. One of the key features of Huawei Cloud CDN is URL rewriting, which allows you to customize the retrieval request URLs for your origin server.</p><p>URL rewriting is an essential feature for optimizing website performance and improving user experience. With URL rewriting, you can modify the request URLs sent to the origin server to match the specific requirements of your website or application. This can include adding or removing query parameters, modifying the hostname, modifying the path, or adding prefixes or suffixes to the URL.</p><p>URL rewriting in Huawei Cloud CDN can be used for a variety of purposes, including:</p><ul><li><strong>Removing unnecessary query parameters:</strong> Some applications generate URLs with query parameters that are not needed by the origin server. URL rewriting can be used to remove these unnecessary parameters and reduce the size of the request URL.</li><li><strong>Customizing hostname and path:</strong> In some cases, the origin server may require specific hostnames or paths to retrieve content. URL rewriting can be used to modify the requested hostname or path to match these requirements.</li><li><strong>Improving cache hit rate:</strong> Rewriting Retrieval Request URLs can be used to improve cache hit rate by modifying the URL of content requested from the origin server to make it more likely that the content will be served from the CDN’s cache.</li><li><strong>Adding prefixes or suffixes:</strong> URL rewriting can be used to add prefixes or suffixes to requested URLs. This can be useful for tracking or logging purposes, or for enforcing specific security measures.</li><li><strong>Reducing cache misses:</strong> URL rewriting can be used to modify requested URLs to ensure that cached content is served whenever possible. This can help reduce the number of cache misses and improve overall website performance.</li></ul><p>Let’s say that we want to use Rewriting Retrieval Request URLs to add a watermark to all images requested from our origin server. We can follow these steps 🧐</p><p><strong>Step 1:</strong> Log in to the Huawei Cloud CDN console and navigate to the URL rewriting page by <strong>Service List &gt; Content Delivery Network</strong></p><p><strong>Step 2:</strong> In the left navigation menu, open CDN and click on “Domain Names” to access the domain name list in the opened window.</p><p><strong>Step 3:</strong> In the domain name details page, click on the “Retrieval Settings” tab.</p><p><strong>Step 4:</strong> Create a new URL rewriting rule by specifying the matching criteria, the replacement pattern, and any other relevant parameters.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8n9Lmp_BjotsuKumjWIAdQ.png" /><figcaption>List of CDN Domains</figcaption></figure><p><strong>Step 5:</strong> Scroll down to the “Rewrite Retrieval Request URL” section and click on <strong>Edit.</strong></p><p><strong>Step 6:</strong> In the “Add Rewrite Rule” dialog box, configure the following settings:</p><ul><li>Match mode: Path</li><li>Original URI: /(.*.(jpg|png|gif))$</li><li>Target URI: /$1?watermark=1</li></ul><h4>Conclusion</h4><p>In conclusion, Huawei Cloud CDN’s Rewriting Retrieval Request URLs feature provides a powerful and flexible tool for customizing content delivery and improving the performance, security, and user experience of your content delivery network. By rewriting URLs, you can optimize content delivery, customize content based on user behavior or device type, and even secure your content by obfuscating URLs. With its simple and intuitive interface, Huawei Cloud CDN makes it easy to configure URL rewriting rules to suit your specific needs. Whether you’re a small business or a large enterprise, URL rewriting is a valuable feature that can help you take your content delivery to the next level.</p><h4>References</h4><p><a href="https://support.huaweicloud.com/intl/en-us/usermanual-cdn/cdn_01_0179.html">Rewriting Retrieval Request URLs_Content Delivery Network_User Guide_Domain Name Settings_Retrieval Settings_Huawei Cloud</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=143cb648a371" width="1" height="1" alt=""><hr><p><a href="https://medium.com/huawei-developers/how-to-use-url-rewriting-in-huawei-cloud-cdn-for-customized-retrieval-request-urls-143cb648a371">How to Use URL Rewriting in Huawei Cloud CDN for Customized Retrieval Request URLs</a> was originally published in <a href="https://medium.com/huawei-developers">Huawei Developers</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Differences between Account Binding Solution 1–2–3]]></title>
            <link>https://medium.com/huawei-developers/the-differences-between-account-binding-solution-1-2-3-61bd46edecf4?source=rss-8cca7a1f4cb4------2</link>
            <guid isPermaLink="false">https://medium.com/p/61bd46edecf4</guid>
            <category><![CDATA[hms]]></category>
            <category><![CDATA[huawei-ability-gallery]]></category>
            <category><![CDATA[agc]]></category>
            <dc:creator><![CDATA[Enes Kocaman]]></dc:creator>
            <pubDate>Sun, 06 Jun 2021 22:45:05 GMT</pubDate>
            <atom:updated>2021-06-10T11:32:01.816Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RUV6APswqRT8S_pb6l3QBg.jpeg" /></figure><p>Hello, in today’s article, we will try to examine 3 different solutions of the Account Binding method offered by HAG and the differences between these solutions. After you start reading this article, if you have questions in your mind, what is Account Binding? What does it offer? If such questions arise, I recommend you to review the article titled <a href="https://medium.com/huawei-developers/huawei-ability-gallery-account-binding-w-card-ability-95dc3e6536e9">Huawei Ability Gallery — Account Binding w Card Ability</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LEZrvxmpA7QMFvwirtmY2A.png" /><figcaption>Table 1.0</figcaption></figure><h4>Huawei Authorizes Developer</h4><p>The content specially prepared for a certain user group can be shown to the relevant users by using this method by the developer. By applying this method, the Developer shows the content he has prepared to a certain user group.</p><p>Solution-1 and Solution-2 are available under Huawei Authorizes Developer heading. So what is the difference between Solution 1 and 2?</p><p><strong>Solution-1</strong> : It is a system where user credentials are entered into the developer’s own account system and the application is registered and the UID is assigned according to the developer’s own algorithm. In short, the user has to log in to the account system developed by the developer himself.</p><p><strong>Solution-2</strong> : It is the system where the developer does not have his own account system and the application is entered using the Login option with Huawei ID. As a result of matching the UID assigned by Huawei and the Open ID assigned by HAG, the Account Binding process is completed.</p><p>Solution 1 and Solution 2 offer the same features for Card and Content Ability.</p><h4>Developer Authorizes Huawei</h4><p>It is a method that can only be used for Content Ability. Developer must have its own server and account system, and the user logs into this account system.</p><p><strong>Solution-3</strong> : This feature only applies to Content Ability designs. It is a method where the user can see the previously purchased content, that is, the developer does not produce content specifically for the user.</p><p>At the end of this article, where we examine the difference between Account Binding solutions, I would like to present an example for each solution below for better understanding.</p><p>Solution-1: The developer has his own account system and wants to offer special content to a certain user group.</p><p>Solution-2: The developer does not have an account system designed by himself. In this case, by using the Login method with Huawei ID, the user can log in and complete the binding process by matching the Huawei User ID and Open ID.</p><p>Solution-3: If the developer has his own account system and wants to present the content of the products (such as music albums) that he has purchased before on Content Ability, he should prefer this method.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=61bd46edecf4" width="1" height="1" alt=""><hr><p><a href="https://medium.com/huawei-developers/the-differences-between-account-binding-solution-1-2-3-61bd46edecf4">The Differences between Account Binding Solution 1–2–3</a> was originally published in <a href="https://medium.com/huawei-developers">Huawei Developers</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Differences between Card and Content Abilities]]></title>
            <link>https://medium.com/huawei-developers/differences-between-card-and-content-abilities-f7ae822ae790?source=rss-8cca7a1f4cb4------2</link>
            <guid isPermaLink="false">https://medium.com/p/f7ae822ae790</guid>
            <category><![CDATA[hms]]></category>
            <category><![CDATA[content-ability]]></category>
            <category><![CDATA[huawei-ability-gallery]]></category>
            <category><![CDATA[card-ability]]></category>
            <dc:creator><![CDATA[Enes Kocaman]]></dc:creator>
            <pubDate>Mon, 24 May 2021 05:47:44 GMT</pubDate>
            <atom:updated>2021-05-24T05:47:44.182Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PzPwa8kMgdkSSH77YvK7MQ.png" /></figure><p>When we consider the advantages brought by the technological developments in recent years to human life, I think the item <strong>Easy and Fast Accessibility</strong> would be in the first place. Nowadays, especially with the contribution of the extraordinary development of the Smartphone Ecosystem; When you want to buy a product for yourself, instead of going to any store and testing the product, you can take advantage of the opportunities offered by online shopping via your mobile phone. Moreover, all you need to do is visit the website of the relevant service provider or download the mobile application using the application market on your phone. However, when we consider today’s living conditions, we end-users are looking for the answer to the question of how can I take care of our work one step more easily and quickly. When we look at the service providers, this situation causes the <strong>User Retention</strong> rate to decrease significantly. As a result, while one party (user) is looking for faster and easier ways to access a service, the other party (Service Provider) wants to increase the number of users benefiting from the service and leaving the users satisfied.</p><p>Is there a permanent method that will satisfy both the user and the service provider? Unfortunately, it is not possible to give a clear answer to this question, especially in our age when technology is developing rapidly. Today, there are various possibilities offered by technology to ensure mutual satisfaction. One of them is the Huawei Assistant, which is called the -1 page of the phones of Huawei brand smartphone users.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/180/0*Dvg-JrdkmBvucz8X.png" /><figcaption>Swipe Right to Enter Huawei Assistant</figcaption></figure><p>Huawei Assistant page offers 4 basic features to users, these are;</p><blockquote>1- Instant Access</blockquote><blockquote>2- Smart Service</blockquote><blockquote>3- AI Lens</blockquote><blockquote>4- AI Voice</blockquote><p>The Smart Service feature, on the other hand, includes 2 sub-features as C<strong>ard Ability</strong> and <strong>Content Ability</strong>. In the remainder of our article today, we will focus on the differences between Card and Content Ability.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/856/1*JcbRDEjqlEy_VKb_TmieVA.png" /><figcaption>Difference Between Card &amp; Content Abilities</figcaption></figure><p>I think it would be more useful to examine the differences between the two abilities item by item.</p><h3>1- Presentation / Display Mode</h3><p>Both Abilities are displayed in a Card format on the Huawei Assistant page. Therefore, we may not always understand which of the two abilities is Card and which is Content Ability.</p><h3>2- Touch Points</h3><p>Touchpoints describe the way users communicate with ability. We see that the Smart Service feature is common on both sides. The difference here is that you can only benefit from the AI ​​Lens and AI Voice sub-features if you use Content Ability.</p><h4>AI Lens</h4><p>It is a technology that allows you to search for a product or service on the internet with the help of your phone’s camera instead of typing. For example, when you introduce a cat image to your phone’s camera using the AI Lens feature, it will bring you similar results on the internet environment closely related to the image using the search engine on the phone.</p><h4>AI Voice</h4><p>Celia, the voice command assistant on the new generation Huawei phones, allows users to access content on the relevant mobile/web application, search engine, or phone by capturing the keywords that users say.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/240/1*Pz07DtegJIEsGIS47-S4Rw.gif" /><figcaption>Huawei AI Voice</figcaption></figure><h3>3- Develop the Fulfillment API</h3><p>In Card Ability, in cases where a dynamic, ie variable content is not offered (the content to be displayed is fixed), it will not be necessary to change the information in the Card, so it will not be necessary to design an API. However, if the content to be displayed on the Card will be dynamic content, then an API that provides different data should be designed for the Card and a request should be sent to this API during the development phase performed in the Quick APP IDE, and the resulting contents should be displayed on the Card.</p><p>On the Content Ability side, the fulfillment API is a must. The design of Content Ability and the content to be displayed on it will be used by the developer by the API, by the HAG server, and the automatic creation of Content Ability will be provided.</p><h3>4- Develop Account Binding APIs</h3><p>To better understand this part, I would suggest you read my article previously written about <a href="https://medium.com/huawei-developers/huawei-ability-gallery-account-binding-w-card-ability-95dc3e6536e9">Account Binding</a>.<br>The purpose of Account Binding is to show special content on the Card to the users who are determined as the target audience in the next stage by making associations between the application developed by a company and Card / Content Ability. This content can be advertisements/campaigns/products specific to the user. However, there may be companies that do not have a target audience or do not intend to offer user-specific content on the Card. This feature is optional.</p><h3>5- Card Design</h3><p>In Card Ability, the design of the Card is created by making changes on the predefined ready-made designs on the Quick APP IDE or by combining several different parts with the help of drag-and-drop feature by designing a special template.<br>On the Content Ability side, it is not possible to make any design work by the developer. Instead, the developer chooses the appropriate predefined designs, and the selected design is presented to the developer in JSON format by HAG. After the developer has made the necessary changes on this JSON file, it will return it in response to the request sent by HAG and the relevant card will be created automatically by HAG.</p><h3>6- IDE for Development</h3><p>While preparing Card Ability, design and development are carried out on Huawei Quick APP IDE.<br>On the Content Ability side, there is no need for such a development. What is expected from the developer is to choose the appropriate one from the predefined designs and to provide the API required to provide content.</p><p>For an example of developing Content Ability specific, you can visit the related article by <a href="https://medium.com/huawei-developers/how-can-we-develop-content-ability-f1d6e7249314">clicking here</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f7ae822ae790" width="1" height="1" alt=""><hr><p><a href="https://medium.com/huawei-developers/differences-between-card-and-content-abilities-f7ae822ae790">Differences between Card and Content Abilities</a> was originally published in <a href="https://medium.com/huawei-developers">Huawei Developers</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Card ve Content Ability Arasındaki Farklılıklar]]></title>
            <link>https://medium.com/huawei-developers-tr/card-ve-content-ability-aras%C4%B1ndaki-farkl%C4%B1l%C4%B1klar-7af639fc501a?source=rss-8cca7a1f4cb4------2</link>
            <guid isPermaLink="false">https://medium.com/p/7af639fc501a</guid>
            <category><![CDATA[huawei]]></category>
            <category><![CDATA[hms]]></category>
            <category><![CDATA[card-ability]]></category>
            <category><![CDATA[content-ability]]></category>
            <category><![CDATA[huawei-ability-gallery]]></category>
            <dc:creator><![CDATA[Enes Kocaman]]></dc:creator>
            <pubDate>Sun, 23 May 2021 23:09:55 GMT</pubDate>
            <atom:updated>2021-05-23T23:09:55.062Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PzPwa8kMgdkSSH77YvK7MQ.png" /></figure><p>Son yıllardaki teknolojik gelişmelerin insan hayatına olumlu yönde katkılarını saymaya başlayacak olursak ilk sırada sanırım <strong>Kolay ve Hızlı Erişebilirlik </strong>maddesini olurdu. Günümüzde özellikle Akıllı telefon Ekosistemi’nin olağanüstü gelişiminin katkısıyla; kendinize bir ürün satın almak istediğinizde, herhangi bir mağazaya gidip ürünü test etmek yerine online alışverişin size sunduğu imkanlardan cep telefonunuz vasıtasıyla faydalanabilirsiniz. Üstelik bunun için tek yapmanız gereken ilgili hizmet sağlayıcının websitesini ziyaret etmek veya mobil uygulamasını telefonunuzdaki uygulama marketini kullanarak indirmek olacaktır. Ancak günümüz hayat şartlarını göz önüne aldığımızda, biz son kullanıcılar yapacağımız işi nasıl bir adım daha kolay ve hızlı bir şekilde halledebilirim sorusunun cevabını arıyoruz. Hizmeti sunanlar tarafından baktığınızda ise bu durum <strong>Kullanıcıyı Elde Tutma(</strong>User Retention<strong>) </strong>oranının ciddi ölçüde azalmasına sebep olmaktadır. Sonuç olarak, bir taraf(kullanıcı) bir hizmete daha hızlı ve kolay erişmenin yollarını ararken, diğer taraf(Hizmeti Veren) verdiği hizmetten yararlanan kullanıcı sayısının artmasını ve kullananların da memnun ayrılmasını istemektedir.</p><p>Hem kullanıcı hem de hizmet veren tarafı memnun edecek kalıcı bir yöntem var mı? Bu soruya net bir cevap vermek özellikle de teknolojinin hızla geliştiği çağımızda ne yazık ki pek de mümkün değil. Günümüzde karşılıklı memnuniyeti sağlamak üzere teknolojinin bize sunduğu çeşitli imkanlar mevcut. Bunlardan birisi ise Huawei marka akıllı telefon kullanıcılarının telefonlarının -1 sayfası olarak adlandırılan Huawei Assistant.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/180/1*ogtGhN6V7h2VUtxpOcHpZw.png" /><figcaption>Ana Sayfa ekranında Ekranı Sağ’a kaydırınız</figcaption></figure><p>Huawei Assistant sayfasında kullanıcılara 4 temel özellik sunulur, bunlar;</p><blockquote>1- Instant Access</blockquote><blockquote>2- Smart Service</blockquote><blockquote>3- AI Lens</blockquote><blockquote>4- AI Voice</blockquote><p>Smart Service özelliği ise kendi içinde <strong>Card Ability </strong>ve <strong>Content Ability </strong>olarak 2 alt özelliği barındırır. Bugünkü makalemizin kalan kısmında Card ve Content Abilitylerin arasındaki farklar üzerine yoğunlaşacağız.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/856/1*JcbRDEjqlEy_VKb_TmieVA.png" /><figcaption>Card&amp;Content Ability Farklılıkları</figcaption></figure><p>İki ability arasındaki farklılıkları madde madde incelemenin daha yararlı olacağını düşünüyorum.</p><h3>1- Sunum/Gösterim Modu</h3><p>Her iki Ability de Huawei Assistant sayfasında bir Card formatında gösterilmektedir. Dolayısıyla iki ability’nin arasından hangisinin Card hangisinin Content Ability olduğunu her zaman anlayamayabiliriz.</p><h3>2- Touch Points</h3><p>Touch points(Temas noktaları) aslında kullanıcıların ability ile iletişime geçme şeklini tarif etmektedir. Smart Service özelliği’nin her iki tarafta da ortak olduğunu görüyoruz. Buradaki farklılık <strong>AI Lens</strong> ve <strong>AI Voice</strong> alt özelliklerinden ancak ve ancak Content Ability kullanmanız durumunda faydalanabiliyorsunuz.</p><h4>AI Lens</h4><p>Bir ürün veya servisi kullanabilmek için yazarak arama yapmak yerine ilgili ürünü telefonunuzun kamerası yardımıyla internet üzerinde arayabilmenizi sağlayan bir teknolojidir. Örneğin telefonunuzun kamerasına bir kedi resmini AI Lens özelliğini kullanarak tanıttığınızda, telefondaki arama motoru kullanılarak görüntüyle yakın ilişkili olan internet ortamındaki benzer sonuçları size getirecektir.</p><h4>AI Voice</h4><p>Yeni nesil Huawei telefonlarda bulunan sesli komut asistanı <strong>Celia</strong>, kullanıcıların söylediği anahtar kelimeleri yakalayarak, kullanıcıların ilgili mobil/web uygulama, arama motoru veya telefonda bulunan bir içeriğe ulaşmasına olanak tanır.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/240/1*Pz07DtegJIEsGIS47-S4Rw.gif" /><figcaption>Huawei AI Voice</figcaption></figure><h3>3- Develop the Fulfillment API</h3><p><strong>Card Abilitylerde</strong> dinamik yani değişken bir içerik sunulmayacağı durumlarda(gösterilecek içeriğin sabit olması) Card içerisindeki bilgilerin de değiştirilmesine gerek kalmayacağından bir API tasarlanmasına gerek olmayacaktır. Ancak Card üzerinde gösterilecek içerik eğer dinamik bir içerik olacaksa bu durumda Card için farklı verileri sağlayan bir API tasarlanıp Quick APP IDE’de gerçekleştirilen development aşamasında bu API’a istek gönderilmeli ve gelen sonuçtaki içerikler Card üzerinde gösterilmelidir.</p><p><strong>Content Ability</strong> tarafında ise fulfillment API bir zorunluluktur. Content Ability’nin tasarımı ve üzerinde gösterilecek olan içerik, developer tarafından API, HAG server’ı tarafından kullanılarak Content Ability’nin otomatik oluşturulması sağlanacaktır.</p><h3>4- Develop Account Binding APIs</h3><p>Bu kısmı daha iyi anlayabilmeniz açısından daha önce <a href="https://medium.com/huawei-developers-tr/account-binding-in-card-abilities-solution-2-77577ef2f426">Account Binding</a> hakkında yazılmış olan makalemi okumanızı önereceğim.</p><p>Account Binding’in amacı, bir şirketin geliştirmiş olduğu uygulama ve Card/Content Ability arasında ilişkilendirme yapılarak sonraki aşamada hedef kitle olarak belirlenmiş kullanıcılara Card üzerinde özel içerikler gösterilmesidir. Bu içerik kullanıcıya özel reklam/kampanya/ürün olabilmektedir. Ancak hedef kitlesi bulunmayan veya Card üzerinde kullanıcıya özel içerik sunmayı düşünmeyen şirketler de olabilir. Bu özellik opsiyoneldir.</p><h3>5- Card Design</h3><p>Card Ability’lerde Card’ın dizaynı Quick APP IDE üzerinde bulunan önceden tanımlanmış hazır tasarımlar üzerinde değişiklikler yapılarak veya birkaç farklı parçanın sürükle-bırak özelliği yardımıyla biraraya getirelerek özel bir template tasarlanmasıyla oluşturulmaktadır.</p><p>Content Ability tarafında ise geliştirici tarafından herhangi bir dizayn işlemi yapılmasına olanak sağlanmamaktadır. Bunun yerine geliştirici, önceden tanımlanmış tasarımlar arasından uygun olanı seçilir ve seçilen dizayn HAG tarafından JSON formatında geliştiriciye sunulur. Geliştirici bu JSON dosyası üzerinde gerekli değişikliklerini yaptıkan sonra bunu HAG tarafından gönderilen isteğe cevap olarak dönecek ve ilgili card HAG tarafından otomatik olarak oluşturulacaktır.</p><h3>6- IDE for Development</h3><p>Card Ability hazırlanırken, tasarım ve geliştirmeler Huawei Quick APP IDE üzerinde gerçekleştirilir.</p><p>Content Ability tarafında ise böyle bir geliştirmeye gerek yoktur. Geliştirici’den beklenen, önceden tanımlanmış dizaynlardan uygun olanı seçmesi ve içerik sağlamak için gerekli olan API’ı sunmasıdır.</p><p>Content Ability özelinde geliştirme örneği için <a href="https://medium.com/huawei-developers/how-can-we-develop-content-ability-f1d6e7249314">buraya </a>tıklayarak ilgili makaleyi ziyaret edebilirsiniz.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7af639fc501a" width="1" height="1" alt=""><hr><p><a href="https://medium.com/huawei-developers-tr/card-ve-content-ability-aras%C4%B1ndaki-farkl%C4%B1l%C4%B1klar-7af639fc501a">Card ve Content Ability Arasındaki Farklılıklar</a> was originally published in <a href="https://medium.com/huawei-developers-tr">Huawei Developers - Türkiye</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Huawei Ability Gallery — Account Binding w Card Ability]]></title>
            <link>https://medium.com/huawei-developers/huawei-ability-gallery-account-binding-w-card-ability-95dc3e6536e9?source=rss-8cca7a1f4cb4------2</link>
            <guid isPermaLink="false">https://medium.com/p/95dc3e6536e9</guid>
            <category><![CDATA[account-binding]]></category>
            <category><![CDATA[hms]]></category>
            <category><![CDATA[huawei-mobile-service]]></category>
            <category><![CDATA[card-ability]]></category>
            <category><![CDATA[huawei-ability-gallery]]></category>
            <dc:creator><![CDATA[Enes Kocaman]]></dc:creator>
            <pubDate>Sat, 08 May 2021 10:15:16 GMT</pubDate>
            <atom:updated>2021-05-08T10:15:16.379Z</atom:updated>
            <content:encoded><![CDATA[<h3>Huawei Ability Gallery — Account Binding w Card Ability</h3><p>The effect of the Internet on our lives has enabled us to be informed about the events in our world, not every other day, but after a few hours, sometimes minutes, and sometimes seconds. Undoubtedly, in the shortening of this period, our mobile phones that we carry in our pockets and always with us or our “Smart Phones” as they are commonly used now have a big share. As a result of the rapid development of technology today, many phone models have superiority over some laptop / desktop computer models in terms of speed, as well as the ease of use they provide, pushing end users to access the Internet using mobile phones instead of computers.</p><p>In the current statistics below, you can find the usage rates of mobile devices when accessing websites around the world between the Q1, 2015 and the Q1, 2021.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/744/1*MF21fUtm_omiJOl39i1JWQ.png" /><figcaption><a href="https://www.statista.com/statistics/277125/share-of-website-traffic-coming-from-mobile-devices/">https://www.statista.com/statistics/277125/share-of-website-traffic-coming-from-mobile-devices/</a></figcaption></figure><blockquote>2015 Q1 → 31.16%</blockquote><blockquote>2021 Q1 → 54.80%</blockquote><p>Based on this statistic, when we consider the competition between today’s mobile phone manufacturers; It would not be wrong to predict that the rate of users accessing the Internet via mobile phones will not decrease in the coming years, on the contrary, it will increase even more.</p><p>For this reason, a product offered by a company or an individual developer to the end user can be downloaded from mobile application markets, means that it will reach more users.</p><blockquote>Is it sufficient to increase the number of users by being only in mobile application markets?</blockquote><p>Of course <strong>not</strong>. While counting the reasons behind why users prefer smartphones over computers to access the internet, we mentioned <strong>Speed </strong>​​and <strong>Easy Accessibility</strong>.</p><p>If we want to gather these two concepts under a common roof, we can call it <strong>Convenience</strong>. Access to the Internet via smart phones is easier than computers, but this alone is not enough when we consider how much convenience technology provides to human life day by day.</p><p>A user using a smartphone will look for a more effective way to do the transaction without downloading the application from the market, without even spending time on opening the application.</p><blockquote>For users who make this search on Huawei branded smartphones, the solution will be the <strong>Huawei Ability Gallery</strong> screen.</blockquote><p>Users who own Huawei branded smartphones can use the Card Ability and Content Ability offered to users on the Ability Gallery page, known as the “-1 screen” of the phones, to reach the results they request without opening the relevant application. To explain with an example;</p><p>Let’s think of an application that provides train ticket reservation service, to follow the details of the ticket you have bought through this application (Train Timetable Number, Timetable, Wagon Number, Seat No, etc.) <strong>via a fixed Card </strong>created on the Huawei Ability Gallery page without having to open the application again. it would be easy, right?</p><p>In order to provide this service, the Huawei user must first match the UID assigned to him by the application when he logs into the application with the Open ID assigned by Ability Gallery. The name of this pairing process is “<strong>Account Binding”</strong>. In the rest of the article, we will examine the steps of the Account Binding process.</p><h3>What is Account Binding?</h3><p>Account Binding is the matching process between two different components or data belonging to a user’s account.</p><p>This pairing starts as soon as the user clicks on the “Associate” option in Card Ability. The <strong>Open Id</strong> created by Huawei Ability Gallery, which allows the user to be associated with the relevant ability, and the account Id (<strong>UID</strong>) assigned to the user by the developer’s server while logging in to the mobile application is stored in the <strong>developer’s database</strong> by matching. By sending the result of the pairing to Huawei Ability Gallery Server, the binding process is completed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/626/1*CVO5bJR_VoCUL383Dg-Yaw.png" /></figure><h3>Why is it needed?</h3><p>Using the Event Push feature provided by Huawei Ability Gallery may require Account Binding.</p><p>Event Push allows you to offer <strong>personalized content</strong> to your users on the Card. These; reminder of the passenger boarding pass, the status of the called taxi, etc. These are the contents that contain the target user group and <strong>Account Binding</strong> process becomes mandatory in order to reach the target user audience.</p><h4>In which cases is it not necessary apply to Account Binding?</h4><p>Let’s imagine that there is a Card Ability showing live results from the English Football League. The content offered on this Card does not need to be customized for any user. In similar cases, there is no need to perform the Account Binding process on cards that <strong>offer content to the general user audience</strong>.</p><h3>How is it applied? Let’s examine it step by step…</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*H6Y_5NBWu8sRWGemFs-97A.png" /><figcaption>Account Binding in Cards Solution-2 Architecture</figcaption></figure><p>We can understand this process better by explaining each step through the architecture you have seen above.</p><p>1- The part required in the first stage for Account Binding process is Server Side:<br>At this stage, the developer must design the end-point in the specified format that will generate the response to be returned in response of the POST request to be sent by Huawei Ability Gallery.</p><p>2- In developer account, Ecosystem Services&gt; Smart Services&gt; Huawei Ability Gallery</p><p>a. While performing the configurations on the Ability Gallery Console screen, the “Custom sign-in” option should be selected in the Account Linking section and the address of the backend URL designed should be entered in the “Receiving URL” section.</p><p>b. Keys of 64 characters in total must be entered into the Access Key and Secret Key fields. (You can produce the keys yourself)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JX86pLhuu7xrrDQqRC1UyA.png" /><figcaption>Selecting Custom Sign-in</figcaption></figure><p>c. Finally, the transactions made by clicking the Save button should be saved.</p><p>3- Huawei Ability Gallery sends a POST request in the following format to the receving URL address specified in the console, and in its response, the mobile application’s login page is returned deepLink with the OpenId.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/060e983015729715c77863944789205b/href">https://medium.com/media/060e983015729715c77863944789205b/href</a></iframe><p>4- Example of deepLink returned by Backend:</p><blockquote>hwapp://com.huawei.hag/openId=xxxx</blockquote><p>For sample response body, please visit following web site;</p><p>h<a href="https://developer.huawei.com/consumer/en/doc/development/service/hag-guide-accountbinding-card#inf14">ttps://developer.huawei.com/consumer/en/doc/development/service/hag-guide-accountbinding-card#inf14</a></p><p>5- The user has been directed to the login page of the mobile application / HTML5 application.</p><p>6- The user has been logged in with Huawei ID.</p><p>7- In this step, the matching of the OpenId assigned by HAG should be performed, which ensures that the user is associated with the UID / AccountId.</p><p>a. The developer adds the OpenId of the same user to the User UID in his DB.</p><p>8- Finally, the binding result must be reported to the Huawei Ability Gallery Server via an API. The format of the API request to be sent for the result notification is shared in the document at <a href="https://developer.huawei.com/consumer/en/doc/5060447#m1">https://developer.huawei.com/consumer/en/doc/5060447#m1</a></p><h3>Result</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/300/1*0nrRbE0PPzWlUIR8DIotSg.gif" /><figcaption>Account Binding Operation</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=95dc3e6536e9" width="1" height="1" alt=""><hr><p><a href="https://medium.com/huawei-developers/huawei-ability-gallery-account-binding-w-card-ability-95dc3e6536e9">Huawei Ability Gallery — Account Binding w Card Ability</a> was originally published in <a href="https://medium.com/huawei-developers">Huawei Developers</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Account Binding in Card Abilities — Solution 2]]></title>
            <link>https://medium.com/huawei-developers-tr/account-binding-in-card-abilities-solution-2-77577ef2f426?source=rss-8cca7a1f4cb4------2</link>
            <guid isPermaLink="false">https://medium.com/p/77577ef2f426</guid>
            <category><![CDATA[huawei-ability-gallery]]></category>
            <category><![CDATA[account-binding]]></category>
            <category><![CDATA[hms]]></category>
            <dc:creator><![CDATA[Enes Kocaman]]></dc:creator>
            <pubDate>Thu, 06 May 2021 23:49:56 GMT</pubDate>
            <atom:updated>2021-05-08T09:20:42.441Z</atom:updated>
            <content:encoded><![CDATA[<h3>Huawei Ability Gallery — Card Ability Özelliği ile Account Binding Yöntemi</h3><p>Internetin hayatımıza girmesiyle, dünyamızda gelişen olaylar hakkında artık gün aşırı değil, olay anından bazen birkaç saat, bazen birkaç dakida, bazen ise birkaç saniye sonra haberdar olabiliyoruz. Şüphesiz bu sürenin kısalmasında, cebimizde taşımış olduğumuz ve her an yanımızda bulunan cep telefonlarımız ya da artık genel kullanılan tabiriyle “Akıllı Telefonlarımız” büyük bir pay sahibi. Günümüzde teknolojinin hızla gelişmesinin bir sonucu olarak, birçok telefon modelinin bazı dizüstü/masaüstü bilgisayar modellerine göre hız olarak üstünlük kurmuş olması ve bunun yanı sıra sağladığı kullanım kolaylığı sebebiyle son kullanıcıları, bilgisayardan daha çok cep telefonlarını kullanarak internete erişmeye itiyor.</p><p>Aşağıda yer alan güncel istatistikte 2015 yılının ilk çeyreği ile 2021 yılının ilk çeyreği arasındaki zaman aralığında, dünya üzerinde web sitelerine girişte mobil cihazların kullanım oranlarına ulaşabilirsiniz.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/744/1*MF21fUtm_omiJOl39i1JWQ.png" /><figcaption><a href="https://www.statista.com/statistics/277125/share-of-website-traffic-coming-from-mobile-devices/">https://www.statista.com/statistics/277125/share-of-website-traffic-coming-from-mobile-devices/</a></figcaption></figure><p>2015 Q1 → 31.16%</p><p>2021 Q1 → 54.80%</p><p>Bu istatistikten yola çıkarak, günümüz mobil telefon üreticileri arasındaki rekabeti de göz önüne aldığımızda; gelecek yıllarda mobil telefon üzerinden internete erişen kullanıcı oranı’nın azalmayacağını aksine daha da artacağı tahmininde bulunmak yanlış olmaz. Bu sebeple, günümüzde bir şirketin veya bireysel geliştiricinin son kullanıcıya sunduğu bir ürünün mobil uygulama marketlerinde indirilebilir olması daha fazla kullanıcıya ulaşması anlamına gelecektir.</p><blockquote>Peki, sadece mobil uygulama marketlerinde bulunmak, tek başına sizin kullanıcı sayınızın artmasına yeterli olur mu?</blockquote><p>Elbette ki <strong>Hayır</strong>. Kullanıcıların internete erişmek için bilgisayarlara nazaran akıllı telefonları daha fazla tercih etmesinin arka planında yatan sebepleri sayarken <strong>Hız </strong>ve <strong>Kolay Erişebilirlik</strong>’den bahsetmiştik. Bu iki kavramı ortak bir çatıda toplamak istersek buna <strong>Kolaylık </strong>diyebiliriz. Akıllı telefonlar üzerinden internete erişim bilgisayarlara göre daha <strong>kolaydır</strong> ancak teknolojinin insan hayatına gün be gün sağladığı kolaylıkların ne kadar arttığını düşündüğümüzde bu tek başına yeterli değildir.</p><p>Akıllı telefon kullanan bir kullanıcı, bir süre sonra uygulama marketinden indirilen uygulama üzerinden yapacağı işi bu uygulamayı, marketten indirmeye veya uygulamayı açmaya zaman harcamadan daha efektif bir şekilde yapmanın bir yolunu arayacaktır</p><blockquote>Bu arayışı Huawei markalı akıllı telefonlarında yapan kullanıcılar için çözüm yolu <strong>Huawei Ability Gallery </strong>ekranı olacaktır.</blockquote><p>Kullanıcılar, telefonların -1 ekranında kullanıcılara sunulabilen Card Ability ve Content Ability sayesinde kullanıcı, ilgili uygulamayı açmadan talep ettiği sonuçlara ulaşabilmektedir. Örnek bir senaryo üzerinden ilerleyecek olursak;</p><p>Tren bileti rezervasyonu hizmeti sağlayan bir uygulamayı düşünelim, bu uygulama üzerinden almış olduğunuz bilet ile ilgili detayları(Sefer No, Sefer Saati, Vagon No, Koltuk no vb.) uygulamayı tekrar açmanıza gerek kalmadan <strong>Huawei Ability Gallery</strong> sayfasında oluşturulan sabit bir <strong>Card üzerinden</strong> takip etmek kolay olurdu değil mi?</p><p>Bu hizmetin sunulabilmesi için, ilk önce Huawei kullanıcısının, Ability Gallery tarafından atanan Open ID’si ile ilgili uygulamaya login olduğunda uygulama tarafından kendisine atanan UID’nin eşleştirilme işleminin yapılması gerekmektedir. Bu eşleştirilme işleminin adı <strong>Account Binding</strong>’dir. Alt başlığımızda Account Binding işleminin adımlarını inceleyeceğiz.</p><h4>Account Binding Nedir?</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/626/1*CVO5bJR_VoCUL383Dg-Yaw.png" /></figure><p>Adından da anlaşılacağı gibi Account Binding, bir kullacının hesabına ait iki farklı bileşenin ya da verinin arasında eşleştirme işleminin yapılmasıdır.</p><p>Bu eşleştirme, kullanıcının Card Ability içerisindeki “İlişkilendir” seçeneğine tıkladığı anda başlamaktadır. Huawei Ability Gallery tarafından oluşturulan ve kullanıcının ilgili ability ile ilişkilendirilmesini sağlayan <strong>Open Id </strong>ve<strong> </strong>kullanıcının mobil uygulamaya login olurken kendisine developer’ın serverı tarafından atanan hesap Id(<strong>UID</strong>)’nin developer’ın Veri Tabanında eşleştirilerek saklanması ve bunun sonucunun Huawei Ability Gallery’e bildirilmesi ile binding işlemi tamamlanmış olur.</p><h4>Neden ihtiyaç duyulur?</h4><p>Huawei Ability Gallery tarafından sağlanan bir özellik olan <strong>Event Push</strong> buna gerekçe gösterilebilir. Event Push, kullanıcılara Card üzerinde kişiselleştirilmiş içerikler sunabilmeye olanak sağlar. Bunlar; yolcu biniş kartı’nın hatırlatılması, çağrılmış olan taksi’nin durumu, vb. gibi hedef kullanıcı kitlesi barındıran içeriklerdir ve hedef kullanıcı kitlesine ulaşabilmek için de <strong>Account Binding</strong> işlemi zorunlu hale gelmektedir.</p><h4>Hangi durumlarda gerekli değildir?</h4><p>İngiltere Futbol Ligin’deki canlı maç sonuçlarını gösteren bir Card Ability olduğunu düşünelim. Bu Card üzerinde sunulan içeriğin herhangi bir kullanıcı için özelleştirilmesine gerek yoktur. Benzeri durunlarda yani <strong>genel kullanıcı kitlesine içerik sunulan</strong> kartlarda Account Binding işleminin yapılmasına ihtiyaç bulunmamaktadır.</p><h3>Nasıl uygulanır? Adım Adım inceleyelim…</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*H6Y_5NBWu8sRWGemFs-97A.png" /><figcaption>Account Binding in Cards Solution-2 Architecture</figcaption></figure><p>Yukarıda görmüş olduğunuz mimari üzerinden her bir adımı açıklayarak bu süreci daha iyi anlayabiliriz.</p><p>1- Account Binding işlemi için ilk aşamada gerekli olan kısım Server Side:</p><p>Bu aşamada developer, Huawei Ability Gallery tarafından gönderilecek POST isteğine karşılık dönülmesi gereken Response’u üretecek olan end-point’i belirtilen formatta tasarlamalıdır.</p><p>2- Developer hesabında, Ecosystem Services&gt;Smart Services&gt;Huawei Ability Gallery</p><p>a. Ability Gallery Console ekranında konfigürasyonları gerçekleştirirken Account Linking bölümünde, “Custom sign-in” seçeneği seçilmeli ve “Receiving URL” kısmına ise tasarladığı backend URL’in adresi girilmelidir.</p><p>b. Access Key ve Secret Key alanlarına toplamda 64 karakter uzunluğunda key’ler girilmelidir. (Key’leri kendiniz üretebilirsiniz)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PLMU1fNtzp4H5xwX5DQ-7A.png" /><figcaption>Select Custom Sign-in</figcaption></figure><p>c. Son olarak Save butonuna tıklayarak yapılan işlemler kaydedilmelidir.</p><p>3- Huawei Ability Gallery; console’da belirtilen receving URL’e aşağıdaki formatta bir POST request’i gönderir ve cevabında, mobil uygulamanın login sayfasına ait deepLink Open ID ile birlikte döndürülür.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/060e983015729715c77863944789205b/href">https://medium.com/media/060e983015729715c77863944789205b/href</a></iframe><p>4- Backend tarafından döndürülen deepLink örneği:</p><blockquote>hwapp://com.huawei.hag/openId=xxxx</blockquote><p>Örnek response body’si için:</p><p><a href="https://developer.huawei.com/consumer/en/doc/development/service/hag-guide-accountbinding-card#inf14">https://developer.huawei.com/consumer/en/doc/development/service/hag-guide-accountbinding-card#inf14</a></p><p>5- Kullanıcı, mobil uygulamanın / HTML 5 uygulamasının login sayfasına yönlendirildi.</p><p>6- Kullanıcı, Huawei ID ile login işlemi gerçekleştirildi.</p><p>7- Bu adımda, kullanıcının Huawei ID ile login yapmasından dolayı sahip olduğu <strong>UID/AccountId </strong>ve Abone olmuş olduğu ability ile ilişkilendirilmesini sağlayan HAG tarafından atanan <strong>OpenId</strong>’nin eşleştirilmesi işlemi yapılmalıdır.</p><p>a. Developer kendi DB’sinde Kullanıcı UID’sinin karşılığına aynı kullanıcının OpenId’sini ekler.</p><p>8- Son olarak, binding sonucun Huawei Ability Gallery’e bir api üzerinden bildirilmesi gerekmektedir. Sonuç bildirimi için gönderilecek API isteğinin formatı <a href="https://developer.huawei.com/consumer/en/doc/5060447#m1">https://developer.huawei.com/consumer/en/doc/5060447#m1</a> adresindeki dokümanda paylaşılmıştır.</p><h3>Sonuç</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/300/1*0nrRbE0PPzWlUIR8DIotSg.gif" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=77577ef2f426" width="1" height="1" alt=""><hr><p><a href="https://medium.com/huawei-developers-tr/account-binding-in-card-abilities-solution-2-77577ef2f426">Account Binding in Card Abilities — Solution 2</a> was originally published in <a href="https://medium.com/huawei-developers-tr">Huawei Developers - Türkiye</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Formats of Cloud Storage and Introduction to AGC Cloud Storage]]></title>
            <link>https://medium.com/huawei-developers/formats-of-cloud-storage-and-introduction-to-agc-cloud-storage-17be612472b6?source=rss-8cca7a1f4cb4------2</link>
            <guid isPermaLink="false">https://medium.com/p/17be612472b6</guid>
            <category><![CDATA[huawei-mobile-service]]></category>
            <category><![CDATA[agc]]></category>
            <category><![CDATA[cloud-storage]]></category>
            <category><![CDATA[hms]]></category>
            <category><![CDATA[android-app-development]]></category>
            <dc:creator><![CDATA[Enes Kocaman]]></dc:creator>
            <pubDate>Sat, 26 Sep 2020 19:09:50 GMT</pubDate>
            <atom:updated>2020-11-03T07:41:02.999Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*V15969upNc4iQFd_xlebhw.png" /></figure><p>When mobile or web developers designing their applications from scratch, one of the most important thing is deciding what type of data storage to use beside database. The way to decide is to choose the one with optimum efficiency in the balance of cost and performance according to your application scenario. There are 3 types of Cloud Storage as File Storage, Block Storage and Object Storage. There are some points that separates each of these types. Today, my first aim will be introduce these different type of Cloud Storage, based on my research then it may help you to choose the most appropriate one. After then will develop a demo application using AGC Cloud Storage and explain the features that offers.</p><h3>Agenda</h3><h4>▹ Brief introduction to Cloud Storage, What it offers?</h4><h4>▹ Types of Cloud Storage in base</h4><ul><li>File Storage</li><li>Block Storage</li><li>Object Storage</li></ul><h4>▹ Introduction of AGC Cloud Storage and demo application</h4><h4>▹ What is Cloud Storage and what it offers?</h4><p>Cloud storage is the process of storing digital data in an online space that spans multiple servers and locations, and it is usually maintained by a hosting company.</p><p>It’s delivered on demand with just-in-time capacity and costs, and eliminates buying and managing your own data storage infrastructure. This gives you agility, global scale and durability, with “anytime, anywhere” data access. Cloud storage is purchased from a third party cloud vendor who owns and operates data storage capacity and delivers it over the Internet in a pay-as-you-go model. These cloud storage vendors manage capacity, security and durability to make data accessible to your applications all around the world.</p><h4>▹ Types Of Cloud Storage</h4><ul><li><strong>File Storage</strong></li></ul><p>File-based storage means, organizing data in a hierarchical, simple, and accessible platform. Data stored in files is organized and retrieved using a limited amount of metadata that tells the computer exactly where the file itself is kept. When you need access to data, your computer system needs to know the path to find it.</p><p>Actually we are using this type of storage mechanism for decades when we insert/update/delete a file in our computers. The data is stored in <strong>folders </strong>and <strong>sub-folders</strong>, forming a tree structure overall.</p><p>Limited amount of flash memory is aimed at serving frequently accessed data and metadata quickly. Caching mechanism is also a plus for File System but it can become complex to manage when capacity increases.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/344/0*dhLhfap7L5C-M2pA.png" /><figcaption><a href="https://zachgoll.github.io/blog/2019/file-object-block-storage/">https://zachgoll.github.io/blog/2019/file-object-block-storage/</a></figcaption></figure><ul><li><strong>Block Storage</strong></li></ul><p>Block storage chops data into blocks and stores them as separate pieces. Each block of data is given a unique identifier, which allows a storage system to place the smaller pieces of data wherever is most convenient. That means that some data can be stored in a Linux environment and some can be stored in a Windows unit.[<a href="https://www.redhat.com/en/topics/data-storage/file-block-object-storage">https://www.redhat.com/en/topics/data-storage/file-block-object-storage</a>]</p><p>Because block storage doesn’t rely on a single path to data — like file storage— it can be retrieved quickly. Each block lives on its own and can be partitioned so it can be accessed in a different operating system, which gives the user complete freedom to configure their data. It’s an efficient and reliable way to store data and is easy to use and manage.</p><p>Each partition runs a filesystem within it. In one sentence we can say that Block Storage is a type of Cloud Storage that data files divided into blocks.</p><p>This type of storage is very good for databases thanks to very high speed, virtual machines and more general for all those workloads that require low-latency.</p><p>Very high cost per giga-byte</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/716/0*cVAoWIX1Ycm4FOpW.png" /><figcaption><a href="https://zachgoll.github.io/blog/2019/file-object-block-storage/">https://zachgoll.github.io/blog/2019/file-object-block-storage/</a></figcaption></figure><p><strong>Object Storage</strong></p><p>While the volume of data to be stored has grown continuously(exponentially) the limits of the file system have gradually appeared and this is where the need for Object storage is felt. Object-based storage is deployed to solve for unstructured data (videos, photos, audio, collaborative files, etc.). Contrary to File Storage, objects are stored in flat namespace and can be retrieved by searching metadata or knowing the unique key(ID). . Every object has 3 components;</p><ol><li>ID (Unique Identifier)</li><li>Metadata(age, privacies/securities, etc.)</li><li>Data</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/842/1*1iIc7sq1e3FujTeCZFm59A.png" /><figcaption><a href="https://www.womeninbigdata.org/2018/05/31/how-object-storage-can-improve-hadoop-performance/">https://www.womeninbigdata.org/2018/05/31/how-object-storage-can-improve-hadoop-performance/</a></figcaption></figure><p>Object-based storage essentially bundles the data itself along with metadata tags and a unique identifier. Object storage requires a simple HTTP <a href="https://www.redhat.com/en/topics/api/what-are-application-programming-interfaces">application programming interface (API)</a>, which is used by most clients in all languages.</p><p>It is good at storage of large sets unstructured data. However latency is not consistent at all.</p><h4>Overall Summary</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*h82MzINJSgS3MotLvtf2Yg.png" /><figcaption><a href="http://tanejagroup.com/profiles-reports/request/is-object-storage-right-for-your-organization#">http://tanejagroup.com/profiles-reports/request/is-object-storage-right-for-your-organization#</a></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fgjCrXvD78R90O3uTx6lSw.png" /><figcaption><strong><em>Comparison between Storage types</em></strong></figcaption></figure><h4>▹ Introduction of AGC Cloud Storage and Demo Application</h4><p>Currently, AGC Cloud Storage supports only File Storage model.</p><p>It is scalable and maintenance-free. Allows you to store high volumes of data such as images, audios, and videos generated by your users securely and economically with direct device access. Since AGC Cloud Storage is currently in beta version, you need to apply by sending email to <a href="/service/mailto:agconnect@huawei.com">agconnect@huawei.com</a>. For more details please refer to guide whcih tells how to apply the service.</p><p><a href="https://developer.huawei.com/consumer/en/doc/development/AppGallery-connect-Guides/agc-cloudstorage-apply">Document</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*g03cXqh8Gf_-qSY5yxiRKA.png" /><figcaption>Basic Architecture Of AGC Cloud Storage</figcaption></figure><p>There are 4 major features of AGC Cloud Storage Service. These are;</p><ol><li>Stability</li><li>Reliability and Security</li><li>Auto-scaling</li><li>Cost Effectiveness</li></ol><ul><li><strong><em>Stability:</em></strong> Cloud Storage offers stable file upload and download speeds, by using edge node, resumable transfer, and network acceleration technologies.</li><li><strong><em>Reliability and Security: </em></strong>By working with <a href="https://developer.huawei.com/consumer/en/doc/development/AppGallery-connect-Guides/agc-auth-service-introduction">AGC Auth Service</a> and using the declarative security model, Cloud Storage ensures secure and convenient authentication and permission services.</li><li><strong><em>Auto-scaling: </em></strong>When traffic surges, Cloud Storage can detect traffic changes in real time and quickly scale storage resources to maintain app services for Exabyte data storage.</li><li><strong><em>Cost Effectiveness: </em></strong>Cloud Storage offers you to decrease your cost and saves your money. All developers get a free quota, and once that’s up, you’ll be charged for extra usage.</li></ul><p>You can follow-up your usage and current quota from Cloud Storage window under your developer console as represented in below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Iv8gbXQeM6RmO0JCf-_HFQ.png" /><figcaption><strong>Usage Statistics</strong></figcaption></figure><h4>Development Steps</h4><p>In this step, we will develop a demo application using AGC Auth and Cloud Storage services with MVVM design pattern in Kotlin programming language.</p><p>Before you start you need to have a Huawei developer account. You can refer to following link to do that;</p><p><a href="https://developer.huawei.com/consumer/en/doc/20300">Document</a></p><ol><li>Enable services(AGC Auth + AGC Cloud Storage)</li><li>Integrate the SDK</li><li>Develop the Demo App</li><li>Manage Objects</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KrUH3xQbxFk8J84w8PMMuA.png" /><figcaption><strong>Service Enablement</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/918/1*IJ2SCTa5Utt3g52GNzoYYA.png" /><figcaption><strong>Download agconnect-json.file</strong></figcaption></figure><p>You should add certificate fingerprint and necessary dependencies into your Android project. You can follow following link to complete this steps.</p><p><a href="https://developer.huawei.com/consumer/en/codelab/AGCPreparation/index.html#0">Configuring App Information in AppGallery Connect</a></p><p>Download agconnect-services.json file first and insert it to App folder of your Android project. Add Auth service and Cloud Storage dependencies under your App Level build.gradle file. However, there is an crucial point after you add agconnect-services.json file that is you must add “default_storage” name on the storage_url parameter, otherwise you can not reach to your storage area.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/559/1*_yaRqpDH_hrIK9GZTSphQA.png" /><figcaption><strong>default_storage name</strong></figcaption></figure><p>Configurations has been done. We can focus on the application scenario. Firstly, i want to show what our application offers to users.</p><ol><li>Users will sig-in to application anonymously. (With the help of anonymous sign-in method of Auth service)</li><li>Users can upload an image from Media Storage of their mobile phone to Storage.</li><li>Users can download the latest image from Storage if there is.</li><li>Users can delete latest item from Storage if there is. (Be careful! because this operation is irreversible. Once you performed this operation, the file will be physically deleted and cannot be retrieved.)</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/280/1*jYsjKky7YJmOkxGAAqBIlg.gif" /><figcaption>Upload File</figcaption></figure><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/af13dd77f35a52b910cb234fcb343962/href">https://medium.com/media/af13dd77f35a52b910cb234fcb343962/href</a></iframe><figure><img alt="" src="https://cdn-images-1.medium.com/max/336/1*-6Nsdm4dJu0H2d_oxTojxg.gif" /><figcaption>Delete File</figcaption></figure><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/86a7ad695b1b13071937b3731ef557c3/href">https://medium.com/media/86a7ad695b1b13071937b3731ef557c3/href</a></iframe><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/7a3eb0a2924b0285d5ee7e615a3f8e15/href">https://medium.com/media/7a3eb0a2924b0285d5ee7e615a3f8e15/href</a></iframe><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vwRgImO5Q6ireFLNoOH3MQ.png" /></figure><h3>References</h3><ol><li><a href="https://www.redhat.com/en/topics/data-storage/file-block-object-storage">https://www.redhat.com/en/topics/data-storage/file-block-object-storage</a></li><li><a href="https://www.openio.io/blog/comparing-blocks-files-and-objects">https://www.openio.io/blog/comparing-blocks-files-and-objects</a></li><li><a href="https://aws.amazon.com/what-is-cloud-storage/">https://aws.amazon.com/what-is-cloud-storage/</a></li><li><a href="https://zachgoll.github.io/blog/2019/file-object-block-storage/">https://zachgoll.github.io/blog/2019/file-object-block-storage/</a></li><li><a href="https://gomindsight.com/insights/blog/types-of-cloud-storage/">https://gomindsight.com/insights/blog/types-of-cloud-storage/</a></li><li><a href="https://developer.huawei.com/consumer/en/doc/development/AppGallery-connect-Guides/agc-cloudstorage-introduction">https://developer.huawei.com/consumer/en/doc/development/AppGallery-connect-Guides/agc-cloudstorage-introduction</a></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=17be612472b6" width="1" height="1" alt=""><hr><p><a href="https://medium.com/huawei-developers/formats-of-cloud-storage-and-introduction-to-agc-cloud-storage-17be612472b6">Formats of Cloud Storage and Introduction to AGC Cloud Storage</a> was originally published in <a href="https://medium.com/huawei-developers">Huawei Developers</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Secure and Quick Way of Hosting — AGC Cloud Services]]></title>
            <link>https://enskcmn.medium.com/secure-and-quick-way-of-hosting-agc-cloud-services-9f931d86dc73?source=rss-8cca7a1f4cb4------2</link>
            <guid isPermaLink="false">https://medium.com/p/9f931d86dc73</guid>
            <category><![CDATA[huawei-mobile-service]]></category>
            <category><![CDATA[hms]]></category>
            <category><![CDATA[huawei]]></category>
            <category><![CDATA[cloud-hosting]]></category>
            <category><![CDATA[app-gallery-connect]]></category>
            <dc:creator><![CDATA[Enes Kocaman]]></dc:creator>
            <pubDate>Sun, 13 Sep 2020 14:45:03 GMT</pubDate>
            <atom:updated>2020-09-23T09:32:03.797Z</atom:updated>
            <content:encoded><![CDATA[<h3>Secure and Quick Way of Hosting — AGC Cloud Services</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/910/1*Htelua5Y_DFViVbxae_qWA.png" /></figure><p>Hosting provides developers with full-hosting services for static and dynamic web page content. With a single command, websites can be easily deployed and users can access web page content securely and quickly.</p><p>How its become <strong>easy</strong>, <strong>secure</strong> and <strong>quick</strong>?</p><p>With the Cloud Hosting service, you only need to focus on developing the UI interaction, website style, and service logic, without concerning about cloud-side deployment details, for example, domain name application and certificate management. In addition, you also do not need to concern about the website distribution in the CDN(Content Delivery Network). This allows you to build secure websites that can be accessed quickly.</p><p>You can provide in-app websites and static websites for users without any cloud devices.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/894/1*Cwo1hwNKgIq9PNwmXiiksg.png" /></figure><h4>What is Core Functions of Cloud Hosting?</h4><ol><li>Full hosting of dynamic and static web pages: integration with Cloud Functions to provide dynamic content access.</li><li>Configurable access rules: The error page, rewriting rule, response header, and cache rule can be configured</li><li>Multi-version management: supports multi-version management and one-click rollback.</li><li>The one of the crucial feature for users of this service is <strong>Customized Domain Name</strong>, it will be available in Q4 2020.</li></ol><h4>Why do we need to use AGC Cloud Hosting?</h4><p>Cloud Hosting has four major advantages, those are;</p><ol><li>Fast Deployment</li><li>Smooth Access</li><li>Secure Access</li><li>Dynamic Web Site Content</li></ol><p>Fast deployment helps you quickly deliver a website. This is includes several different functions.</p><h4>Fast Deployment</h4><ul><li><strong>One-click Deployment </strong>: Allows the Cloud Hosting portal to quickly deploy different versions of your website while it is live.</li><li><strong>One-click Rollback : </strong>Enables Cloud Hosting to roll back your website to a previous version.</li><li><strong>Built-in domain name : </strong>Hosting provides a uniform base domain name which is “<strong>hosting-dre.agconnect.link”</strong>. Under the base domain name, you can allocate an access domain name for your web-site. This frees you from buying an independent domain name.</li><li><strong>Custom Domain Name : </strong>You will have an opportunity to exchange build-in domain name with your custom domain name in the Q4 2020.</li></ul><h4>Smooth Access</h4><p>Cloud Hosting provides a CDN(Content Delivery Network) acceleration capability for each hosted website, and ensures <strong>smooth access</strong> to your website through abundant CDN nodes.</p><h4>Secure Access</h4><p>Another advantage of Cloud Hosting is secure access. In addition to domain name access and CDN acceleration, Cloud Hosting provides a CA certificate for each hosted website to implement <strong>HTTPS-based secure access</strong>.</p><h4>Dynamic Web Site Content</h4><p>Cloud Hosting can be used together with <a href="https://medium.com/huawei-developers/sending-push-notifications-over-agc-cloud-functions-8a8a2e152c09">AGC Cloud Functions</a> to provide dynamic website content.</p><h4>How to use it?</h4><p>I thought, a sample application would be helpful to be more familiar with about AGC Cloud Hosting. You can also have a try to this demo application and share your ideas with in comments.</p><p>Before using AGC Cloud Hosting to host your website, first you need to have a Huawei Developer Account and then develop your website and package your website files into a hosting package.</p><p>You can refer to following document if you are creating an app on Huawei Developer Console for first time.</p><p><a href="https://medium.com/huawei-developers/android-integrating-your-apps-with-huawei-hms-core-1f1e2a090e98">Android | Integrating Your Apps With Huawei HMS Core</a></p><p>You need to enable Cloud Hosting service from your project settings on App Gallery Console.</p><p>Your website files must meet the following requirements:</p><p><em>• File type: Your website file types must be supported by the browser.</em></p><p><em>• Access entry: The </em><strong><em>index.html</em></strong><em> file in the root directory of the hosting package is used as the default home page of your website.</em></p><p><em>• Hosting package format: The hosting package must be in ZIP format.</em></p><p>I have planned to publish a web site that shows current weather conditions of a city(i.e. Istanbul) by sending get requests to weather API.</p><p>Web site will;</p><ul><li>fetch the data from <a href="https://openweathermap.org/api">https://openweathermap.org/ap</a>i</li><li>use XMLHttpRequest to send request (JS)</li><li>be designed using CSS</li></ul><p>As you can see in above we can consider to design folder structure as below;</p><ul><li>/js/yourjsfile.js</li><li>/css/yourcssfile.css</li><li>index.html (must have)</li></ul><blockquote>If you want to use additional sub-folders like “utils” or “images” you just need to create them according to file structure above. (Those folders can not be empty)</blockquote><p><em>Script.js</em></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/efbb6723f2e75f143a11c89bf8343cee/href">https://medium.com/media/efbb6723f2e75f143a11c89bf8343cee/href</a></iframe><p><em>style.css</em></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/1f63c3dd9ee888edca8087f0effa2056/href">https://medium.com/media/1f63c3dd9ee888edca8087f0effa2056/href</a></iframe><p><em>index.html</em></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/ebb330511f7907c840e9cd198ab8ca36/href">https://medium.com/media/ebb330511f7907c840e9cd198ab8ca36/href</a></iframe><p>Our folders are almost ready. Now, we just need to zip all those as shown in below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/630/1*SEEVIVFuTUldXbNqp9-FTw.png" /><figcaption>ZIP Format</figcaption></figure><p>If you didn’t enable Cloud Hosting from your console page. You can do this as shown below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fyPNvwBZ-5uMeuK85uP9yw.png" /></figure><p>Select a prefix domain name for your web-site, i choosed “enskcmn” and my web site url will be : “<a href="http://enskcmn.dre.agchosting.link/">enskcmn.dre.agchosting.link</a>”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*UV3D-8e7Vyf60ICTAlkr-w.png" /><figcaption>Web site URL</figcaption></figure><p>Upload your zip file into hosting.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/836/1*YF3diddrOs6CpIbyOMU2QA.png" /></figure><blockquote>When you see status as Released it means you can visit your web site right now. Normally it takes a few minutes to be published.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1HwQWsQzsl3sHGunMjd2wA.png" /></figure><p>Here is final result</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*1lvrVvumZhvhnLPMOb1QiQ.gif" /><figcaption>Final Result</figcaption></figure><p>I hope this article helps for you to gain insight about what is Cloud Hosting, advantages and usage scenarios. I am planning publish a new article on this topic to demonstrate how to Customize Domain name when this feature is available in EU site.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9f931d86dc73" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Quick App Development — Push Kit]]></title>
            <link>https://medium.com/huawei-developers/quick-app-development-push-kit-f6d5b2b5a1b8?source=rss-8cca7a1f4cb4------2</link>
            <guid isPermaLink="false">https://medium.com/p/f6d5b2b5a1b8</guid>
            <category><![CDATA[huawei-mobile-service]]></category>
            <category><![CDATA[push-notification]]></category>
            <category><![CDATA[huawei-quick-app]]></category>
            <category><![CDATA[hms]]></category>
            <dc:creator><![CDATA[Enes Kocaman]]></dc:creator>
            <pubDate>Mon, 15 Jun 2020 07:34:24 GMT</pubDate>
            <atom:updated>2020-09-01T13:56:38.288Z</atom:updated>
            <content:encoded><![CDATA[<h3>Quick App Development — Push Kit</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/810/1*1QLoiWTc_hOnbpFeT_4OrQ.jpeg" /></figure><h3>Introduction</h3><p>In this article, we’ll explore the one of the new technology of Huawei is “Quick App”.</p><p>According to Mobile App Download and Usage Statistics in 2020, averagely there are between 60 and 90 apps installed on a phone[1]. That’s seems a lot and it explains why mobile phone users become reluctant to install new apps. If users don’t install new applications, it would be unavoidable to prevent the decrease in diversities of applications in App Markets.</p><p>Besides the Native type applications in app markets, there is one more option provided for developers to develop their applications and publish on App Markets. This type is Google Instant App or Huawei Quick App.</p><p>Today, we will focus on the Huawei Quick App by analyzing the concept, showing the pros&amp;cons, finding the differences from Google Instant App and finally developing sample application to be able to gain practical ability on it.</p><p>Let’s get start with the question of What is the Quick App and What does it offer?</p><p>Quick Apps are installation-free apps that offer a native experiences to users. Developed based on industry standards supported by over 12 major smart phone manufacturers, that representing 42% of global market. Quick App has emerged with the Huawei Mobile Services which is new technology movement of the Huawei. In addition, Quick Apps offers Low Development Costs code volume of only 20% of an Android app.</p><p>Quick apps can be accessed from six major portals: App Gallery, Quick App Center, Home screen icon of the phone, Deep Links and Huawei Assistant. They open instantly and can be used without being installed. They can update automatically and take up minimum storage. They run smoothly on user devices, provide friendly GUIs and excellent functionalities. Once closed, they can be -easily from the home screen icon, recently used apps, and Push notifications.</p><p>With the benefit of multi instant-access scenarios and Deep Link access, quick apps are growing rapidly. So far, they have been supported by over 250 million Huawei phones.</p><p>Beside of those advantages, of course Quick Apps have not same capabilities as Mobile Android applications.</p><p>Comparison of Android App and Quick App, usage scenario;</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3RNWatKttGsxF7bCf88lPg.png" /></figure><p>As you can see in here, there is no need to install high package files in every time to be able to use same application.</p><h3>App Development</h3><p>Currently, Account Kit, Location Kit, Push Kit and IAP -In App Purchases- kit are supported by Huawei Quick App. Today, we will try to create a Quick Application where we are able to send Push Notifications to devices over Developer console.</p><p>In addition, you can refer to following table to see current capabilities of quick app, under two headings; UI components and system API capabilities.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zKysIovuyeajXJOe5r8WCQ.png" /></figure><p>There is a complete environment for both Windows and MAC OS user developers which is “Huawei Quick App IDE”. The environment supports, development, debugging and releasing the app.</p><h4>Pre-requirements before start to development</h4><blockquote>1) Huawei Developer Account</blockquote><blockquote>2) Development Environment</blockquote><p>You can refer to following web sites to create Huawei Developer Account and download&amp;setup Huawei Quick App IDE from following link.</p><ul><li><a href="https://developer.huawei.com/consumer/en/doc/start/10104">Document</a></li><li><a href="https://developer.huawei.com/consumer/en/doc/development/quickApp-Guides/quickapp-installtool">Documentation</a></li></ul><p>Create a Hello World project using Huawei Quick App IDE as you can see below. Generate SHA-256 fingerprint from Tools&gt;Certificate then paste it on SHA-256 certificate fingerprint area where under Project Settings otherwise your push token will be invalidate.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*qq3eQ8PAJbK6wC7seZDWSw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1w8BJCOqCau4vzlO_0L4-Q.png" /></figure><p>Now, create an application on Developer Console.</p><blockquote>Don’t forget to select package type as .RPK instead of APK.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*piIqgZPrG3viJRKlAmqlgQ.png" /></figure><p>Enable Push Kit under project Settings&gt;Growing&gt;Push Kit then select your data storage location.</p><p>There is also one more step to enable push kit from Project Settings&gt;Manage APIs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WKhiXu85JybBrRQzV0ZNxQ.png" /></figure><p>If you completed all these steps. Let’s write a small piece of code to obtain device token.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*QlhwNHwI3g3Jihl80lRQJQ.gif" /></figure><ol><li>import push service</li><li>call the “<strong>push.getProvider</strong>” API to check if target device supports Huawei Push kit. If it returns “<strong>huawei</strong>” that means Huawei Push Kit is supported.</li><li>To send push notification over Huawei console we will need to push token. In Quick Apps this device token called as <strong>RegId</strong>(Registered Id), and to obtain that id we will call “<strong>push.subscribe</strong>” API.</li></ol><p>After you obtained RegId, you are ready to send notification messages. There are two opportunity to do this.</p><ol><li><strong>One of them is Huawei Developer Console </strong><a href="https://developer.huawei.com/consumer/en/doc/development/quickApp-Guides/quickapp-access-push-kit#h2-1582278860689">https://developer.huawei.com/consumer/en/doc/development/quickApp-Guides/quickapp-access-push-kit#h2-1582278860689</a></li><li><strong>The other one is Huawei Push Kit Server side APIs</strong> <a href="https://developer.huawei.com/consumer/en/doc/development/quickApp-Guides/quickapp-access-push-kit#h2-1582279071471">https://developer.huawei.com/consumer/en/doc/development/quickApp-Guides/quickapp-access-push-kit#h2-1582279071471</a></li></ol><blockquote><strong>Kindly reminder</strong></blockquote><blockquote>If you didn’t fill your SHA-256 key under your project settings in developer console, your RegId(push token) will be invalidate</blockquote><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/dabd1037971ffb3cdf4b1e5b78739282/href">https://medium.com/media/dabd1037971ffb3cdf4b1e5b78739282/href</a></iframe><figure><img alt="" src="https://cdn-images-1.medium.com/max/299/1*dg85AZJgIjofIZ3cQFNyOg.gif" /></figure><p>In final step, create a notification on developer console and paste this RegId(device token) in Push scope area then submit your push.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TdXLyd1AjU5azYzqUqhvPA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/350/1*DWC0AS-YXjPUzzN-7Q1tlg.jpeg" /></figure><h3>Conclusion</h3><p>I have tried to separate this article in two parts. In first part demonstrated general information about Huawei Quick App like capabilities, differences between mobile android apps, advantages&amp;disadvantages. In second part, created a sample application on Quick App IDE and implemented Push Kit.</p><p>Even though Quick Apps does not offer same capabilities as mobile apps, we can see these overall features that make Quick Apps attractive: it requires little effort and low resource consumption than mobile apps. Additionally Quick Apps does not requires installation and open instantly.</p><h3>References</h3><p>[1] <a href="https://buildfire.com/app-statistics/">https://buildfire.com/app-statistics/</a></p><p><a href="https://developer.huawei.com/consumer/en/doc/development/quickApp-Guides/quickapp-introduction">Document</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f6d5b2b5a1b8" width="1" height="1" alt=""><hr><p><a href="https://medium.com/huawei-developers/quick-app-development-push-kit-f6d5b2b5a1b8">Quick App Development — Push Kit</a> was originally published in <a href="https://medium.com/huawei-developers">Huawei Developers</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>