<?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 Simge Keser on Medium]]></title>
        <description><![CDATA[Stories by Simge Keser on Medium]]></description>
        <link>https://medium.com/@simge-keser?source=rss-25ee4ead7a54------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*-vHqS2F4ggcinCbKSFuFLg.jpeg</url>
            <title>Stories by Simge Keser on Medium</title>
            <link>https://medium.com/@simge-keser?source=rss-25ee4ead7a54------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 17:48:49 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@simge-keser/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[AppGallery Connect Gift Management]]></title>
            <link>https://simge-keser.medium.com/herkese-merhaba-bu-makalede-size-%C3%B6rnek-bir-demo-ile-appgallery-connect-%C3%BCzerinde-hediye-9236c589904c?source=rss-25ee4ead7a54------2</link>
            <guid isPermaLink="false">https://medium.com/p/9236c589904c</guid>
            <category><![CDATA[gift-management]]></category>
            <category><![CDATA[huawei-appgallery]]></category>
            <category><![CDATA[hms]]></category>
            <category><![CDATA[promotion]]></category>
            <category><![CDATA[appgallery-connect]]></category>
            <dc:creator><![CDATA[Simge Keser]]></dc:creator>
            <pubDate>Thu, 18 Feb 2021 07:33:41 GMT</pubDate>
            <atom:updated>2021-02-18T11:12:19.966Z</atom:updated>
            <content:encoded><![CDATA[<p>Herkese merhaba, bu makalede size örnek bir demo ile AppGallery Connect üzerinde hediye paketlerini nasıl olusturabileceğimizi açıklayacağım. AppGallery Connect gift management sayfasında belirtilen adımları takip ederek uygulamamız için gift oluşturabiliriz. Öncelikle hediye paketlerinin ne olduğunu ve neden kullanıldığını öğrenerek başlayalım.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/542/0*ZNMFT91ZbHNAwpR8.png" /></figure><p><strong>Hediye Yönetimi modülü tüm kurumsal geliştiricilere açıktır ve küresel hediye paketlerinin yapılandırılmasını destekler.</strong> Uygulamalarınıza hediyeler ekleyerek kullanıcıların dikkatini çekebilir ve böylece uygulamanızın kullanımını ve indirme sayısını artırabilirsiniz. Bir hediye paketi oluşturulduktan ve onaylandıktan sonra, AppGallery kaynakları (Kids Center, GameCenter ve EduCenter dahil) kullanılarak tanıtılabilir.</p><p><strong>Yeni kullanıcılar ve normal hediye paketleri</strong> olmak üzere iki tür hediye paketi vardır.</p><ul><li>Yeni kullanıcılara hediye paketleri, belirli Huawei cihaz modellerinin kullanıcılarını hedefler. Ürün lansman etkinlikleri, ürüne genel bakış sayfaları ve resmi sosyal hesaplar dahil olan uygulamalardır ayrıca bunlarla sınırlı olmamak üzere geniş kapsamlı pazarlama kaynakları aracılığıyla tanıtılacaktır.<strong> Yeni kullanıcılara hediye paketleri, ilgili cihazların satış dönemi boyunca geçerli olmalıdır.</strong></li><li>Normal hediye paketleri, common hediye paketleri ve activity hediye paketleri olarak sınıflandırılır. Bu paketler, hediye bölgesi, uygulama ayrıntıları sayfası ve etkinlik alanı dahil ancak bunlarla sınırlı olmamak üzere HUAWEI Uygulama Galerisinin (Çocuk Merkezi, GameCenter ve EduCenter dahil) kaynakları kullanılarak tanıtılacaktır. Belirli koşulları karşılayan hediye paketlerinin maruz kalma şansı daha yüksek olacaktır.</li></ul><h4>1. Hediye Türleri</h4><ul><li><strong>Gift — with code</strong>: Uygulamada veya oyunda kodu kullanabilen bir kullanıcıya hediyeyi alma talimatlarını izleyerek seri numarası şeklinde bir hediye kodu gönderilir.</li><li><strong>Gift — without code: </strong>Bu tür hediyelerle ilgili bilgiler, AppGallery uygulama ayrıntıları sayfasında görüntülenir. Bir uygulama için bir hediye varsa, kullanıcılar uygulamayı yükledikten sonra hediyenin açıklamasına göre uygulama içerisinde hediyesini alabilir.</li></ul><h4>2. Hediye Ekleme</h4><p>Hediye paketlerinizi yönetmek için AppGallery Connect’te oturum açın ve aşağıdaki dizini takip edin:</p><p><strong>AppGallery Connect&gt;My apps&gt;App name&gt;Operate&gt; Promotion&gt;Gift Management.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*yxCeUNPGBaCQGjZU.png" /></figure><p>Yukarıda gösterilen My apps kısmına tıkladıktan sonra uygulamalarınızın olduğu sayfaya yönlendirileceksiniz. Hediye eklenecek uygulamanızın üzerine tıklayarak başlıyoruz.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*EVxFtweZLh7I7hKg.png" /></figure><p>Açılan sayfada operate bölümüne tıklayıp <strong>promosyon </strong>bölümü altında <strong>gift managemente</strong> ulaşıyoruz. Aşağıdaki görselde gift management kısmını görebilirsiniz.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*qlsi6Va_oDnNWNSz.png" /></figure><blockquote>Not:<strong> Individual geliştiriciyseniz</strong>, promosyon ve hediye yönetimi bölümünü göremezsiniz. <strong>Hediye Yönetimi yalnızca kurumsal geliştiricilere açıktır.</strong></blockquote><p>Şimdi sağ üst köşedeki Hediye ekle butonuna tıklayarak hediye oluşturmaya başlayabiliriz. Tıkladıktan sonra aşağıdaki dialog görüntülenecektir.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/771/0*6LHfG5LI18_B-UqQ.png" /></figure><p>Yukarıda bahsettiğim gibi seri numaralı ve seri numarası olmayan iki çeşit hediye bulunmaktadır.</p><p><strong>Seri numarası ile hediyeyi seçerseniz,</strong> kullanıcıya hediye seri numarası olan bir kod göndermeniz gerekir ve kullanıcı bu kodu uygulamada ilgili yere yazarak hediyeyi alabilir. Örneğin, uygulamanızın bir kullanıcısına 5 kredi vermek istiyorsunuz ve bu hediyeyi almak isteyen kullanıcıya app galleryde bir kullanım kodu veriyorsunuz. Kullanıcı bu kodu kopyalar ve uygulamadaki gerekli bölüme yapıştırır. Kod doğruysa bu şekilde kullanıcının hesabına 5 kredi yüklenir. Hediye eklemek için kullanabileceğiniz ilk senaryo budur.</p><p><strong>Diğeri, kullanıcının hediyeyi herhangi bir kod olmadan doğrudan</strong> <strong>kullanabilmesidir</strong>. Herhangi bir seri veya başka bir kod sağlamanıza gerek yoktur. Örneğin, uygulama indirme sayınızı artırmak istiyorsunuz. Bunun için bir hoşgeldin gif’i oluşturabilirsiniz. Bu içeriğe sahip bir hediye sunabilirsiniz örneğin “Uygulamamı indirirseniz, bir aylığına premium üyelik kazanırsınız”. Kullanıcı uygulamayı indirdikten sonra, bir ay boyunca otomatik olarak premium üyeliğe sahip olabilir. Bu da ikinci senaryodur.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/844/0*aDSL5n0AVnb7TfOk.png" /></figure><p>Hediye tipini seçtikten sonra açılan sayfada bölgemizi seçeceğiz. Hediye verme alanında, bir bölge altında birden çok ülke seçilebilir. <strong>Birden fazla bölge seçilirse, kurumsal geliştiriciler hediyeyi gönderemez. </strong>Bir hediye ekledikten sonra, kurumsal geliştiriciler hediyeyi gift management sayfasında görüntüleyebilir veya gift bag yönetimi sayfasında hediye idsi, adı (hediye adı), hediye türü ile hediyeyi arayabilir.</p><p><strong>3. Gift Configuration için Parametreler</strong><br><strong>App Name</strong>: Yayınlanmış veya incelenmiş ancak henüz yayınlanmamış bir uygulama.<br><strong>Gift value: </strong>Bu parametre <strong>isteğe bağlıdır</strong>. Bu parametreyi, hediyenin kullanıcı başına gerçek değerine göre ayarlayın. Değer, ondalık virgülden sonra iki basamak içermelidir.<br><strong>Gift release regions and countries:</strong> Uygulamanın yayınlandığı hedef bölgeleri ve ülkeleri seçin.<br><strong>Gift serial number file:</strong> Dosya, ANSI kodlamalı .txt biçiminde olmalıdır. Her satır bir seri numarası içerir ve başka hiçbir yoruma izin verilmez. Hediye seri numarası harf, rakam, alt çizgi ve kısa çizgiden oluşur. Her seri numarası benzersiz olmalıdır. Dosya boyutu 100 MB’ı geçmemelidir. Ekstra seri numaraları geri dönüştürülemez.<br><strong>Validity Period:</strong> Bu parametre, platformda hediyenin görüntülendiği zaman dilimini gösterir. Geçerlilik süresi, serbest bırakılan ülkenin yerel saatine bağlıdır.<br><strong>Redemption level: </strong>Bu parametre, bir uygulamanın hediyesi için varsayılan olarak L1&#39;e ayarlanmıştır ve değer değiştirilemez.<strong> Bir oyunun hediyesi Çin ana karası dışındaki bölgelere yayınlandığında, parametre değeri varsayılan olarak L1&#39;dir ve değiştirilemez.</strong><br><strong>Already added language:</strong> Hediye Çin ana karası dışındaki bölgelere verilirse, bu parametre <strong>Amerikan İngilizcesi — varsayılan</strong> olarak ayarlanır.<br><strong>Name:</strong> Bir uygulama ve oyun için iki tür hediye adı vardır.</p><p>Hediye bir uygulama içinse, bu parametrenin değeri uygulama adı ve hediye adıdır. İki isim iki boşlukla ayrılır ve bu parametrenin değeri 20 karakteri aşamaz.<br>Örnek: VipShop CNY30 Kuponu.<br>Hediye bir oyun içinse, bu parametrenin değeri oyun adı ve hediyenin adıdır. İki isim iki boşlukla ayrılır ve bu parametrenin değeri 20 karakteri aşamaz.<br>Örnek: Acemi için Lianliankan Hediyesi</p><p><strong>Display ranking:</strong> Bu parametre, ayrıntılar sayfasında görüntülenen hediyenin sırasını gösterir. Değer 1 birinci yeri, 2 ikinciyi, 3 üçüncüyü belirtir ve bu böyle devam eder.<br><strong>Image:</strong> Bu parametre isteğe bağlıdır. Resim yüklenmemişse, uygulama / oyun simgesi varsayılan olarak görüntülenir. Yüklenen resim 216 * 216 piksel boyutlarında kare bir simge olmalıdır. Görüntü boyutu 512 KB&#39;den büyük olmayacaktır. Resim formatı PNG olacaktır (JPG formatı desteklenmez).<br><strong>Description:</strong> Uygulama adı + teklif adı biçiminde olan uygulama için hediye paketindeki tekliflerin açıklamasıdır. Birden fazla teklif dahil edilirse, her teklifin açıklaması tek satırda görüntülenmelidir (diğer uygulamalara adanmış herhangi bir hediyenin dahil edilmesine izin verilmez).</p><p>Örnek:<br>300 üzerindeki siparişler için VipShop 30 indirimli<br>200&#39;den fazla sipariş için VipShop 20 indirimli<br>Bir oyun için hediye paketindeki tekliflerin açıklaması. Farklı teklifler virgülle (,) ayrılır. Teklif ve miktarı yıldız işaretleriyle (*) ayrılır ve bir teklif, herhangi bir taşıma iadesi olmadan tek satırda sağlanmalıdır.<br>Örnek:<br>Altın para * 1000, hız ayrıcalığı * 1H, özel görünüm (7 gün)</p><p><strong>Gift collection/usage description:</strong> Bir hediyeyi talep etme prosedürü ve hediyeyi bir uygulamada kullanmaya ilişkin talimatlar mümkün olduğunca kısa olmalıdır.</p><p>Örnek:<br><strong><em>Xxx uygulamasında bir hediye talep etme yöntemi:</em></strong><br>1. Uygulamayı indirin, kurun ve açın.<br>2. Hediyeyi (kupon) talep etmek için aktivite merkezine gidin ve hesabınıza giriş yapın.<br><strong><em>Hediyeyi kullanma talimatları:</em></strong><br>1. Sadece yurt içi taşımacılık için geçerlidir.<br>2. Bir sipariş için en fazla bir kupon kullanılabilir ve bir kupon diğer promosyonlarla birlikte kullanılamaz.<br>3. Bir kupon yalnızca son kullanma tarihinden önce geçerlidir.</p><h4>4. Task Durumu, Hediye Durumu ve Her Durum için İzin Verilen İşlemler</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*uZQs9t49YwCwTIMh.png" /></figure><h4>Sonuç:</h4><p>App gallery’nin ana sayfasındaki hediyeler bölümüne tıklayarak hediye merkezine erişebilir ve bu sayfada hediye içeren uygulamaları görebilirsiniz.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*99vGcPJlbRXTFmwK.jpeg" /></figure><h4>RESOURCES</h4><ul><li><a href="https://developer.huawei.com/consumer/en/doc/distribution/app/agc_Packagemanagement">Document</a></li><li><a href="https://developer.huawei.com/consumer/en/doc/distribution/promotion/3020101">Document</a></li><li><a href="https://medium.com/huawei-developers/appgallery-connect-gift-management-da78cf781372">AppGallery Connect Gift Management</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9236c589904c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Huawei Ads kit React-Native ile nasıl kullanılır?]]></title>
            <link>https://simge-keser.medium.com/huawei-ads-kit-react-native-ile-nas%C4%B1l-kullan%C4%B1l%C4%B1r-59994e3bd77d?source=rss-25ee4ead7a54------2</link>
            <guid isPermaLink="false">https://medium.com/p/59994e3bd77d</guid>
            <category><![CDATA[hms-ads-kit]]></category>
            <category><![CDATA[huawei-mobile-service]]></category>
            <category><![CDATA[huawei]]></category>
            <category><![CDATA[hms]]></category>
            <category><![CDATA[react-native]]></category>
            <dc:creator><![CDATA[Simge Keser]]></dc:creator>
            <pubDate>Thu, 18 Feb 2021 06:21:50 GMT</pubDate>
            <atom:updated>2021-02-18T07:47:25.294Z</atom:updated>
            <content:encoded><![CDATA[<p>Herkese merhaba, bu makalede, ads kitini bir react native projesine nasıl entegre edebileceğimizden ve karşılaşabileceğimiz sorunlardan kısaca bahsedeceğim. Öncelikle Huawei ads kiti tanıyarak başlayalım.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2tmlq3c3e-ep4SNb7_BW4w.png" /></figure><h3>Ads kit nedir? Neden kullanılıyor?</h3><p>HUAWEI Ads Publisher Hizmeti, kullanıcılara hedeflenmiş, yüksek kaliteli reklam içeriği sunmak için HUAWEI’nin geniş kullanıcı tabanını ve kapsamlı veri yeteneklerini kullanır. Bu hizmet ile Uygulamanız, kullanıcılarınıza kendileriyle ilgili içeriği getirirken gelir elde edebilecektir. Mobil geliştiriciler, uygulamalarından gelir elde etmek için çoğunlukla uygulama içi satın alımları ve reklamları kullanır.<br>Şu anda, <strong>Banner</strong>, <strong>Native</strong>, <strong>Rewarded</strong>, <strong>Interstitial ve Splash</strong> ​​reklamları entegre edilebilir ve gelecekte daha fazla biçim kullanıma sunulacaktır. Şimdi bu reklam türlerini react native projemize nasıl entegre edebileceğimize bakalım.</p><h3>Uygulama</h3><p>Başlamadan önce, bir HUAWEI geliştiricisi olarak kaydolmanız ve HUAWEI Geliştirici web sitesinde kimlik doğrulamayı tamamlamanız gerekir. Ayrıntılar için lütfen r<a href="https://developer.huawei.com/consumer/en/devservice/doc/10104">egister a HUAWEI ID</a> bölümüne bakın.</p><h4>HMS Core Sdk Entegrasyonu</h4><p>Bundan sonra, HMS Core Sdk&#39;yi projeye entegre etmek ve AppGallery Connect&#39;te yeni bir proje oluşturma hakkında daha fazla ayrıntı için aşağıdaki bağlantıdaki adımları izleyin.</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><h4>React Native Ads kit Pluginini Ekleme</h4><p>Hms Ads Kit eklentisini entegre etmenin iki farklı yolu vardır. İlki, React Native Ads Plugin&#39;i indirmek ve react-native-hms-ads klasörünü React Native projenizin node_modules klasörüne yerleştirmektir. Ardından <a href="https://developer.huawei.com/consumer/en/doc/development/HMS-Plugin-Guides/integrating-sdk-0000001050201941">official dokumanda</a> belirtilen adımlara göre devam edebilirsiniz.<br>Diğer ve daha kolay olanı npm komutu ile indirmektir. Aşağıdaki komut ile ads kiti tek adımda uygulamaya ekleyebilirsiniz. Ben npm komutu ile projeye eklemeyi tercih ettim.</p><pre><em>npm i @hmscore/react-native-hms-ads</em></pre><p>Bu komutu çalıştırdıktan sonra, Hms Ads kit başarıyla package.json dosyasına eklenecektir. Uygulamayı çalıştırdığınızda aşağıdaki gibi bir hata ile karşılaşırsanız yapmanız gereken tek şey kalıyor.</p><pre><strong>* What went wrong:<br>Execution failed for task &#39;:app:checkDebugDuplicateClasses&#39;.<br>&gt; 1 exception was raised by workers:<br>  java.lang.RuntimeException: Duplicate class com.huawei.a.a.a.a found in modules jetified-ads-consent-3.4.29.301-runtime.jar (com.huawei.hms:ads-consent:3.4.29.301) and stats-4.0.4.300-runtime.jar (com.huawei.hms:stats:4.0.4.300)<br>  Duplicate class com.huawei.a.a.a.b found in modules jetified-ads-consent-3.4.29.301-runtime.jar (com.huawei.hms:ads-consent:3.4.29.301) and stats-4.0.4.300-runtime.jar (com.huawei.hms:stats:4.0.4.300)</strong></pre><p>Ads kitinin build.gradle dosyasını açın, ardından izin sürümünü “3.4.30.301” olarak değiştirin. Olması gereken bağımlılıkları aşağıdaki ads kitinin build.gradle dosyasında görebilirsiniz.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/e15efd06a04a1d7185bd0868ae59caf9/href">https://medium.com/media/e15efd06a04a1d7185bd0868ae59caf9/href</a></iframe><p>Tüm bu hazırlık adımlarını başarıyla tamamladıktan sonra artık ads kiti kullanmaya başlayabiliriz.</p><h4>Banner Reklam Tipini Ekleme</h4><p>@ Hmscore / react-native-hms-ads paketinden kullanacağınız ads türlerini import etmeniz gerekir. Ardından, reklamları görüntülemek için gerekli işlevleri kullanmaya başlayalım. Ben tüm reklam tiplerini import ettim.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/dd62ec4380ebf2bca8d78a3129c37958/href">https://medium.com/media/dd62ec4380ebf2bca8d78a3129c37958/href</a></iframe><p>Banner reklamlar, bir uygulamanın düzeninde üstte, ortada veya altta bir yer kaplayan dikdörtgen görüntülerdir. Banner reklamlar, düzenli aralıklarla otomatik olarak yenilenir. Bir kullanıcı bir banner reklama dokunduğunda, çoğu durumda kullanıcı reklamverenin sayfasına yönlendirilir. Temel olarak, aşağıdaki kod bloğunu kullanarak, HMS Banner reklamını uygulamanıza ekleyebilirsiniz. Daha fazla özellik kullanmak istiyorsanız, <a href="https://developer.huawei.com/consumer/en/doc/development/HMS-Plugin-Guides/banner-0000001050439147">resmi banner reklam kiti dokumanından</a> öğrenebilirsiniz.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/bda6a0aab516cc02d40b6c9e2613f8ab/href">https://medium.com/media/bda6a0aab516cc02d40b6c9e2613f8ab/href</a></iframe><h4>Native Reklam Tipini Ekleme</h4><p>Native reklamlar, uygulama tasarımınıza uyması için içeriğe sorunsuz bir şekilde uyar. Bu tür reklamlar gerektiği gibi özelleştirilebilir. Aşağıdaki komut bize nasıl basitçe entegre edileceğini gösteriyor. Native reklamlar hakkında daha fazla özellik kullanmak istiyorsanız, <a href="https://developer.huawei.com/consumer/en/doc/development/HMS-Plugin-Guides/native-0000001050316236">resmi yerel reklamlar kiti dokumanından</a> öğrenebilirsiniz.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/6cbd8e7b94ef8378577697643ca5860b/href">https://medium.com/media/6cbd8e7b94ef8378577697643ca5860b/href</a></iframe><p>Aşağıdaki tablo, native reklam testi için test ad slot idlerini gösterir, test için istediğiniz idyi kullanabilirsiniz.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oRwrFIPdC13WMI1oVFnOSw.png" /></figure><h4>Splash Reklam Tipini Ekleme</h4><p>Splash reklamlar, bir uygulama başlatıldıktan hemen sonra, hatta uygulamanın ana ekranı görüntülenmeden önce görüntülenir.Her şeyden önce, aşağıdaki tablodan idleri seçerek bunun bir resim mi yoksa bir video mu olduğunu belirlemeniz gerekir. İd’yi ayarladıktan sonra, reklamı görüntülemek için show işlevini çağırın.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/054bc7fd0ba88afa0773b34eba28a8ca/href">https://medium.com/media/054bc7fd0ba88afa0773b34eba28a8ca/href</a></iframe><p><em>Splash ads formatları ve Slot IDleri</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*4z5WWONGeEBgq70i.png" /></figure><p>Splash reklamlar hakkında daha fazla özellik kullanmak istiyorsanız, <a href="https://developer.huawei.com/consumer/en/doc/development/HMS-Plugin-Guides/splash-0000001050439151">resmi splash reklam kiti dokumanından</a> ayrıntıları öğrenebilirsiniz.</p><h4>Interstitial Reklam Tipini Ekleme</h4><p>Interstitial reklamlar, bir uygulamanın arayüzünü kapsayan tam ekran reklamlardır. Bu tür reklamlar, kullanıcı deneyimini kesintiye uğratmadan, kullanıcı bir uygulamayı başlattığında, duraklattığında veya uygulamadan çıktığında görüntülenir.</p><pre>HMSInterstitial.setAdId(‘testb4znbuh3n2’); // video ad HMSInterstitial.loadAd();</pre><p>İlk olarak, reklam slot idsini ayarlamak için setAdId () yöntemini çağırmanız gerekir. Ardından, reklamı yüklemek için loadAd () yöntemini çağırın ve reklamın yüklenmesinin bittiğini onaylamak için isLoaded () yöntemini çağırın, son olarak reklamı görüntülemek için show () yöntemini çağırın. Örnek kod aşağıdaki gibidir:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/4565c3325c7abdb0bcfb8678a30fca0a/href">https://medium.com/media/4565c3325c7abdb0bcfb8678a30fca0a/href</a></iframe><h4>Sonuç:</h4><p>Hms ads kiti olabildiğince basit ve anlaşılır bir şekilde açıklamaya çalıştım. Gördüğünüz gibi, reklam kitini react native projesine entegre etmek oldukça kolay ve basittir. Demo projesi için <a href="https://github.com/simgekeser/Hms-ads-kit-reactnative-demo">bu bağlantıyı takip edebilir</a> ve reklam kiti türleri ve özellikleri hakkında daha fazla ayrıntı için aşağıdaki linkleri inceleyebilirsiniz.</p><ul><li><a href="https://github.com/simgekeser/Hms-ads-kit-reactnative-demo">simgekeser/Hms-ads-kit-reactnative-demo</a></li><li><a href="https://developer.huawei.com/consumer/en/doc/development/HMS-Plugin-Guides/introduction-0000001050196714">Document</a></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/501/1*fGwaHxsvVaIszoEFVdjGHQ.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/501/1*JWYI4QAeany8O4BqeJOT1w.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/501/1*fAbDnFR99ZqlIPWIqUMMdg.jpeg" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=59994e3bd77d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Access your addresses through a single tap — Identity Kit]]></title>
            <link>https://simge-keser.medium.com/access-your-addresses-through-a-single-tap-identity-kit-45837662f1fc?source=rss-25ee4ead7a54------2</link>
            <guid isPermaLink="false">https://medium.com/p/45837662f1fc</guid>
            <category><![CDATA[hms]]></category>
            <category><![CDATA[address-management]]></category>
            <category><![CDATA[huawei-developers]]></category>
            <category><![CDATA[identity-kit]]></category>
            <category><![CDATA[hms-core]]></category>
            <dc:creator><![CDATA[Simge Keser]]></dc:creator>
            <pubDate>Wed, 23 Dec 2020 17:18:29 GMT</pubDate>
            <atom:updated>2020-12-23T17:44:52.893Z</atom:updated>
            <content:encoded><![CDATA[<h3>Access your addresses through a single tap — Identity Kit</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/580/1*w1sl5cwa9qyMPbvUJsLYdQ.png" /></figure><p>Hi everyone , in this article we’re going to develop a application using Identity Kit. I shared a medium article in which I explain the identity kit, its features and why it is used. You can access my previous article from below link. After getting to know the Identity kit briefly, we can start developing our application.</p><p><a href="https://medium.com/huawei-developers/hms-identity-kit-address-management-and-address-selection-39070e9057e6">HMS Identity Kit |Address Management and Address Selection</a></p><p>Basically, the Identity kit allows us to easily access our address information. Thanks to the Identity kit, we can manage our addresses with a single touch. For example, there are options<strong> such as adding a new address, deleting, querying and editing the addresses.</strong> It is usually used when the application needs the user’s address information such as the delivery application, shopping app and etc.</p><h4>Supported Locations (UPDATED)</h4><p>Identity Kit is used in most regions around the world. You can check the all supported locations from below link.</p><p><a href="https://developer.huawei.com/consumer/en/doc/development/HMSCore-Guides-V5/supported-regions-0000001059821880-V5">https://developer.huawei.com/consumer/en/doc/development/HMSCore-Guides-V5/supported-regions-0000001059821880-V5</a></p><h4>Important Notes:</h4><ul><li>If a user tries to use functions provided by the <strong>HUAWEI Identity Kit</strong> without logging in using <strong>HUAWEI ID</strong>, Identity Kit displays the HUAWEI ID registration or sign-in page first. The user can use the functions provided by HUAWEI Identity Kit only after signing in using a registered HUAWEI ID.</li><li><strong>A maximum of 10 user addresses are allowed.</strong></li><li>You don’t need to integrate account kit however, your app users need to sign in to HMS Core (APK) with their HUAWEI ID before they can use the functions provided by HUAWEI Identity Kit.</li></ul><h3>How to use Identity Kit ?</h3><p>Before you get started, you must register as a HUAWEI developer and complete identity verification on the <a href="https://developer.huawei.com/consumer/en">HUAWEI Developer</a> website. For details, please refer to <a href="https://developer.huawei.com/consumer/en/devservice/doc/10104">Register a HUAWEI ID</a>.</p><h4>Integration HMS Core Sdk</h4><p>After that, follow the steps in the link below to integrate HMS Core Sdk into the project and for more details about creating a new project on AppGallery Connect .</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><h4>Setting up Identity Kit</h4><p>You need to add the Identity Kit sdk to build.gradle in the app directory from Android Studio.</p><pre>implementation &#39;com.huawei.hms:identity:4.0.4.300&#39;</pre><blockquote><em>Don’t forget =&gt; On the </em><strong><em>Project Setting </em></strong><em>page, click agconnect-services.json to download the configuration file and copy the </em><strong><em>agconnect-services.json </em></strong><em>file to the app directory.</em></blockquote><p>Now,we have completed the necessary preparations to use the Identity Kit.</p><h4>Implementation of Identity Kit</h4><p>The use of the Identity kit is not complicated, on the contrary, it has a very simple and clear to use. The first thing we will do is create a new <strong>UserAddressRequest </strong>and call the <strong>getUserAddress</strong> API. I have created an IdentityKitHelper class that provides us with all the necessary functions for the Identity kit.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/da907f9cc390276b1c22f7196d76fda0/href">https://medium.com/media/da907f9cc390276b1c22f7196d76fda0/href</a></iframe><p>We call our function by pressing my address information button in main activity. If result from getuseraddress api is successful, we call our <strong>startActivityForResult </strong>method in onSuccess, otherwise we response the error message in onFailure.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/301ef7e1324f58e271220574d93a600b/href">https://medium.com/media/301ef7e1324f58e271220574d93a600b/href</a></iframe><p>We display the address selection page by calling the <strong><em>startResolutionForResult</em></strong> method of the status. After making the changes regarding the address, the user can complete the address selection process by clicking the OK button at the bottom of the page.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8h3x5EDzavlyOZ7bKFWsWQ.png" /><figcaption>Address Page Interface</figcaption></figure><p>If the result code is equal to Activity.RESULT_OK in onActivityResult, we can get address information.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/e49e2d9a8ec0e058ebf07be7085cbc40/href">https://medium.com/media/e49e2d9a8ec0e058ebf07be7085cbc40/href</a></iframe><p>By showing the selected address information on the screen, we complete the use of identity kit. You can see our application below and also find the project’s <a href="https://github.com/simgekeser/identity-kit-super-demo">github link</a> in the resources section.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/408/1*Ufrq8a7a4smD8-FILlqZvQ.png" /></figure><h3>Resources</h3><ul><li><a href="https://github.com/simgekeser/identity-kit-super-demo">simgekeser/identity-kit-super-demo</a></li><li><a href="https://developer.huawei.com/consumer/en/doc/development/HMSCore-Guides-V5/introduction-0000001050040471-V5">Document</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=45837662f1fc" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AppGallery Connect Gift Management]]></title>
            <link>https://medium.com/huawei-developers/appgallery-connect-gift-management-da78cf781372?source=rss-25ee4ead7a54------2</link>
            <guid isPermaLink="false">https://medium.com/p/da78cf781372</guid>
            <category><![CDATA[appgallery-connect]]></category>
            <category><![CDATA[hms]]></category>
            <category><![CDATA[promotion]]></category>
            <category><![CDATA[huawei-appgallery]]></category>
            <category><![CDATA[gift-management]]></category>
            <dc:creator><![CDATA[Simge Keser]]></dc:creator>
            <pubDate>Wed, 25 Nov 2020 08:29:15 GMT</pubDate>
            <atom:updated>2020-11-25T08:53:33.103Z</atom:updated>
            <content:encoded><![CDATA[<p>Hi everyone, this article will explain you how to create gift packages on AppGallery Connect with a sample demo. We can make a gift by following the steps specified in the app gallery connect gift management page. Let’s start by learning what the gift packages are.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/542/1*szWSYHWDN3QG44Z7YW_6mg.png" /></figure><p><strong>The Gift Management module is open to all enterprise developers and supports the configuration of global gift packages. </strong>By adding gifts to your apps, you can attract users’ attention and thus increase the usage of your app and the number of downloads. After a gift package is created and approved, it can be promoted using AppGallery resources (including Kids Center, GameCenter, and EduCenter). Additional exposure position will be offered to gift packages that meet specified requirements.</p><p>There are two type of gift package which are <strong>new users and regular gift packages.</strong></p><ul><li>New users gift packages target users of specific Huawei device models and are provided as one of the selling points of new devices. Involved apps will be promoted via wide-ranging marketing resources including but not limited to product launch events, product overview pages, and official social accounts. <strong>New</strong> <strong>users gift packages should be valid throughout the sales period of associated devices.</strong></li><li>Regular gift packages are classified into common gift packages and activity gift packages. These packages will be promoted using resources of HUAWEI AppGallery (including Kids Center, GameCenter, and EduCenter), including but not limited to the gift zone, app details page, and activity zone. Gift packages that meet certain conditions will have a greater chance of exposure.</li></ul><h4><strong>1. Gift Types</strong></h4><ul><li><strong>Gift — with code</strong>: A gift code, in the form of a serial number, is sent to a user who can redeem the code in the app or game following the instructions to get the gift.</li><li><strong>Gift — without code: </strong>Information about such gifts is displayed on the AppGallery app details page. If there is a gift available for an app, users can get the mapping gift in the app according to the description of the gift after installing the app.</li></ul><h4><strong>2. Gift Addition</strong></h4><p>To manage your gift packets, sign in to the AppGallery Connect, and go to following navigation path :</p><p><strong>AppGallery Connect&gt;My apps&gt;App name&gt;Operate&gt; Promotion&gt;Gift Management.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*M3Z5TKZCDREPLL8u2ndEeg.png" /></figure><p><strong>In my apps page</strong>, you can click on our app which will be added gift.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lEwSnF45IsxKlEB6QS8zsA.png" /></figure><p>On the page that opens, you can click on the <strong>operate </strong>section and you will reach the <strong>gift management</strong> under the <strong>promotion section</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CBrB9DXVjACpNVQGdJiWDQ.png" /></figure><blockquote>Note: If you are<strong> individual developer</strong>, you cannot see promotion and gift management section. <strong>Gift Management is open to enterprise developers only.</strong></blockquote><p>Now, we can start creating gift by clicking the<strong> Add gift</strong> button on top right-hand corner. After clicking, the following dialog page will be displayed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/771/1*SZdhiokmW2BX0XNijtW9oA.png" /></figure><p>As I mentioned above, there are two types of gifts with serial numbers and without serial numbers.</p><p><strong>If you choose gift with the serial number</strong>, you need to send a code which is gift serial number to user and the user can get the gift by writing this code to the relevant place in the application. For example, you want to give 5 credits to a user of your app, and you give a redemption code to the user who wants to receive this gift in the app gallery.The user copies this code and paste it into the required section in the application. If the code is correct, 5 credits are loaded into the user’s account in this way. This is the first senario you can use to add gift.</p><p><strong>The other is that the user can directly use the gift without any code</strong>. You dont need to provide any serial or another code. For instance, you want to increase your app download number. You can create a welcome gif for this. You can present a gif with that content “If you download my application, you will earn a premium membership for a month”. After user download the app, they can automatically have a premium membership for a month. This is the second senario.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/844/1*bD5eeguse9530fseVDwIlg.png" /></figure><p>After selecting the gift type, we will select our region in the page that opens. In the area for releasing gifts, multiple countries can be selected under a region. <strong>If more than region is selected, enterprise developers cannot submit the gift. </strong>After adding a gift, enterprise developers can view the gift on the gift management page or search for the gift by gift ID, name (gift name), gift type on the Management of gift bag page.</p><h4>3. Parameters for Gift Configuration</h4><ul><li><strong>App Name</strong>: An app that has been published or reviewed but not published yet.</li><li><strong>Gift value: </strong>This parameter is <strong><em>optional</em></strong>. Set this parameter based on the actual value of the gift as per user. The value must contain two digits after the decimal point.</li><li><strong>Gift release regions and countries: </strong>Select the target regions and countries to which the app is released.</li><li><strong>Gift serial number file:</strong> The file must be in the .txt format with ANSI encoding. Each row contains one serial number and no other comments are allowed. The gift serial number consists of letters, digits, underscore, and hyphens. Each serial number must be unique.The file size must not exceed 100 MB. Extra serial numbers cannot be recycled.</li><li><strong>Validity Period:</strong> This parameter indicates the time segment when the gift is displayed on the platform. The validity period is based on the local time of the release country shall be selected.</li><li><strong>Redemption level:</strong> This parameter is set to L1 by default for the gift of an app, and the value cannot be changed. <strong><em>When the gift for a game is released to regions outside mainland China, the parameter value is L1 by default and cannot be changed.</em></strong></li><li><strong>Already added language:</strong> If the gift is released to regions outside mainland China, this parameter is set to<em> </em><strong><em>American English — default</em></strong><em>.</em></li><li><strong>Name: </strong>There are two types of gift name for an <strong>app and an game</strong>.</li></ul><p>If the gift is for an app<strong>, </strong>the value of this parameter is the app name plus the gift name. The two names are separated by two spaces and the value of this parameter cannot exceed 20 characters.</p><p>Example: VipShop CNY30 Coupon.</p><p>If the gift is for a game, the value of this parameter is the game name plus the gift name. The two names are separated by two spaces and the value of this parameter cannot exceed 20 characters.</p><p>Example: Lianliankan Gift for novice</p><ul><li><strong>Display ranking: </strong>This parameter indicates the sequence of the gift displayed on the details page. Value 1 indicates the first place, 2 indicates second, 3 indicates third, and so on.</li><li><strong>Image</strong>: This parameter is optional. If no picture is uploaded, the application/game icon is displayed by default.The image uploaded should be a square icon with dimensions of 216*216px. The image size shall not be greater than 512 KB. The picture format shall be PNG (JPG format not supported).</li><li><strong>Description:</strong> Description of the offering(s) in a gift package for the app, which is in the format of application name + offering name. If more than one offering is included, the description of every offering should be displayed in one line (it is not allowed to include any gift that is dedicated to other apps).</li></ul><p>Example :</p><ul><li>VipShop 30 off for order over 300</li><li>VipShop 20 off for order over 200</li><li>Description of the offering(s) in a gift package for a game. Different offerings are separated by comma (,). The offering and its quantity are separated by asterisks (*) and one offering must be provided in one line without any carriage return.</li></ul><p>Example:</p><ul><li>Gold coin*1000, speed privilege*1H, special skin (7 days)</li></ul><p><strong>Gift collection/usage description:</strong> The procedure of claiming a gift and instructions on using the gift in an app, which must be as concise as possible.</p><p>Example:</p><ul><li>Method for claiming a gift in app xxx:</li><li>1. Download, install, and open the app.</li><li>2. Go to the activity center and log in to your account to claim the gift (voucher).</li></ul><p>Instructions on using the gift:</p><ul><li>1. Applicable to only domestic transportation.</li><li>2. A maximum of one voucher can be used for an order and a voucher cannot be used with other promotions.</li><li>3. A voucher is valid only before its expiration date.</li></ul><h4>4. Task Status, Gift Status, and Operations Allowed for Each Status</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gv4NXOuZiDVMRxzsv1n5qg.png" /></figure><h4><strong>Result:</strong></h4><p>You can access the gift center by clicking the gifts section on the main page of the app gallery, and see the applications containing gifts on this page.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jwJYJUZwep7C-ffJtnGyVg.jpeg" /></figure><h4>RESOURCES</h4><ul><li><a href="https://developer.huawei.com/consumer/en/doc/distribution/app/agc_Packagemanagement">Document</a></li><li><a href="https://developer.huawei.com/consumer/en/doc/distribution/promotion/3020101">Document</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=da78cf781372" width="1" height="1" alt=""><hr><p><a href="https://medium.com/huawei-developers/appgallery-connect-gift-management-da78cf781372">AppGallery Connect Gift Management</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[Huawei Map Kit- 2 React Native| Direction API, Drawing a Route, Location kit]]></title>
            <link>https://medium.com/huawei-developers/huawei-map-kit-2-react-native-direction-api-drawing-a-route-location-kit-50409b8b7402?source=rss-25ee4ead7a54------2</link>
            <guid isPermaLink="false">https://medium.com/p/50409b8b7402</guid>
            <category><![CDATA[cross-platform]]></category>
            <category><![CDATA[react-native]]></category>
            <category><![CDATA[hms]]></category>
            <category><![CDATA[mapkit]]></category>
            <category><![CDATA[direction-api]]></category>
            <dc:creator><![CDATA[Simge Keser]]></dc:creator>
            <pubDate>Tue, 06 Oct 2020 13:09:01 GMT</pubDate>
            <atom:updated>2020-10-06T13:09:01.035Z</atom:updated>
            <content:encoded><![CDATA[<p>Hello everyone, in this article we will look at how to use <strong>Direction API</strong>, <strong>draw a route to Huawei Map </strong>with polyline and get last location with <strong>Location kit </strong>in <strong>React Native</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pC3X8lmFraersI1a_A_RZg.jpeg" /></figure><p>In my previous article I mentioned about how to integrate the map kit into our react native project and how to use the basic functions(<strong>map display, marker adding and editing, custom marker creation, polygon and circle drawing, changing map style, finding current location</strong>) of the map kit. If you wish, you can view it by clicking the link below.</p><p><a href="https://medium.com/huawei-developers/hms-map-kit-react-native-f7213ad697e2">Hms Map kit | React Native</a></p><p>Let’s start with integration of <strong>Location kit </strong>to get our last location, assuming that you have done the necessary steps about the map (<strong>such as adding the map, adding a marker</strong>) in the previous article.</p><h4><strong>Integration of Location Kit and Getting Last Location</strong></h4><p>HUAWEI Location Kit combines the GNSS, Wi-Fi, and base station location functionalities into your app to build up global positioning capabilities, allowing you to provide flexible location-based services targeted at users around the globe. Currently, it provides three main capabilities: <strong>fused location</strong>, <strong>activity identification</strong>, and <strong>geofence. </strong>We will get last location and add marker to that location. After running the npm command below, location kit will be added to our project.</p><pre><strong>npm i @hmscore/react-native-hms-location</strong></pre><p>To get last location positions,we will use <strong>getLastLocation()</strong> function in <strong>HMSLocation.</strong></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/067911d46679d4cb21a39e9311f33ace/href">https://medium.com/media/067911d46679d4cb21a39e9311f33ace/href</a></iframe><p>Now that we have obtained the latest location information (<strong>latitude</strong>, <strong>longitude</strong>), we can draw a route from our current location to the region we want. I added a Custom Marker of my location on the map. Let’s see how to draw a route on the map.</p><h4><strong>Drawing a Route and Direction API</strong></h4><p>To draw a route, we first need to learn the <strong>Direction API</strong>.Using the Direction API, we obtain walking, cycling and driving routes between two places. Today I will show you how to make an application that shows the <strong>walking route</strong>. Let’s start how to get route information from Direction Api by making a <strong>POST request</strong>. In the table below you can see the requirements for the post request.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/840/1*neYu0Vq0koGqOYEGIc96yg.png" /><figcaption>Prototype</figcaption></figure><p>We have to add our project <strong>api_key</strong>, one of the most important parts. The api key of the project can be accessed from the <strong>agconnect-services.json file</strong> and the <strong>AppGallery Connect.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/791/1*MhSWegWD9NHbzZPCRRxPGQ.png" /><figcaption>Api key from AGC</figcaption></figure><p>When creating request parameters, the <strong>Content-Type </strong>should be set to <strong>application/json</strong> in the header, and the <strong>origin </strong>and <strong>destination</strong> should be set in body because they are <strong>mandatory</strong>. I set my current location coordinate to <strong>origin</strong> and the coordinates of the random place I want to go to <strong>destination </strong>in the <strong>body</strong> part.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*N3J2Ot6SIwuw-7WdPXGk6w.png" /></figure><p>In this example, I showed you to get the walking route. If you want to get bicycling and driving route, you can change routeService in url. For example:</p><pre><em>https://mapapi.cloud.huawei.com/mapApi/v1/routeService/</em><strong><em>driving</em></strong><em>?key=<br><br>https://mapapi.cloud.huawei.com/mapApi/v1/routeService/</em><strong><em>bicycling</em></strong><em>?key=</em></pre><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/f8f6ff572085575ba7fe2845ab900f3f/href">https://medium.com/media/f8f6ff572085575ba7fe2845ab900f3f/href</a></iframe><p>If the post request we made is successful, we can obtain our route data, but if not, we can find the reason for the error by looking at the error codes. Here is the some result codes from response. For more result code and detail, please refer to <a href="https://developer.huawei.com/consumer/en/doc/HMSCore-References-V5/error-code-0000001050161430-V5">result codes</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ko7ufsYptr9p-ti0S6dx4w.png" /><figcaption>Result codes</figcaption></figure><p><strong>When the status code is 200, an example of response :</strong></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/27964a846339b62b5bffef99de04efe8/href">https://medium.com/media/27964a846339b62b5bffef99de04efe8/href</a></iframe><p>We can start drawing polylines using the coordinates specified for the polyline in steps. For this, we can make our work easier by keeping all the coordinates inside the polyline in a single array(<strong>mPoints</strong>).</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/d1ecc482948d8ea4a3dd046b2af231e9/href">https://medium.com/media/d1ecc482948d8ea4a3dd046b2af231e9/href</a></iframe><p>Now that we got the coordinates of polyline from the api, we can start drawing polylines. In fact, creating polylines is pretty easy and simple because the only thing that matters and mandatory is getting the points. We got through the hard part and got the points successfully. You can <strong>edit line color</strong>, <strong>start and end type</strong>, <strong>width</strong>, <strong>visibility</strong> and <strong>more</strong>. <strong>Custom icon</strong> can be added to <strong>endCap </strong>and <strong>startCap</strong> on request and for more info about icons follow<a href="https://developer.huawei.com/consumer/en/doc/HMS-Plugin-References-V1/polyline-0000001051070241-V1"> this link</a>.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/07a26810d20c20957b26f74355675fe0/href">https://medium.com/media/07a26810d20c20957b26f74355675fe0/href</a></iframe><p>As a result, we got our last location and created a walking route from where we are to where we want. In the my next post, i will explain how to show route steps and create route for other route servies(bicycling,driving) . If we set <a href="https://developer.huawei.com/consumer/en/doc/development/HMSCore-References-V5/directions-walking-0000001050161494-V5#EN-US_TOPIC_0000001050161494__section19799143115168">coordinates in official document</a> to the origin and destination, we can see this route below. I have also added the route we made, showing our last position, below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DCCW-fD4dXnby32TAL_5cA.png" /></figure><h4><strong>RESOURCES</strong></h4><ul><li><a href="https://github.com/simgekeser/Rn_hms_map_sample/blob/master/src/components/DrawRoute.js">simgekeser/Rn_hms_map_sample</a></li><li><a href="https://developer.huawei.com/consumer/en/doc/development/HMSCore-References-V5/directions-walking-0000001050161494-V5">Document</a></li><li><a href="https://developer.huawei.com/consumer/en/doc/development/HMS-Plugin-Guides/introduction-0000001050142177">Document</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=50409b8b7402" width="1" height="1" alt=""><hr><p><a href="https://medium.com/huawei-developers/huawei-map-kit-2-react-native-direction-api-drawing-a-route-location-kit-50409b8b7402">Huawei Map Kit- 2 React Native| Direction API, Drawing a Route, Location 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>
        <item>
            <title><![CDATA[Hms Map kit | React Native]]></title>
            <link>https://medium.com/huawei-developers/hms-map-kit-react-native-f7213ad697e2?source=rss-25ee4ead7a54------2</link>
            <guid isPermaLink="false">https://medium.com/p/f7213ad697e2</guid>
            <category><![CDATA[react-native]]></category>
            <category><![CDATA[hms-map-kit]]></category>
            <category><![CDATA[huawei-mobile-service]]></category>
            <category><![CDATA[cross-platform]]></category>
            <category><![CDATA[hms]]></category>
            <dc:creator><![CDATA[Simge Keser]]></dc:creator>
            <pubDate>Thu, 01 Oct 2020 13:06:08 GMT</pubDate>
            <atom:updated>2020-10-01T13:11:31.091Z</atom:updated>
            <content:encoded><![CDATA[<p>Hi everyone, i will guide to you the map kit, which is a very important and widely used service. <strong>HUAWEI Map Kit</strong> is an SDK for map development. It covers map data of more than 200 countries and regions, and supports dozens of languages. With this SDK, you can easily integrate map-based functions into your apps.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dnDATANTibLDyfdIdVz0SA.png" /></figure><pre><strong>Map display : </strong>Provides standard maps as well as UI elements such as markers, shapes, and layers for you to customize maps that better meet service scenarios.</pre><pre><strong>Map interaction : </strong>Enables users to interact with a map in your app through gestures and buttons in different scenarios.</pre><pre><strong>Route planning :</strong> Supports driving, cycling, walking, and other traveling modes, covering multiple countries and regions around the world.</pre><p>From this article today, you will see how to integrate the map kit into our react native project and use its main functions (<strong>map display, marker adding and editing, custom marker creation, polygon and circle drawing, changing map style, finding current location</strong>).</p><h3>Implementation</h3><p>Before you get started, you must register as a HUAWEI developer and complete identity verification on the <a href="https://developer.huawei.com/consumer/en">HUAWEI Developer</a> website. For details, please refer to <a href="https://developer.huawei.com/consumer/en/devservice/doc/10104">Register a HUAWEI ID</a>.</p><h3>Integration HMS Core Sdk</h3><p>After that, follow the steps in the link below to integrate HMS Core Sdk into the project and for more details about creating a new project on AppGallery Connect .</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><h3>Enable Map kit and Add React Native Map Plugin</h3><p>Enable the Map kit in the Manage API section . Then, download agconnect-services.json file and add the internet and location permissions to the manifest.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8Cf78Mf1lRFqiXoai-E9wA.png" /></figure><pre>&lt;uses-permission android:name=&quot;android.permission.INTERNET&quot;/&gt;</pre><pre>&lt;uses-permission android:name=&quot;android.permission.ACCESS_NETWORK_STATE&quot;/&gt;</pre><p>There are two different ways to integrate the Hms Map Kit plugin. The first is to download <a href="https://developer.huawei.com/consumer/en/doc/development/HMS-Plugin-Library/rn-sdk-download-0000001050151748">React Native Map Kit Plugin </a>and place the <strong>react-native-hms-map </strong>folder to <strong>node_modules</strong> folder of your React Native project. Then, you can continue according to the steps specified <a href="https://developer.huawei.com/consumer/en/doc/development/HMS-Plugin-Guides/integrating-sdk-0000001050034173">in the official document</a>.</p><p>Another and easier one is to download with the npm command. You can add the map kit to the application in one step with the following command.</p><pre>npm i @hmscore/react-native-hms-map</pre><p>After running this command, the Hms Map kit will be successfully added to the package.json file and we can start using the map functions.</p><h3>Creating a Map</h3><p>This MapView component is built so that features on the map (such as Markers, Polygons, etc.) are specified as children of the MapView itself. Let’s see the map in our project. After run the below code block , map will be displayed ,if you haven’t made any mistakes during the preparation steps.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/e092a6a2af02922e4ce657f173f40c09/href">https://medium.com/media/e092a6a2af02922e4ce657f173f40c09/href</a></iframe><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MEdlmv58HFz7R0-E61rLlg.png" /><figcaption>MapView and Marker</figcaption></figure><p>Now that we have created our map, let’s see what are the features of our map and what we can do. We can manually change <strong>the size of the map</strong> by giving the <strong>width and height</strong> values, and adjust the <strong>position of the camera</strong> by giving the required <strong>latitude and longitude </strong>values.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/f075ff5c9b3286c80bb6e3b427374f48/href">https://medium.com/media/f075ff5c9b3286c80bb6e3b427374f48/href</a></iframe><p>Some P<a href="https://developer.huawei.com/consumer/en/doc/HMS-Plugin-References-V1/mapview-0000001051150160-V1#EN-US_TOPIC_0000001051150160__section8565252375">rops</a> and E<a href="https://developer.huawei.com/consumer/en/doc/HMS-Plugin-References-V1/mapview-0000001051150160-V1#EN-US_TOPIC_0000001051150160__section127528156391">vents</a> of MapView component:</p><p><strong>- compassEnabled</strong>: to enable the compass for the map.<br><strong>- rotateGesturesEnabled </strong>: rotate gestures are enabled for the map.<br><strong>- scrollGesturesEnabled </strong>: scroll gestures are enabled for the map.<br><strong>- tiltGesturesEnabled </strong>: tilt gestures are enabled for the map.<br><strong>- zoomControlsEnabled</strong> : to enable the zoom function for the camera.<br><strong>- zoomGesturesEnabled</strong>: zoom gestures are enabled for the map.<br><strong>- buildingsEnabled</strong>: the 3D building layer is enabled for the map.<br><strong>- mapStyle </strong>: JSON string for styling the map.<br><strong>- myLocationEnabled </strong>: Whether my location layer is enabled for the map.<br><strong>- markerClustering</strong> : Whether the markers can be clustered.<br><strong>- myLocationButtonEnabled</strong>: Whether to enable the my location icon for a map.<br><strong>- scrollGesturesEnabledDuringRotateOrZoom </strong>: Whether to enable scroll gestures during rotation or zooming.<br><strong>- onMapReady</strong>: Function to handle the event when the map object is ready. It obtains an event information object as the argument which has <strong>nativeEvent </strong>as key and an empty object as value.<br><strong>- onCameraMove</strong>: Function to handle the event when the camera moves. It obtains an event information object as the argument which has <strong>nativeEvent </strong>as key and an <a href="https://developer.huawei.com/consumer/en/doc/HMS-Plugin-References-V1/datatypes-0000001051070245-V1#EN-US_TOPIC_0000001051070245__section1417516351473">CameraPosition</a> object as value.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CxpAamuM3RphOKhb6V42GA.png" /><figcaption>onCameraMove function result</figcaption></figure><p><strong>- onCameraIdle</strong>: Function to handle the event when the camera movement ends. It obtains an event information object as the argument which has <strong>nativeEvent </strong>as key and a <a href="https://developer.huawei.com/consumer/en/doc/HMS-Plugin-References-V1/datatypes-0000001051070245-V1#EN-US_TOPIC_0000001051070245__section1417516351473">CameraPosition</a> object as value.</p><p><strong>-onMapClick</strong>: Function to handle the event when the map is clicked. It obtains an event information object as the argument which has <strong>nativeEvent </strong>as key and a <a href="https://developer.huawei.com/consumer/en/doc/HMS-Plugin-References-V1/datatypes-0000001051070245-V1#EN-US_TOPIC_0000001051070245__section9630759615">ProjectionOnLatLng</a> object as value.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/988/1*WPPn3pVrBEyK-MgFzK-Tow.png" /><figcaption>onMapClicked result</figcaption></figure><h3>Marker</h3><p>Markers are added to a map to identify locations such as shops and buildings, and additional information can be obtained with information windows. The first thing you need to do is import the marker as <strong>{Marker}</strong> to use the marker. Below, you can see the simple example of using the marker.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/7342ebbb2ac75ada20ddcd693e567e14/href">https://medium.com/media/7342ebbb2ac75ada20ddcd693e567e14/href</a></iframe><p>This example shows how to add the coordinates of the marker, namely where the location of the marker will be, its title and description.You can modify the attributes of the markers and listen marker events.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/3db2b1498b11ae28ae58225bfb7d5ed7/href">https://medium.com/media/3db2b1498b11ae28ae58225bfb7d5ed7/href</a></iframe><p>Some <a href="https://developer.huawei.com/consumer/en/doc/HMS-Plugin-References-V1/marker-0000001051150162-V1#EN-US_TOPIC_0000001051150162__section8565252375">props</a> and <a href="https://developer.huawei.com/consumer/en/doc/HMS-Plugin-References-V1/marker-0000001051150162-V1#EN-US_TOPIC_0000001051150162__section127528156391">events</a> of Marker component :</p><p><strong>-draggable</strong>: Whether the marker can be dragged.<br><strong>-icon</strong>: The icon of the marker.<br><strong>-alpha</strong>: The transparency of the marker.<br><strong>-flat</strong>: Whether the marker is flatly attached to the map.<br><strong>-markerAnchor</strong>: The anchor point of the marker. The anchor point is used to anchor a marker image to the map. The coordinates [0, 0], [1, 0], [0, 1], and [1, 1] respectively indicate the top-left, top-right, bottom-left, and bottom-right corners of the marker image.<br><strong>-infoWindowAnchor</strong>: The anchor point of the marker’s information window. The anchor point is used to anchor a marker image to the map. The coordinates [0, 0], [1, 0], [0, 1], and [1, 1] respectively indicate the top-left, top-right, bottom-left, and bottom-right corners of the marker image.<br><strong>-clusterable</strong>: Whether the marker can be clustered.<br><strong>-onClick</strong>: Function to handle the event when the marker is clicked. It obtains an event information object as the argument which has <strong>nativeEvent </strong>as key and an empty object as value.<br><strong>-onDragStart</strong>: Function to handle the event when the marker starts being dragged. It obtains an event information object as the argument which has nativeEvent as key and an empty object as value.<br><strong>-onDrag</strong>: Function to handle the event when the marker is being dragged. It obtains an event information object as the argument which has <strong>nativeEvent </strong>as key and an empty object as value.<br><strong>-onDragEnd</strong>: Function to handle the event when the marker dragging is complete. It obtains an event information object as the argument which has <strong>nativeEvent </strong>as key and an empty object as value.</p><p>Now that we have learned the properties of the marker, we can create custom marker. Let’s start by changing the look of the marker. Below you can see the location of the assets file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/348/1*jCeAGvsjSx6bMYjK3vg8dg.png" /></figure><p>Only thing is that writing this command “<strong>icon={{asset: ic_launcher.png}}</strong>” in marker view. After adding the image we create in the<strong> asset file</strong> to our <strong>icon </strong>variable, our marker will be shown like that :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*x6oknnfptvQuaaang_d6Tg.png" /><figcaption>Default marker and window vs customized marker and window</figcaption></figure><p>If you want the location of the marker to change to the touched point when the map is touched on it, you can see the change by setting the location information from <strong>onMapClick</strong> to the marker.</p><p>Let’s examine now showing our current location on the map.</p><h4>Current Location</h4><p>Fisrtly, we need to request user permission to show current location. You can use the code below for this.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/c5fd40f2f700e0dfcda17c7b6863a526/href">https://medium.com/media/c5fd40f2f700e0dfcda17c7b6863a526/href</a></iframe><p>After the permissions are completed successfully, our current location and if we enable the my location button, both will appear on the map.</p><pre><strong>myLocationEnabled={true}<br>myLocationButtonEnabled={true}</strong></pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*F3_pUm4xxRX8BCVPTbPmYA.png" /></figure><h4>Drawing Polygon and Circle</h4><p>To be able to add a circle on a map, the radius and center props should be given. As you can see the code block below, I added the latitude and longitude of the marker location as a center of circle. Also, a polygon which is a closed area, consists of a group of ordered coordinates. It can be convex or concave and can span the 180 meridian and have holes that are not filled in.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/582cdd68a30474022a220763e2c1f997/href">https://medium.com/media/582cdd68a30474022a220763e2c1f997/href</a></iframe><p>Here is the polygon and circle on mapView:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HPQhNjz_7VxPIPLKZrfEOQ.png" /></figure><h4>Enable Dark Mode</h4><p>The dark mode is very popular as everyone knows, so what do we have to do to turn our map into <strong>dark mode</strong>?</p><p>We’ll start by changing the mapStyle. For dark mode, you can use the mapstyle json file with <a href="https://github.com/simgekeser/Rn_hms_map_sample/blob/master/mapStyle.json">this link</a>. I didn’t add here due to the length of the content. After creating json file, we need to import as mapStyleJson file from mapStyle.json.</p><pre><strong>import mapStyleJson from ‘./mapStyle.json’;</strong></pre><p>If dark mode is enabled, we add the mapStyleJson to mapStyle in mapview. Here is the sample code:</p><pre><strong>mapStyle={this.state.darkModeOn ? JSON.stringify(mapStyleJson) : ‘ ’}</strong></pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cMNLvBkPnyJkMLt9gUR9MQ.png" /></figure><p>As a result, in this tutorial, I tried to explain the main functions of the <strong>HMS Map Kit</strong> and how we integrated it into the react native project in the most clear and simple way. I hope that would be helpful. If you have any question, please let me know.</p><h4>Resources:</h4><ul><li><a href="https://github.com/simgekeser/Rn_hms_map_sample">simgekeser/Rn_hms_map_sample</a></li><li><a href="https://developer.huawei.com/consumer/en/doc/development/HMS-Plugin-Guides/introduction-0000001050143001">Document</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f7213ad697e2" width="1" height="1" alt=""><hr><p><a href="https://medium.com/huawei-developers/hms-map-kit-react-native-f7213ad697e2">Hms Map kit | React Native</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[Panorama Kit]]></title>
            <link>https://medium.com/huawei-developers/panorama-kit-4edee7f884a6?source=rss-25ee4ead7a54------2</link>
            <guid isPermaLink="false">https://medium.com/p/4edee7f884a6</guid>
            <category><![CDATA[huawei-mobile-service]]></category>
            <category><![CDATA[huawei-developers]]></category>
            <category><![CDATA[hms]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[panorama-kit]]></category>
            <dc:creator><![CDATA[Simge Keser]]></dc:creator>
            <pubDate>Mon, 21 Sep 2020 08:01:41 GMT</pubDate>
            <atom:updated>2020-09-21T08:13:42.144Z</atom:updated>
            <content:encoded><![CDATA[<p>With the HUAWEI Panorama Kit, the interactive view of 360-degree spherical or cylindrical panoramic images is quickly displayed in simulated 3D space on Android phones.HUAWEI Panorama Kit supports interactive viewing of panoramic images and videos in a simulated 360-degree space. You can integrate Panorama Kit into your app through the HMS Core Panorama SDK to easily change a 2D image or video into a 3D view on an Android phone, delivering an immersive user experience.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*o62TwvN1NoeRxEqd2CDnlQ.jpeg" /></figure><h3>Service Features</h3><ul><li>360-degree spherical panorama, partially 360-degree spherical panorama, and cylindrical panorama</li><li>Parsing and display of panorama images in JPG, JPEG, and PNG formats</li><li>Interactive viewing of panoramic videos</li><li>Panorama view adjustment by swiping the screen or rotating the mobile phone to any degree</li><li>Interactive viewing of 360-degree spherical panoramas shot by mainstream panoramic cameras</li><li>Flexible use of panorama services, such as displaying panoramas in a certain area of your app, instead of in a window outside the app, made possible with in-app panorama display APIs.</li></ul><h3>Service Senarios</h3><ul><li><strong>Themes tour</strong> : Enables 360 browsing of lock screen images.</li><li><strong>Street Preview</strong> : Transports users right to the location they want to look at.</li><li><strong>Shopping Browser</strong> : Brings the accessibility and convenience of e-commerce to any product.</li><li><strong>Gallery </strong>: Provides an interactive journey through album images.</li><li><strong>Virtual Tours</strong> : Provides users with the chance to view global tourist attractions, without needing to leave home.</li></ul><h3>Supported Devices</h3><p>Panorama Kit is available on the following devices:</p><ul><li>Huawei devices whose EMUI version is 4.0 or later and HMS Core (APK) version is 4.0.0.300 or later (the APK is preinstalled)</li><li>Phones from other manufacturers (such as Xiaomi, VIVO, OPPO, Samsung, Coolpad, and ZTE), running Android 6.0 or later and with HMS Core (APK) 4.0.0.300 or later installed</li><li>Panorama Kit allows for users to control panoramas using motion tracking through the gyro sensor on a device. Motion tracking will be unavailable on a device without any gyro sensor, for example, HUAWEI MediaPad M5 Lite. In this case, they can use touch control only.</li></ul><h3>Implementation</h3><p><strong>The Panorama SDK can be directly called by devices, without connecting to AppGallery Connect.</strong> There are only a few steps to integrate the Hms Core SDK into our project.You can follow <a href="https://github.com/simgekeser/Hms-panorama-kit">this link</a> for the demo project. First, we need to configure the Maven repository address in the project-level build.gradle file.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/d4b303b8fa9c3676c59eef43e6979358/href">https://medium.com/media/d4b303b8fa9c3676c59eef43e6979358/href</a></iframe><p>Then, add the Panorama Kit sdk to build.gradle in the app directory.</p><pre>implementation &#39;com.huawei.hms:panorama:4.0.4.301&#39;</pre><p>In the manifest file, we need to grant read and write permissions to external storage devices. (On Android 6.0 or higher, you must dynamically apply for permissions.)</p><pre>... <br>&lt;uses-permission android:name=&quot;android.permission.WRITE_EXTERNAL_STORAGE&quot; /&gt; <br>...</pre><p>We have completed all preparations, now we can move on to the coding section of our application. Let’s start by adding the necessary permissions to our MainActivity class as in the code block below.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/800ff7c4b2b998d1a116292206d7161f/href">https://medium.com/media/800ff7c4b2b998d1a116292206d7161f/href</a></iframe><p>Now, we can set the URI of the image we want. We are adding one of the images we uploaded to the raw file. Then, Our panoramic photo displays on the screen, with this code “<strong><em>Panorama.getInstance().loadImageInfo(this, uri).setResultCallback(new ResultCallbackImpl());” .</em></strong>To view a panorama in ring mode, you can specify the panorama type as <strong>IMAGE_TYPE_RING </strong>through the API. You can also see the details in the code below.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/9e1823b5fde8cb6c43eba257ebf6ea4c/href">https://medium.com/media/9e1823b5fde8cb6c43eba257ebf6ea4c/href</a></iframe><p>If the <strong>panoramaResult </strong>is successfull, the image is shown on the screen, but if not, you can see the errors like “unknown error,view intent is null”.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/cf53dd5352c0c665e7ce564bf6aa17b3/href">https://medium.com/media/cf53dd5352c0c665e7ce564bf6aa17b3/href</a></iframe><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sIOlKhnv-dgkQAgTv-6awQ.png" /><figcaption>Panoramic photos that appear when the buttons are clicked</figcaption></figure><p>If we want to use more panorama-related services, we need to call <strong>LocalInterface </strong>of the Panorama SDK. This API initializes the resources required by the HMS Core Panorama SDK. Other APIs can be correctly called only if the initialization is successful. After the initialization is successful, we can set the initControlModes which are <strong>TOUCH, POSE , MIX</strong>.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/a2de7d2baf2fb9478702d6454c788183/href">https://medium.com/media/a2de7d2baf2fb9478702d6454c788183/href</a></iframe><p>Sets the panorama control mode, which can be changed as needed during panorama viewing.</p><p><strong>CONTROL_TYPE_TOUCH</strong>: Touch control<br><strong>CONTROL_TYPE_POSE</strong> : Motion control<br><strong>CONTROL_TYPE_MIX:</strong> Allows for touch control and motion tracking simultaneously.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/0060f7d55f333d46e5063a06abfe4387/href">https://medium.com/media/0060f7d55f333d46e5063a06abfe4387/href</a></iframe><p>Now, we will set a panoramic image and specify the type. Two options are available:<strong> </strong><a href="https://developer.huawei.com/consumer/en/doc/HMSCore-References/api-panointerface-0000001050124414-V5#EN-US_TOPIC_0000001050124414__section0516157133114"><strong>IMAGE_TYPE_SPHERICAL</strong></a> (spherical panorama) and <a href="https://developer.huawei.com/consumer/en/doc/HMSCore-References/api-panointerface-0000001050124414-V5#EN-US_TOPIC_0000001050124414__section1670093033215"><strong>IMAGE_TYPE_RING</strong></a> (cylindrical/ring panorama).</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/52b869d7117e2d26ab4b06085894f61f/href">https://medium.com/media/52b869d7117e2d26ab4b06085894f61f/href</a></iframe><p>Finally, we are adding the panorama view we created as <strong>mPanoramaView </strong>to our new layout, <strong>mLayout</strong>. After adding mPanoramaView to mLayout, Panoramic Spherical image will display on screen.</p><pre>mPanoramaView = mLocalInstance.getView();<br>if (mPanoramaView == null) {<br>    logAndToast(&quot;getView failed&quot;);<br>    return;<br>}<br><br>mPanoramaView.setOnTouchListener(this);<br>mLayout.addView(mPanoramaView);</pre><h3>Displaying a Panoramic Video</h3><p>Let’s look at the how to display panoramic video. First,We need to call the <strong>getSurface</strong> API which obtains the surface used for video display, to specify the type of the new video and the <strong>initMediaPlayer </strong>method to play the video. When we set our code as you can see below, the panoramic video will play on the screen.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/6cae3674cbb89a46ac51e651bcff3581/href">https://medium.com/media/6cae3674cbb89a46ac51e651bcff3581/href</a></iframe><p><em>String KEY_VIDEO_RATIO:</em></p><p><em>Aspect ratio of a video. The value type is float. The default value is 2:1 (2.0f). The setting takes effect only when the video is displayed in cylindrical mode. If you do not specify an aspect ratio for cylindrical video display, the default value will be used. In this case, if the actual aspect ratio is greater than 2:1, video images in the horizontal direction will be compressed. If the actual aspect ratio is less than 2:1, video images in the horizontal direction will be stretched.</em></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/ed3d461aa6b450c5ffb23f16ec1c926e/href">https://medium.com/media/ed3d461aa6b450c5ffb23f16ec1c926e/href</a></iframe><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*B2wpwLcYjVq-HcfPRZWHBQ.png" /><figcaption>Panoramic Spherical image and video</figcaption></figure><h4>Resources :</h4><ul><li><a href="https://github.com/simgekeser/Hms-panorama-kit">simgekeser/Hms-panorama-kit</a></li><li><a href="https://developer.huawei.com/consumer/en/doc/development/HMSCore-Guides-V5/introduction-0000001050042264-V5">Document</a></li><li><a href="https://developer.huawei.com/consumer/en/codelab/HMSPanoramaKit/index.html#0">Panorama Kit</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4edee7f884a6" width="1" height="1" alt=""><hr><p><a href="https://medium.com/huawei-developers/panorama-kit-4edee7f884a6">Panorama 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>
        <item>
            <title><![CDATA[HMS Identity Kit | Adres Yönetimi]]></title>
            <link>https://medium.com/huawei-developers-tr/hms-identity-kit-adres-y%C3%B6netimi-e19c3ba4ced1?source=rss-25ee4ead7a54------2</link>
            <guid isPermaLink="false">https://medium.com/p/e19c3ba4ced1</guid>
            <category><![CDATA[huawei-mobile-service]]></category>
            <category><![CDATA[identity-kit]]></category>
            <category><![CDATA[hms]]></category>
            <category><![CDATA[hms-core]]></category>
            <category><![CDATA[huawei-developers]]></category>
            <dc:creator><![CDATA[Simge Keser]]></dc:creator>
            <pubDate>Fri, 11 Sep 2020 12:11:33 GMT</pubDate>
            <atom:updated>2020-09-11T12:11:33.140Z</atom:updated>
            <content:encoded><![CDATA[<p>Herkese merhaba, HUAWEI Identity Kit hakkında sizler için bir makale hazırladım. Identity kiti uygulamalarımıza nasıl entegre edeceğimizi adım adım açıklayacağım. Makalenin sonunda sizlerde identity kiti kullanmanın aslında ne kadar kolay olduğunu göreceksiniz. Dilerseniz, Identity kiti tanımakla başlayalım :)</p><p><strong>HUAWEI Identity Kit</strong>, kullanıcılar için adres ekleme, düzenleme, silme ve sorgulama gibi adres yönetimi hizmetleri sağlar ve kullanıcıların ekrana tek bir dokunuşla uygulamaların adreslerine erişmesine izin vermesine olanak tanır.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KBOR3O4oiMXKw-JxzO3D5Q.png" /></figure><h4>Identity Kitini neden kullanmalıyız?</h4><p>Uygulamanız, isim, iletişim ve ayrıntılı adres dahil olmak üzere kullanıcının adresini kullanması gerektiğinde, <strong>HUAWEI Identity Kit API</strong>’sini çağırır, kullanıcıdan bir adres seçmesini ister ve seçilen adresi alır. Örneğin, ürünü teslim etmek için kullanıcının adres bilgilerine erişmesi geren bir alışveriş uygulamasını düşünebilirsiniz. HUAWEI Identity Kit tarafından sağlanan<strong> 3 ana hizmet </strong>vardır. Bunlar :</p><pre><strong>Adres Yönetimi:</strong> kullanıcıların adres girmesine, düzenlemesine ve aramasına olanak tanır.</pre><pre><strong>Adres Erişimi:</strong> Uygulamanızın, kullanıcıdan izin aldıktan sonra doğrudan kullanıcı adreslerine ulaşmasına izin vererek adres yönetimi verimliliğini artırır.</pre><pre><strong>Adres Seçimi:</strong> kullanıcıların adresleri rahatça ayarlamasına ve seçmesine olanak tanır.</pre><h4>Önemli notlar:</h4><ul><li>Bir kullanıcı, <strong>HUAWEI ID</strong> kullanarak oturum açmadan <strong>HUAWEI Identity Kit </strong>tarafından sağlanan fonksiyonları kullanmaya çalışırsa, Identity Kit önce HUAWEI ID kaydolma veya oturum açma sayfasını görüntüler. Kullanıcı, HUAWEI Identity kit tarafından sağlanan methodları yalnızca kayıtlı bir HUAWEI ID kullanarak oturum açtıktan sonra kullanabilir.</li><li><strong>Maksimum 10 kullanıcı adresine </strong>izin verilir.</li><li>Account kitini entegre etmeniz gerekmez, ancak uygulama kullanıcılarınızın HUAWEI Identity Kit tarafından sağlanan işlevleri kullanabilmeleri için HUAWEI Kimlikleriyle <strong>HMS Core’da (APK) </strong>oturum açmaları gerekir.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/752/1*L3vKhlsyEKfoZSrW6Hz6Fg.png" /></figure><h4>Servis Avantajları</h4><ul><li><strong>Kolay erişim </strong>: Adres seçim hizmetini entegre etmek için 1 arayüz.</li><li><strong>Geniş kapsam alanı</strong> : 170+ ülke ve bölge.</li><li><strong>Gizlilik koruması </strong>: Avrupa GDPR düzenlemelerine sıkı uyum.</li></ul><h4>Desteklenen Konumlar</h4><p>Desteklenen konumları aşağıdaki tabloda görebilirsiniz.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/309/1*EQsTq9RkVjpqW3yWJZqPsg.png" /></figure><h4>Yazılım gereksinimleri</h4><ul><li>Android Studio (3.0 or later)</li><li>Java SDK (1.7 or later)</li><li>HMS Core (APK) (4.0.0.300 or later)</li><li>HMS Core SDK (4.0.0.300 or later)</li></ul><h3><strong>Uygulama Aşamaları</strong></h3><h4>1- Huawei ID ile giriş yapma, kaydolma</h4><p>İlk adım olarak Huawei developer hesabınız ile giris yapmanız gerekiyor, eger hesabınız yoksa developer hesabı registration and verification işlemleri için bu sayfadan detaylı bilgiye ulaşabilirsiniz.</p><p><a href="https://developer.huawei.com/consumer/en/doc/10104">Document</a></p><h4><strong>2- Proje oluşturma ve HMS Core SDK entegrasyonu</strong></h4><p>HMS Core Sdk’yi projeye entegre etmek ve AppGallery Connect’te yeni bir proje oluşturma hakkında daha fazla bilgi elde etmek icin aşağıdaki bağlantıdan adımları izleyebilirsiniz.</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><h4>Identity Kiti Projeye Ekleme</h4><p>Android Studio&#39;dan uygulama dizinine build.gradle&#39;a Identity Kit sdk eklememiz gerekir.</p><pre><strong>implementation &#39;com.huawei.hms:identity:4.0.4.300&#39;</strong></pre><blockquote><strong>Önemli </strong>=&gt;Project Settings sayfasında, yapılandırma dosyasını <strong>agconnect-services.json</strong> öğesine tıklayarak indiriyoruz ve <strong>agconnect-services.json</strong> dosyasını uygulamaya ekliyoruz.</blockquote><p>Identity Kitini kullanmak için gerekli hazırlıkları tamamladık. Şimdi fonksiyonları nasıl kullanacağımızı görelim.</p><h4>Kullanıcı Adresi Edinme</h4><p>Bu API, uygulamanızın ad, iletişim ve ayrıntılı adres gibi kullanıcının adresle ilgili bilgilerini kullanması gerektiğinde adres seçim sayfasını görüntülemek için kullanılır. Kullanıcı sayfadaki bir adresi seçtikten sonra adresi uygulamaya geri döndürür.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/855ffc1fe309acc8fd01a77c1b385051/href">https://medium.com/media/855ffc1fe309acc8fd01a77c1b385051/href</a></iframe><p><strong>getUserAddress (UserAddressRequest req)</strong>: API, bir kullanıcıdan bir adres ister. Bu, kullanıcının uygulamanızı paylaşmak için tek bir adres seçmek isteyip istemediğine karar vermesine veya alternatif olarak bir adresi paylaşmayı tamamen reddetmesine olanak tanıyan bir activity başlatır. Yanıt olarak, Identity kiti success veya failure sonucunu döndürür. Sonuç başarılıysa, <strong>startActivityForResult () </strong>methodu çağrılır ve adres seçim sayfası görüntülenir.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/301ef7e1324f58e271220574d93a600b/href">https://medium.com/media/301ef7e1324f58e271220574d93a600b/href</a></iframe><p>Kullanıcı bir adresi seçtikten sonra, döndürülen sonuçtan adresi almak için sayfanın <strong>onActivityResult() methodunda </strong>UserAddress’in parseIntent yöntemini çağırabilirsiniz.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/b793ca2711bef0db7f01a0b57a3003a4/href">https://medium.com/media/b793ca2711bef0db7f01a0b57a3003a4/href</a></iframe><p>Şimdi, Identity Kitini uygulamanıza entegre ettiniz. Gördüğünüz gibi HMS Identityt kitini entegre etmek oldukça kolay :) Herhangi bir sorunuz olursa, benimle iletişime geçebilirsiniz :)</p><h4>Kaynaklar</h4><ul><li><a href="https://developer.huawei.com/consumer/en/doc/development/HMSCore-Guides/introduction-000000105004047">Document</a></li><li><a href="https://developer.huawei.com/consumer/en/codelab/HMSIdentityKit/index.html#0">Identity Kit</a></li></ul><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FgXxrD8YWmyQ%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DgXxrD8YWmyQ&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FgXxrD8YWmyQ%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/e37763cc9c1d33028969cb71b0370f99/href">https://medium.com/media/e37763cc9c1d33028969cb71b0370f99/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e19c3ba4ced1" width="1" height="1" alt=""><hr><p><a href="https://medium.com/huawei-developers-tr/hms-identity-kit-adres-y%C3%B6netimi-e19c3ba4ced1">HMS Identity Kit | Adres Yönetimi</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[HMS Identity Kit |Address Management and Address Selection]]></title>
            <link>https://medium.com/huawei-developers/hms-identity-kit-address-management-and-address-selection-39070e9057e6?source=rss-25ee4ead7a54------2</link>
            <guid isPermaLink="false">https://medium.com/p/39070e9057e6</guid>
            <category><![CDATA[address-management]]></category>
            <category><![CDATA[huawei-developers]]></category>
            <category><![CDATA[hms]]></category>
            <category><![CDATA[identity-kit]]></category>
            <category><![CDATA[huawei-mobile-service]]></category>
            <dc:creator><![CDATA[Simge Keser]]></dc:creator>
            <pubDate>Fri, 11 Sep 2020 10:46:42 GMT</pubDate>
            <atom:updated>2020-09-11T12:49:27.249Z</atom:updated>
            <content:encoded><![CDATA[<p>Hello everyone, I have prepared an article for you about <strong>HUAWEI Identity Kit</strong>. I will explain step by step how to integrate the Identity kit into our applications. You will see how easy it is to use identity kit at the end. Let’s start by getting to know the Identity kit.</p><p><strong>HUAWEI Identity Kit</strong> provides address management services for users, including adding, editing, deleting, and querying addresses, and enables the users to grant the permission for apps to access their addresses through a single tap on the screen.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KBOR3O4oiMXKw-JxzO3D5Q.png" /></figure><h4>Why should we use the Identity Kit?</h4><p>When your app needs to use the user’s address including name, contact and detailed address, for example to deliver, it calls the HUAWEI Identity Kit API, prompts the user to select an address, and retrieves the selected address.</p><p>There are <strong>3 main services</strong> provided by HUAWEI Identity Kit.</p><pre><strong>Address Management </strong>: allows users to enter, edit and search addresses<br><strong>Address Access : </strong>Increases address management efficiency by allowing your app to reference user addresses directly after the user gets permission.<br><strong>Address Selection :</strong> allows users to conveniently set and select the address.</pre><h4>Important Notes:</h4><ul><li>If a user tries to use functions provided by the <strong>HUAWEI Identity Kit</strong> without logging in using <strong>HUAWEI ID</strong>, Identity Kit displays the HUAWEI ID registration or sign-in page first. The user can use the functions provided by HUAWEI Identity Kit only after signing in using a registered HUAWEI ID.</li><li>A maximum of 10 user addresses are allowed.</li><li>You don’t need to integrate account kit however, your app users need to sign in to HMS Core (APK) with their HUAWEI ID before they can use the functions provided by HUAWEI Identity Kit.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/752/1*L3vKhlsyEKfoZSrW6Hz6Fg.png" /></figure><h4>Service Advantages</h4><ul><li><strong><em>Easy access</em></strong><em>: 1 interface to integrate address selection service.</em></li><li><strong><em>Extensive coverage</em></strong><em> : 170+ countries and regions.</em></li><li><strong><em>Privacy protection</em></strong><em> : Strict compliance with European GDPR regulations and compliant use of address data.</em></li></ul><h4>Supported Locations</h4><p>You can see the supported locations in the table below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/309/1*EQsTq9RkVjpqW3yWJZqPsg.png" /></figure><h4>Software Requirements</h4><ul><li>Android Studio (3.0 or later)</li><li>Java SDK (1.7 or later)</li><li>HMS Core (APK) (4.0.0.300 or later)</li><li>HMS Core SDK (4.0.0.300 or later)</li></ul><h3>Implementation</h3><p>Before you get started, you must register as a HUAWEI developer and complete identity verification on the <a href="https://developer.huawei.com/consumer/en">HUAWEI Developer</a> website. For details, please refer to <a href="https://developer.huawei.com/consumer/en/devservice/doc/10104">Register a HUAWEI ID</a>.</p><h4>Integration HMS Core Sdk</h4><p>After that, follow the steps in the link below to integrate HMS Core Sdk into the project and for more details about creating a new project on AppGallery Connect .</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><h4>Add the Identity Kit to Project</h4><p>You need to add the Identity Kit sdk to build.gradle in the app directory from Android Studio.</p><pre><strong>implementation &#39;com.huawei.hms:identity:4.0.4.300&#39;</strong>.</pre><blockquote>Don’t forget =&gt; On the <strong>Project Setting </strong>page, click agconnect-services.json to download the configuration file and copy the <strong>agconnect-services.json </strong>file to the app directory.</blockquote><p>Now,we have completed the necessary preparations to use the Identity Kit . Let’s see how to use the functions.</p><h4>Obtaining a User Address</h4><p>This API is used to display the address selection page when your app needs to use the user’s address-related information, such as name, contact, and detailed address. After the user selects an address on the page, it returns the address to the app.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/855ffc1fe309acc8fd01a77c1b385051/href">https://medium.com/media/855ffc1fe309acc8fd01a77c1b385051/href</a></iframe><p><strong>getUserAddress(UserAddressRequest request)</strong>: API request an address from a user. This will invoke an activity that allows the user to decide if they want to select a single address to share your app, or alternatively decline to share an address at all. In response, Identity kit will return success or failure result. If result is success , the <strong>startActivityForResult()</strong> method is called and the address selection page is displayed.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/301ef7e1324f58e271220574d93a600b/href">https://medium.com/media/301ef7e1324f58e271220574d93a600b/href</a></iframe><p>After the user selects an address, call the <strong>parseIntent</strong> method of <strong>UserAddress</strong> in <strong>onActivityResult</strong> of the page to obtain the address from the returned result.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/b793ca2711bef0db7f01a0b57a3003a4/href">https://medium.com/media/b793ca2711bef0db7f01a0b57a3003a4/href</a></iframe><p>Now, you integrated identity kit into your app. As you can see, it is quite easy to integrate HMS Identity kit :) Please, let me know if you have any questions :)</p><h4>RESOURCES</h4><ul><li><a href="https://developer.huawei.com/consumer/en/doc/development/HMSCore-Guides/introduction-0000001050040471">Document</a></li><li><a href="https://developer.huawei.com/consumer/en/codelab/HMSIdentityKit/index.html#0">Identity Kit</a></li></ul><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FgXxrD8YWmyQ%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DgXxrD8YWmyQ&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FgXxrD8YWmyQ%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/e37763cc9c1d33028969cb71b0370f99/href">https://medium.com/media/e37763cc9c1d33028969cb71b0370f99/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=39070e9057e6" width="1" height="1" alt=""><hr><p><a href="https://medium.com/huawei-developers/hms-identity-kit-address-management-and-address-selection-39070e9057e6">HMS Identity Kit |Address Management and Address Selection</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[HMS Safety Detect Kullanımı]]></title>
            <link>https://medium.com/huawei-developers-tr/hms-safety-detect-kullan%C4%B1m%C4%B1-2529409bb670?source=rss-25ee4ead7a54------2</link>
            <guid isPermaLink="false">https://medium.com/p/2529409bb670</guid>
            <category><![CDATA[huawei-mobile-service]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[huawei-developers]]></category>
            <category><![CDATA[hms-core]]></category>
            <category><![CDATA[safety-defect]]></category>
            <dc:creator><![CDATA[Simge Keser]]></dc:creator>
            <pubDate>Mon, 07 Sep 2020 11:25:43 GMT</pubDate>
            <atom:updated>2020-09-15T14:00:40.716Z</atom:updated>
            <content:encoded><![CDATA[<p>Merhaba arkadaşlar, sizlere uygulamalarımızın güvenliğini başarılı ve güvenilir bir şekilde sağlayan <strong>Safety Detect</strong> hakkında bir yazı hazırladım. Safety Detect’i uygulamalarınıza nasıl ekleyeceğinizden, nasıl kullanacağınızdan, özelliklerinden ve detaylarından bahsedeceğim.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9Y83AY3_xlA_KbKoz-nFlg.jpeg" /></figure><p>Safety Detect kötü amaçlı yazılımların web sitenizde kötüye kullanım faaliyetlerine girmesini önlemek için güçlü güvenlik önlemleri oluşturur. <br>Safety Detect güvenlik tehditlerine karşı etkin bir şekilde korur ve sistem bütünlüğü denetimi (<strong>SysIntegrity</strong>), uygulama güvenlik denetimi (<strong>AppsCheck</strong>), kötü amaçlı URL denetimi (<strong>URLCheck</strong>), sahte kullanıcı algılama (<strong>UserDetect</strong>) ve kötü amaçlı Wi-Fi algılama (<strong>WifiDetect</strong>) özelliklerini içerir. Kısaca :</p><pre><strong>SysIntegrity API</strong>: Uygulamanızı çalıştıran cihazın güvenli olup olmadığını, örneğin rootlu olup olmadığını kontrol eder.</pre><pre><strong>AppsCheck API</strong>: Kötü amaçlı uygulamaları kontrol eder ve size kötü amaçlı uygulamaların bir listesini sağlar.</pre><pre><strong>URLCheck API:</strong> Belirli bir URL&#39;nin tehdit türünü belirler.</pre><pre><strong>UserDetect API:</strong> Uygulamanızın sahte bir kullanıcıyla etkileşimde bulunup bulunmadığını kontrol eder.</pre><pre><strong>WifiDetect API:</strong> Bağlanılacak Wi-Fi&#39;nin güvenli olup olmadığını kontrol eder.</pre><h4>Bölgeler ve Diller</h4><p>Ayrıntılar için desteklenen <a href="https://developer.huawei.com/consumer/en/doc/development/HMS-Guides/safetydetect-countrycode">bölgelere</a> ve <a href="https://developer.huawei.com/consumer/en/doc/development/HMS-Guides/hmssdk_supported_language">dillere</a> bakabilirsiniz.</p><blockquote>UserDetect yalnızca Çin dışında kullanılabilir.<br>WiFi Detect yalnızca Çin içinde kullanılabilir.</blockquote><p><strong>1- Huawei ID ile giriş yapma, kaydolma</strong></p><p>İlk adım olarak Huawei developer hesabınız ile giris yapmanız gerekiyor, eger hesabınız yoksa developer hesabı registration and verification işlemleri için bu sayfadan detaylı bilgiye ulaşabilirsiniz.</p><p><a href="https://developer.huawei.com/consumer/en/doc/10104">Document</a></p><p><strong>2- Proje oluşturma ve HMS Core SDK entegrasyonu</strong></p><p>HMS Core Sdk’yi projeye entegre etmek ve AppGallery Connect’te yeni bir proje oluşturma hakkında daha fazla bilgi elde etmek icin aşağıdaki bağlantıdan adımları izleyebilirsiniz.</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><strong>3- Safety Detect’i etkinleştirme</strong></p><p>ManageAPIs bölümünde Safety Detect alanını etkinleştirelim ve uygulama dizininde build.gradle dosyasında dependencies kısmına Safety Detect’i ekleyelim.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*kU42xO_jTyT51eBg.png" /></figure><pre>implementation &#39;com.huawei.hms:safetydetect:5.0.2.300&#39;</pre><p>Son olarak, Project Settings sayfasında, yapılandırma dosyasını agconnect-services.json öğesine tıklayarak indiriyoruz ve agconnect-services.json dosyasını uygulamaya ekliyoruz. Safety Detect’i kullanmak için gerekli hazırlıkları tamamladık. Şimdi fonksiyonları nasıl kullanacağımızı görelim.</p><h4>SysIntegrity API ekleme</h4><p>SysIntegrity API, bir cihazın sistem bütünlüğünü kontrol etmek için çağrılır. Cihaz güvenli değilse uygun önlemler alınır. API, Trusted Execution Environment (TEE) ‘de güvenli önyükleme sürecindeki sistem bütünlüğünü dinamik olarak değerlendirir. Kontrol sonuçları oldukça güvenilirdir. Örneğin, telefonun root erişimine sahip olup olmadığı bu API ile kontrol edilebilir.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/5109611ec659475c848c6830752a5ae0/href">https://medium.com/media/5109611ec659475c848c6830752a5ae0/href</a></iframe><p>SysIntegrity API’sini çağırırken, kontrol sonucunda yer alacak bir nonce değeri aktarmanız gerekir. Döndürülen sonucun isteğinize uygun olup olmadığını ve tekrar saldırılarıyla karşılaşıp karşılaşmadığını belirlemek için nonce değerini kontrol edebilirsiniz.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/907/1*X9Xyu-VHPXcSzAdJwsoaaA.png" /></figure><p>SysIntegrity API&#39;nin iki input parametresi vardır. İlki <strong>nonce </strong>değeridir ve diğeri <strong>appId&#39;</strong>dir. Huawei Mobile Services (APK), sertifikayı doğrulamak için kontrol sonucunu Huawei sunucusuna gönderir ve sonucu size <strong>SysIntegrityResp </strong>nesnesi aracılığıyla gönderir. <strong>GetResult </strong>() yöntemi ile yanıtı JSON Web Signature (JWS) formatında alabiliriz. Ayrıştırma işlemlerini yaptıktan sonra, <strong>basicIntegrity</strong>&#39;nin değerini alıyoruz.</p><blockquote>Kontrol sonucunda <strong>basicIntegrity</strong>&#39;nin değeri yanlışsa, güvenlik gereksinimlerinize göre kullanıcılara riskleri hatırlatıp hatırlatmayacağınıza karar verebilirsiniz.</blockquote><h4>Apps Check API ekleme</h4><p>Kötü amaçlı uygulamaların bir listesini edinebilir ve uygulamanızın davranışını riske göre kısıtlayıp kısıtlayamayacağınızı değerlendirebilirsiniz. <strong>AppsCheck </strong>API, geliştirici uygulamalarına HUAWEI cep telefonlarındaki kötü amaçlı uygulamaların bir listesini sunar.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/972da374169fed2be5c98d09926f5e46/href">https://medium.com/media/972da374169fed2be5c98d09926f5e46/href</a></iframe><p>Kötü amaçlı uygulamaların bir listesini almak için doğrudan <strong>SafetyDetectClient</strong>’in <strong>getMaliciousAppsList </strong>() fonksiyonunu çağırabilirsiniz. Kötü amaçlı uygulamanız yoksa, “There are no known potentially malicious apps installed” logu gösterilir.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/862/1*aTECPON_4OJYmnMwmy0cmg.png" /></figure><h4>User Detect ekleme</h4><p>Bu API, ilgili verileri toplar ve mevcut kullanıcının sahte olup olmadığını kontrol etmek için gerçek zamanlı risk analizi motoruna yükler. Bir kullanıcı şüpheli veya riskli bir kullanıcıysa, ikincil doğrulama için kullanıcıya bir doğrulama kodu gönderilir.</p><p><strong>(1)</strong> HMS Core Safety Detect çağrılır.</p><p><strong>(2) </strong>Safety Detect, cihaz ortamındaki riskleri değerlendirir. Risk seviyesi orta veya yüksekse, Safety Detect captcha gerektirir ve uygulamanıza bir response token döndürür.</p><p><strong>(3)</strong> Uygulamanız response tokenı uygulama sunucusuna gönderir.</p><p><strong>(4)</strong> Uygulama sunucusu, detection sonuçlarını istemek için response tokenı Safety Detect sunucusuna gönderir.</p><p>Bir detection isteği başlatmak için <strong>userDetection </strong>yöntemini çağırmanız gerekir. Genellikle bu yöntem, bir kullanıcı bir UI kontrolüne (bir buton gibi) dokunduğunda tetiklenir. UserDetection yöntemini çağırmak için aşağıdaki adımları uygulayın:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/875f97c6559a6cc36930d8d682efcf0d/href">https://medium.com/media/875f97c6559a6cc36930d8d682efcf0d/href</a></iframe><p><strong>OnSuccess </strong>() fonksiyonu UserDetect API’de çalıştırılırsa, kullanıcı human-machine kimlik doğrulamasını tamamlamıştır. Ancak yine de arka plan sunucusunda kullanıcının response tokenını doğrulamanız gerekir. <strong>Detection Result</strong> elde etmek için, bir <strong>access token </strong>almanız ve detection sonucunu almak için cloud-side API’sini çağırmanız gerekir. Detayları aşağıda görebilirsiniz.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/85122b923bc07781c54e6f41cd7a966f/href">https://medium.com/media/85122b923bc07781c54e6f41cd7a966f/href</a></iframe><h4>Wifi Detect Api ekleme</h4><p>Uygulamanız, <strong>Wifi Detect Api</strong> ile bağlanarak Wi-Fi üzerindeki ARP saldırılarını, man-in-the-middle saldırılarını, DNS ele geçirme saldırılarını ve diğer saldırıları algılayabilir. Saldırılar tespit edilirse, uygulamanız kullanıcı işlemini kesintiye uğratabilir veya kullanıcılardan işleme devam edip etmeyeceklerini onaylamalarını isteyebilir.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/6d8728960e367b2cf2e36eff70d46fed/href">https://medium.com/media/6d8728960e367b2cf2e36eff70d46fed/href</a></iframe><pre><strong>getWifiDetectStatus() fonksiyonundan dönen değerler</strong><br>1:<em> Wi-Fi durumu alınamadı.<br></em>0<em>: Wi-Fi bağlı değil.<br></em>1<em>: Bağlanan Wi-Fi güvenlidir.<br></em>2<em>: Bağlı Wi-Fi güvenli değil</em></pre><h4>URL Detect API ekleme</h4><p>Bir URL&#39;yi ziyaret ettiğinizde, bu API, URL&#39;nin kötü amaçlı olup olmadığını kontrol eder. Eğer kötü amaçlı ise, riski değerlendirebilir ve kullanıcıyı risk konusunda uyarabilir veya URL&#39;yi engelleyebilirsiniz.<br><strong>Ana adımlar:</strong><br>1- URLCheck API&#39;yi başlatın.<br>2- Request URL check.<br>3- URL check bölümünü kapatın.<br>4- Result kodunu işleyin.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/6d43057161137cad1774e6fbbd6a111e/href">https://medium.com/media/6d43057161137cad1774e6fbbd6a111e/href</a></iframe><p>URL check response değerini almak için <strong>URLCheckResponse </strong>nesnesinin <strong>getUrlCheckResponse</strong>() methodunu çağırmanız gerekir. Fonksiyon , algılanan tüm URL tehdit türlerinin listesini içeren <strong>List &lt;UrlCheckThreat&gt; </strong>öğesini döndürür. Liste boşsa, herhangi bir tehdit tespit edilmemiştir. Aksi takdirde, belirli tehdit kodunu almak için <strong>UrlCheckThreat&#39;in</strong> <strong>getUrlCheckResult</strong> () methodunu çağırabilirsiniz. Daha fazla ayrıntı için <a href="https://developer.huawei.com/consumer/en/doc/development/HMS-Guides/SafetyDetectURLCheckAPIDevelopment">bu bağlantıyı takip edin.</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tGskcMvXFzrbmrtlc6XIFw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wKtDcz1Inm8vI9Xn0zszTA.png" /></figure><h4>RECOURCES</h4><ul><li><a href="https://github.com/simgekeser/Hms-Safety-Detect-Example">simgekeser/Hms-Safety-Detect-Example</a></li><li><a href="https://developer.huawei.com/consumer/en/doc/development/HMS-Guides/SafetyDetect_AbouttheService">Document</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2529409bb670" width="1" height="1" alt=""><hr><p><a href="https://medium.com/huawei-developers-tr/hms-safety-detect-kullan%C4%B1m%C4%B1-2529409bb670">HMS Safety Detect Kullanımı</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>
    </channel>
</rss>