{"id":312330,"date":"2020-10-30T21:01:35","date_gmt":"2020-10-30T21:01:35","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=312330"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=312330","title":{"rendered":"10 \u0432\u043e\u043f\u0440\u043e\u0441\u043e\u0432 \u043a \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0435 HMS \u043f\u043e \u0440\u0430\u0431\u043e\u0442\u0435 \u0441 \u0433\u0438\u0431\u0440\u0438\u0434\u043d\u044b\u043c\u0438 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f\u043c\u0438, AppGallery \u0438 \u044d\u043c\u0443\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044e \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u043e\u0432 Huawei"},"content":{"rendered":"\n<div class=\"post__text post__text-html post__text_v1\" id=\"post-content-body\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/251\/d4e\/9ab\/251d4e9ab0a1a8b9b18326b97ebb56de.jpg\"><\/p>\n<p>  \u041f\u0440\u0438\u0432\u0435\u0442, \u0425\u0430\u0431\u0440! \u0417\u0430 \u0433\u043e\u0434 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0441\u0435\u0440\u0432\u0438\u0441\u043e\u0432 \u0432 \u044d\u043a\u043e\u0441\u0438\u0441\u0442\u0435\u043c\u0435 Huawei Mobile Services (HMS). \u0432\u044b\u0440\u043e\u0441\u043b\u043e \u0441 9 \u0434\u043e 31, \u0438 \u0443 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u0432 \u0441\u0442\u0430\u043b\u043e \u0432\u043e\u0437\u043d\u0438\u043a\u0430\u0442\u044c \u0432\u0441\u0451 \u0431\u043e\u043b\u044c\u0448\u0435 \u0432\u043e\u043f\u0440\u043e\u0441\u043e\u0432 \u043f\u043e \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0435 \u0433\u0438\u0431\u0440\u0438\u0434\u043d\u044b\u0445 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439, \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044e \u0441 AppGallery, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044e \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0445 \u0441\u043b\u0443\u0436\u0431 \u0438 \u043a\u0438\u0442\u043e\u0432. \u041e\u0441\u043d\u043e\u0432\u043d\u044b\u0435 \u043f\u043b\u043e\u0449\u0430\u0434\u043a\u0438 \u043d\u0430\u0448\u0435\u0433\u043e \u043e\u0431\u0449\u0435\u043d\u0438\u044f \u0441 \u043c\u0438\u0440\u043e\u0432\u044b\u043c \u0441\u043e\u043e\u0431\u0449\u0435\u0441\u0442\u0432\u043e\u043c \u2014 \u044d\u0442\u043e <a href=\"https:\/\/stackoverflow.com\/questions\/tagged\/huawei-mobile-services\">Stackoverflow<\/a>, <a href=\"https:\/\/www.reddit.com\/r\/HuaweiDevelopers\/\">Reddit<\/a>, <a href=\"https:\/\/forum.xda-developers.com\/android\/huawei-developers\">XDA-Developers<\/a> \u0438 <a href=\"https:\/\/forums.developer.huawei.com\/forumPortal\/en\/home?tagId=0802330397973420002\">\u0440\u0430\u0437\u0434\u0435\u043b \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0438<\/a> \u043d\u0430 \u043f\u043e\u0440\u0442\u0430\u043b\u0435 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u0432 Huawei. \u0421\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u043e \u0434\u043b\u044f \u0442\u0435\u0445, \u043a\u0442\u043e \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u0443\u0435\u0442\u0441\u044f \u043d\u0430\u0448\u0435\u0439 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u043e\u0439, \u043c\u044b \u0441\u043e\u0431\u0440\u0430\u043b\u0438 \u0441 \u044d\u0442\u0438\u0445 \u043f\u043b\u043e\u0449\u0430\u0434\u043e\u043a 10 \u0432\u043e\u043f\u0440\u043e\u0441\u043e\u0432 \u043f\u043e \u0440\u0430\u0431\u043e\u0442\u0435 \u0441 Huawei Mobile Services.\u00a0<br \/>  <a name=\"habracut\"><\/a>  <\/p>\n<h2>1. \u0411\u0443\u0434\u0435\u0442 \u043b\u0438 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c React-native \u0438 Firebase SDK \u043d\u0430 \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0430\u0445 Huawei \u0431\u0435\u0437 Google Service \u0438 \u0431\u0435\u0437 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0439 \u043a\u043e\u0434\u0430?\u00a0<\/h2>\n<p>  \u0414\u0430, \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043d\u0430 React-native \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0431\u0435\u0437 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0439, \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c APK \u0434\u043b\u044f \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u0432 \u0433\u0430\u043b\u0435\u0440\u0435\u044e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 Huawei. \u0421\u00a0 Firebase SDK \u0431\u0443\u0434\u0435\u0442 \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0441\u043b\u043e\u0436\u043d\u0435\u0435. \u0420\u0430\u0431\u043e\u0442\u043e\u0441\u043f\u043e\u0441\u043e\u0431\u043d\u043e\u0441\u0442\u044c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0437\u0430\u0432\u0438\u0441\u0438\u0442 \u043e\u0442 \u0441\u043b\u0443\u0436\u0431, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0432\u044b \u043f\u044b\u0442\u0430\u0435\u0442\u0435\u0441\u044c \u0432\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0432 \u0441\u0432\u043e\u0451 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435. \u0422\u0430\u043a, \u0432\u0445\u043e\u0434 \u0432 Google \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043c\u043e\u0434\u0443\u043b\u044f \u0430\u0443\u0442\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438 Firebase \u043d\u0435 \u0431\u0443\u0434\u0435\u0442 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0442\u044c\u0441\u044f \u043d\u0430 \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0430\u0445, \u0433\u0434\u0435 \u043d\u0435\u0442 Google Mobile Services, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u043d\u0430 Huawei Mate 30 Pro.<\/p>\n<p>  \u0415\u0441\u043b\u0438 \u0432\u044b \u0445\u043e\u0442\u0438\u0442\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043e\u0434\u0438\u043d APK \u043a\u0430\u043a \u0434\u043b\u044f GMS, \u0442\u0430\u043a \u0438 \u0434\u043b\u044f HMS, \u0432\u0430\u043c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0442\u044c \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e\u0441\u0442\u044c \u0441\u043b\u0443\u0436\u0431\u044b.\u00a0<br \/>  \u0414\u043b\u044f GMS:<\/p>\n<pre><code class=\"kotlin\">val gmsAvailable = GooglePlayServicesUtil.getInstance().isGooglePlayServicesAvailable(mContext)<\/code><\/pre>\n<p>  \u0414\u043b\u044f HMS:<\/p>\n<pre><code class=\"kotlin\">val hmsAvailable = HuaweiApiAvailability.getInstance().isHuaweiMobileServicesAvailable(mContext)<\/code><\/pre>\n<p>  \u041f\u0440\u0438 \u043f\u043e\u043f\u044b\u0442\u043a\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c Google Login, \u0438\u043b\u0438 Huawei Login, \u0438\u043b\u0438 \u043b\u044e\u0431\u044b\u0435 \u0434\u0440\u0443\u0433\u0438\u0435 \u0441\u0435\u0440\u0432\u0438\u0441\u044b:<\/p>\n<pre><code class=\"kotlin\">if gmsAvailable { \u00a0\u00a0\u00a0\/\/ execute GMS Code } else if hmsAvailable { \u00a0\u00a0\u00a0\/\/ execute HMS Code } <\/code><\/pre>\n<p>  <\/p>\n<h2>2. \u041a\u0430\u043a\u043e\u0432\u044b \u0440\u0435\u0430\u043b\u044c\u043d\u044b\u0435 \u0441\u043a\u0440\u044b\u0442\u044b\u0435 \u0440\u0430\u0441\u0445\u043e\u0434\u044b \u043d\u0430 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0443 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0439 \u044d\u043a\u043e\u0441\u0438\u0441\u0442\u0435\u043c\u044b?<\/h2>\n<p>  \u0420\u0430\u0441\u0445\u043e\u0434\u044b \u043d\u0430 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0443 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0432 HMS \u0437\u0430\u0432\u0438\u0441\u044f\u0442 \u043e\u0442 \u0442\u043e\u0433\u043e, \u043a\u0430\u043a \u0432\u044b \u043f\u0440\u043e\u0435\u043a\u0442\u0438\u0440\u0443\u0435\u0442\u0435 \u0441\u0438\u0441\u0442\u0435\u043c\u0443 \u0438 \u043a\u0430\u043a\u0438\u0435 \u0441\u0435\u0440\u0432\u0438\u0441\u044b \u0442\u0440\u0435\u0431\u0443\u044e\u0442\u0441\u044f \u0432 \u0432\u0430\u0448\u0435\u043c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0438. \u0412 \u0441\u0440\u0435\u0434\u043d\u0435\u043c \u0432\u0440\u0435\u043c\u044f \u0438\u043d\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u0438 \u043c\u043e\u0436\u0435\u0442 \u0432\u0430\u0440\u044c\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u043e\u0442 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u0445 \u0447\u0430\u0441\u043e\u0432 \u0434\u043e \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u0445 \u043d\u0435\u0434\u0435\u043b\u044c \u0432 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0438 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0430 \u0441\u0435\u0440\u0432\u0438\u0441\u043e\u0432 Google \u0438 Firebase \u0432 \u0438\u0441\u0445\u043e\u0434\u043d\u043e\u043c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0438.<\/p>\n<p>  \u0415\u0441\u043b\u0438 \u0432 \u0432\u0430\u0448\u0435\u043c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0438 \u043d\u0435\u0442 \u0438\u043d\u0442\u0435\u0433\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0445 GMS, \u0442\u043e \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0442\u044c \u0435\u0433\u043e \u0431\u0435\u0437 \u043a\u0430\u043a\u0438\u0445-\u043b\u0438\u0431\u043e \u0434\u043e\u0440\u0430\u0431\u043e\u0442\u043e\u043a \u2014 \u0441\u0435\u0440\u0432\u0438\u0441\u044b Facebook, Yandex \u0438 \u0434\u0440\u0443\u0433\u0438\u0435 \u0431\u0443\u0434\u0443\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c.<\/p>\n<h2>3. \u041a\u0430\u043a\u0438\u0435 \u0433\u0438\u0431\u0440\u0438\u0434\u043d\u044b\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442 HMS?\u00a0<\/h2>\n<p>  \u0421 \u0432\u0435\u0440\u0441\u0438\u0438 HMS Core 5.0.0 \u0443\u0432\u0435\u043b\u0438\u0447\u0435\u043d\u043e \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043a\u0438\u0442\u043e\u0432, \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u043c\u044b\u0445 \u0441\u0442\u043e\u0440\u043e\u043d\u043d\u0438\u043c\u0438 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0430\u043c\u0438:<br \/>  \u00a0<br \/>  Apache Cordova:<\/p>\n<ul>\n<li><a href=\"https:\/\/developer.huawei.com\/consumer\/en\/doc\/development\/HMS-Plugin-Guides\/about-the-service-0000001051006397\">Account Kit plugins for Cordova<\/a>  <\/li>\n<li><a href=\"https:\/\/developer.huawei.com\/consumer\/en\/doc\/development\/HMS-Plugin-Guides\/introduction-0000001050437673\">Ads Kit plugins for Cordova<\/a>  <\/li>\n<li><a href=\"https:\/\/developer.huawei.com\/consumer\/en\/doc\/development\/HMS-Plugin-Guides\/introduction-0000001050134725\">Analytics Kit plugin for Cordova<\/a>  <\/li>\n<li><a href=\"https:\/\/developer.huawei.com\/consumer\/en\/doc\/development\/HMS-Plugin-Guides\/introduction-0000001050132986\">In-App Purchases Kit plugin for Cordova<\/a>  <\/li>\n<li><a href=\"https:\/\/developer.huawei.com\/consumer\/en\/doc\/development\/HMS-Plugin-Guides\/introduction-0000001050140246\">Location Kit plugin for Cordova<\/a>  <\/li>\n<li><a href=\"https:\/\/developer.huawei.com\/consumer\/en\/doc\/development\/HMS-Plugin-Guides\/introduction-0000001050329204\">Map Kit plugins for Cordova<\/a>  <\/li>\n<li><a href=\"https:\/\/developer.huawei.com\/consumer\/en\/doc\/development\/HMS-Plugin-Guides\/introduction-0000001050765773\">ML Kit plugins for Cordova<\/a>  <\/li>\n<li><a href=\"https:\/\/developer.huawei.com\/consumer\/en\/doc\/development\/HMS-Plugin-Guides\/introduction-0000001050135701\">Push Kit plugin for Cordova<\/a>  <\/li>\n<li><a href=\"https:\/\/developer.huawei.com\/consumer\/en\/doc\/development\/HMS-Plugin-Guides\/introduction-0000001050260022\">Site Kit plugins for Cordova<\/a>  <\/li>\n<\/ul>\n<p>  React Native:<\/p>\n<ul>\n<li><a href=\"https:\/\/developer.huawei.com\/consumer\/en\/doc\/development\/HMS-Plugin-Guides\/about-the-service-0000001051086206\">Account Kit plugins for React Native<\/a>  <\/li>\n<li><a href=\"https:\/\/developer.huawei.com\/consumer\/en\/doc\/development\/HMS-Plugin-Guides\/introduction-0000001050196714\">Ads Kit plugins for React Native<\/a>  <\/li>\n<li><a href=\"https:\/\/developer.huawei.com\/consumer\/en\/doc\/development\/HMS-Plugin-Guides\/introduction-0000001050157956\">Analytics Kit plugin for React Native<\/a>  <\/li>\n<li><a href=\"https:\/\/developer.huawei.com\/consumer\/en\/doc\/development\/HMS-Plugin-Guides\/introduction-0000001050155802\">Health Kit plugin for React Native<\/a>  <\/li>\n<li><a href=\"https:\/\/developer.huawei.com\/consumer\/en\/doc\/development\/HMS-Plugin-Guides\/introduction-0000001050766239\">In-App Purchases Kit plugin for React Native<\/a>  <\/li>\n<li><a href=\"https:\/\/developer.huawei.com\/consumer\/en\/doc\/development\/HMS-Plugin-Guides\/introduction-0000001050142177\">Location Kit plugin for React Native<\/a>  <\/li>\n<li><a href=\"https:\/\/developer.huawei.com\/consumer\/en\/doc\/development\/HMS-Plugin-Guides\/introduction-0000001050143001\">Map Kit plugin for React Native<\/a>  <\/li>\n<li><a href=\"https:\/\/developer.huawei.com\/consumer\/en\/doc\/development\/HMS-Plugin-Guides\/introduction-0000001050726178\">ML Kit plugins for React Native<\/a>  <\/li>\n<li><a href=\"https:\/\/developer.huawei.com\/consumer\/en\/doc\/development\/HMS-Plugin-Guides\/introduction-0000001050157787\">Push Kit plugin for React Native<\/a>  <\/li>\n<li><a href=\"https:\/\/developer.huawei.com\/consumer\/en\/doc\/development\/HMS-Plugin-Guides\/introduction-0000001050176404\">Site Kit plugins for React Native<\/a>  <\/li>\n<\/ul>\n<p>  Xamarin:<\/p>\n<ul>\n<li><a href=\"https:\/\/developer.huawei.com\/consumer\/en\/doc\/development\/HMS-Plugin-Guides\/introduction-0000001050725712\">Account Kit plugins for Xamarin<\/a>  <\/li>\n<li><a href=\"https:\/\/developer.huawei.com\/consumer\/en\/doc\/development\/HMS-Plugin-Guides\/service-introduction-0000001050178531\">Ads Kit plugins for Xamarin<\/a>  <\/li>\n<li><a href=\"https:\/\/developer.huawei.com\/consumer\/en\/doc\/development\/HMS-Plugin-Guides\/introduction-0000001050139636\">Analytics Kit plugins for Xamarin<\/a>  <\/li>\n<li><a href=\"https:\/\/developer.huawei.com\/consumer\/en\/doc\/development\/HMS-Plugin-Guides\/introduction-0000001050143021\">Map Kit plugins for Xamarin<\/a>  <\/li>\n<li><a href=\"https:\/\/developer.huawei.com\/consumer\/en\/doc\/development\/HMS-Plugin-Guides\/introduction-0000001050142217\">Location Kit plugins for Xamarin<\/a>  <\/li>\n<li><a href=\"https:\/\/developer.huawei.com\/consumer\/en\/doc\/development\/HMS-Plugin-Guides\/introduction-0000001050138437\">Push Kit plugins for Xamarin<\/a>  <\/li>\n<li><a href=\"https:\/\/developer.huawei.com\/consumer\/en\/doc\/development\/HMS-Plugin-Guides\/introduction-0000001050135801\">Site Kit plugins for Xamarin<\/a>  <\/li>\n<\/ul>\n<p>  Flutter:<\/p>\n<ul>\n<li><a href=\"https:\/\/developer.huawei.com\/consumer\/en\/doc\/development\/HMS-Plugin-Guides\/introduction-0000001050766441\">Account Kit plugins for Flutter<\/a>  <\/li>\n<li><a href=\"https:\/\/developer.huawei.com\/consumer\/en\/doc\/development\/HMS-Plugin-Guides\/publisher-service-0000001050196431\">Ads Kit plugins for Flutter<\/a>  <\/li>\n<li><a href=\"https:\/\/developer.huawei.com\/consumer\/en\/doc\/development\/HMS-Plugin-Guides\/introduction-0000001050169136\">Analytics Kit plugins for Flutter<\/a>  <\/li>\n<li><a href=\"https:\/\/developer.huawei.com\/consumer\/en\/doc\/development\/HMS-Plugin-Guides\/introduction-0000001051001685\">In-App Purchases Kit plugin for Flutter<\/a>  <\/li>\n<li><a href=\"https:\/\/developer.huawei.com\/consumer\/en\/doc\/development\/HMS-Plugin-Guides\/introduction-0000001050191280\">Location Kit plugins for Flutter<\/a>  <\/li>\n<li><a href=\"https:\/\/developer.huawei.com\/consumer\/en\/doc\/development\/HMS-Plugin-Guides\/introduction-0000001050296908\">Map Kit plugins for Flutter<\/a>  <\/li>\n<li><a href=\"https:\/\/developer.huawei.com\/consumer\/en\/doc\/development\/HMS-Plugin-Guides\/introduction-0000001050176002\">Push Kit plugins for Flutter<\/a>  <\/li>\n<li><a href=\"https:\/\/developer.huawei.com\/consumer\/en\/doc\/development\/HMS-Plugin-Guides\/introduction-0000001050181259\">Site Kit plugins for Flutter<\/a>  <\/li>\n<\/ul>\n<p>  <\/p>\n<h2>4. \u041c\u043e\u0436\u043d\u043e \u043b\u0438 \u0441\u0447\u0438\u0442\u0430\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435 \u0441 \u0434\u0430\u0442\u0447\u0438\u043a\u0430 \u0433\u043b\u0443\u0431\u0438\u043d\u044b (TOF) \u043d\u0430 \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0430\u0445 Huawei?<\/h2>\n<p>  \u0414\u0430, \u044d\u0442\u043e \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u043f\u0440\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0438 <a href=\"https:\/\/developer.huawei.com\/consumer\/en\/ar\">AR Engine SDK<\/a>. Huawei AR Engine \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0438\u0432\u0430\u0435\u0442 \u0432\u044b\u0432\u043e\u0434 \u0441\u0435\u0442\u043a\u0438 \u0441\u0446\u0435\u043d\u044b \u0432 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u043c \u0432\u0440\u0435\u043c\u0435\u043d\u0438, \u0438 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0432\u043a\u043b\u044e\u0447\u0430\u0435\u0442 \u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u043e\u0433\u043e \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0430 \u0432 \u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0441\u0442\u0432\u0435. \u0422\u0440\u0451\u0445\u043c\u0435\u0440\u043d\u0430\u044f \u0441\u0435\u0442\u043a\u0430 \u0442\u0435\u043a\u0443\u0449\u0435\u0433\u043e \u0432\u0438\u0434\u0430 \u043a\u0430\u043c\u0435\u0440\u044b \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u043c\u043e\u0434\u0435\u043b\u0438 Honor V20 \u0438 P30Pro, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u043e\u0433\u0443\u0442 \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u044c \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043e \u0433\u043b\u0443\u0431\u0438\u043d\u0435, \u0430 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u043c\u0430\u044f \u0441\u0446\u0435\u043d\u0430 \u0441\u043a\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0441\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0439.\u00a0<\/p>\n<div class=\"spoiler\" role=\"button\" tabindex=\"0\">                         <b class=\"spoiler_title\">TOF \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u043d\u0430 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0445 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430\u0445:<\/b>                         <\/p>\n<div class=\"spoiler_text\">\n<ul>\n<li>\u0421\u0435\u0440\u0438\u044f P: P30 \/ P30Pro \/ P40 \/ P40Pro \/ P40Pro +  <\/li>\n<li>\u0421\u0435\u0440\u0438\u044f Mate: Mate20 \/ Mate20Pro \/ Mate20RS \/ Mate 20X \/ Mate20X (5G) \/ Mate30 \/ Mate30Pro \/ Mate30RS \/ Mate30 (5G) \/ Mate30Pro (5G) \/ Mate X \/ Mate XS  <\/li>\n<li>\u0421\u0435\u0440\u0438\u044f Nova: Nova6 \/ Nova6-5G \/ Nova7 \/ Nova7Pro  <\/li>\n<li>\u0421\u0435\u0440\u0438\u044f Honor: Honor V20 \/ Honor 20 \/ Honor 20Pro \/ Honor V30 \/ Honor V30Pro \/ Honor 30S \/ Honor 30 Pro \/ Honor 30 Pro +  <\/li>\n<li>\u0421\u0435\u0440\u0438\u044f \u043f\u043b\u0430\u043d\u0448\u0435\u0442\u043e\u0432: Tablet M6<\/li>\n<\/ul>\n<\/div><\/div>\n<p>  \u0414\u043b\u044f \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u0434\u0430\u043d\u043d\u044b\u0445 \u043e\u0442 TOF \u043d\u0443\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043a\u043b\u0430\u0441\u0441 <a href=\"https:\/\/developer.huawei.com\/consumer\/en\/doc\/HMSCore-References\/scene_mesh-0000001050119506-V5\">ARSceneMesh<\/a> \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0445 \u043c\u0435\u0442\u043e\u0434\u043e\u0432:<\/p>\n<pre><code class=\"kotlin\">public ShortBuffer getSceneDepth() \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\/\/ Get the depth image of current frame(optimized). public int getSceneDepthHeight() \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\/\/ Get the height of the depth image. public int getSceneDepthWidth() \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\/\/ Get the width of the depth image.<\/code><\/pre>\n<p>  \u0415\u0441\u0442\u044c \u0438 \u0434\u0440\u0443\u0433\u0438\u0435 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u044b, \u043a\u0430\u043a \u0441\u0447\u0438\u0442\u0430\u0442\u044c \u0433\u043b\u0443\u0431\u0438\u043d\u0443. \u041c\u043e\u0436\u043d\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043e\u0431\u044a\u0435\u043a\u0442 \u043a\u043b\u0430\u0441\u0441\u0430 ARFrame \u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0435\u0433\u043e <a href=\"https:\/\/developer.huawei.com\/consumer\/en\/doc\/HMSCore-References\/frame-0000001050121447-V5#EN-US_TOPIC_0000001050126786__section2102300118.\">\u043c\u0435\u0442\u043e\u0434\u044b<\/a> hitTest, acquireDepthImage. \u0422\u0430\u043a\u0436\u0435 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0430\u043d\u043d\u0443\u044e \u043a\u0430\u0440\u0442\u0443 \u0433\u043b\u0443\u0431\u0438\u043d\u044b \u043c\u0435\u0442\u043e\u0434 GetSceneDepth \u0438\u0437 \u043a\u043b\u0430\u0441\u0441\u0430 ARSceneMesh. \u041e\u043d\u0430 \u0442\u043e\u0447\u043d\u0435\u0435, \u043d\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u043e 2,5 \u043c\u0435\u0442\u0440\u0430.<\/p>\n<h2>5. \u041a\u0430\u043a \u043e\u0442\u043a\u0440\u044b\u0442\u044c AppGallery \u043d\u0430\u043f\u0440\u044f\u043c\u0443\u044e \u0438\u0437 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f?<\/h2>\n<p>  AppGallery \u0438\u0437 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0442\u0430\u043a \u0436\u0435, \u043a\u0430\u043a \u0438 Google Play Store. \u041d\u0430\u0434\u043e \u0443\u0447\u0438\u0442\u044b\u0432\u0430\u0442\u044c, \u0447\u0442\u043e\u00a0 AppGallery \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u0443\u044e \u0441\u0445\u0435\u043c\u0443 appmarket:\/\/:<\/p>\n<ul>\n<li>\u0421\u0445\u0435\u043c\u0430: appmarket:\/\/<\/li>\n<li>\u041f\u0430\u043a\u0435\u0442: com.huawei.appmarket<\/li>\n<\/ul>\n<p>  \u0412\u043e\u0442 \u0444\u0440\u0430\u0433\u043c\u0435\u043d\u0442 \u0438\u0437 \u0433\u0430\u043b\u0435\u0440\u0435\u0438 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 AppGallery<\/p>\n<pre><code class=\"kotlin\">private void startHuaweiAppGallery() { \u00a0\u00a0\u00a0\u00a0Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(&quot;appmarket:\/\/details?id=&quot; + getPackageName())); \u00a0\u00a0\u00a0\u00a0List&lt;ResolveInfo&gt; otherApps = getPackageManager().queryIntentActivities(intent, 0);  \u00a0\u00a0\u00a0\u00a0boolean agFound = false;  \u00a0\u00a0\u00a0\u00a0for (ResolveInfo app : otherApps) { \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0if (app.activityInfo.applicationInfo.packageName.equals(&quot;com.huawei.appmarket&quot;)) { \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0ComponentName psComponent = new ComponentName(app.activityInfo.applicationInfo.packageName, app.activityInfo.name); \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_RESET_TASK_IF_NEEDED | Intent.FLAG_ACTIVITY_CLEAR_TOP); \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0intent.setComponent(psComponent); \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0startActivity(intent);  \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0agFound = true; \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0break; \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0} \u00a0\u00a0\u00a0\u00a0}  \u00a0\u00a0\u00a0\u00a0\/\/Optional, Or copy the Google Play Store URL here (See below) \u00a0\u00a0\u00a0\u00a0if (!agFound) { \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\/\/Your Huawei app ID can be found in the Huawei developer console \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0final string HUAWEI_APP_ID = &quot;100864605&quot;;  \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\/\/ex. https:\/\/appgallery.cloud.huawei.com\/marketshare\/app\/C100864605 \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0intent = new Intent(Intent.ACTION_VIEW, Uri.parse(&quot;https:\/\/appgallery.cloud.huawei.com\/marketshare\/app\/C&quot; + HUAWEI_APP_ID)); \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0startActivity(intent); \u00a0\u00a0\u00a0\u00a0} }<\/code><\/pre>\n<p>  <\/p>\n<h2>6. \u041a\u0430\u043a \u0441\u043e\u0437\u0434\u0430\u0442\u044c Huawei Android Emulator?<\/h2>\n<p>  Huawei \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430\u043c Huawei \u0444\u0443\u043d\u043a\u0446\u0438\u044e \u043e\u0431\u043b\u0430\u0447\u043d\u043e\u0439 \u043e\u0442\u043b\u0430\u0434\u043a\u0438 \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u043e\u0439 \u0443\u0441\u043b\u0443\u0433\u0438. \u0415\u0441\u043b\u0438 \u0432\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0435 SDK Huawei, \u0443 \u0432\u0430\u0441 \u0434\u043e\u043b\u0436\u043d\u0430 \u0431\u044b\u0442\u044c \u0443\u0447\u0451\u0442\u043d\u0430\u044f \u0437\u0430\u043f\u0438\u0441\u044c \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430 Huawei. \u041f\u0440\u043e\u0441\u0442\u043e \u0432\u043e\u0439\u0434\u0438\u0442\u0435 \u0432 \u043a\u043e\u043d\u0441\u043e\u043b\u044c \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430 Huawei \u0438 \u0441\u043b\u0435\u0434\u0443\u0439\u0442\u0435 <a href=\"https:\/\/developer.huawei.com\/consumer\/en\/doc\/development\/AppGallery-connect-Guides\/agc-clouddebug-realtimedebug\">\u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044f\u043c<\/a>.<\/p>\n<p>  \u0424\u0443\u043d\u043a\u0446\u0438\u044f \u043e\u0431\u043b\u0430\u0447\u043d\u043e\u0439 \u043e\u0442\u043b\u0430\u0434\u043a\u0438 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043f\u0440\u043e\u0441\u0442\u0430 \u0432 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0438. \u041e\u043d\u0430 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0442\u044c \u0443\u0434\u0430\u043b\u0451\u043d\u043d\u0443\u044e \u043e\u0442\u043b\u0430\u0434\u043a\u0443 \u043d\u0430 \u0440\u0435\u0430\u043b\u044c\u043d\u044b\u0445 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430\u0445. \u0412 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0435 \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u0440\u043e\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u0442\u044c \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043e\u0431 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0435, \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0442\u044c \u0438 \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0442\u044c APK \u043d\u0430 \u0443\u0434\u0430\u043b\u0451\u043d\u043d\u044b\u0435 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430, \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u044c \u0436\u0443\u0440\u043d\u0430\u043b\u044b \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0439 \u0438 \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0442\u044c \u0436\u0443\u0440\u043d\u0430\u043b\u044b \u043d\u0430 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e\u043c \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u0435 \u0434\u043b\u044f \u0430\u043d\u0430\u043b\u0438\u0437\u0430.<\/p>\n<h2>7. \u041a\u0430\u043a \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0434\u043e\u0441\u0442\u0443\u043f \u043a payload push-\u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u0439 HMS?<\/h2>\n<p>  \u0427\u0442\u043e\u0431\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0434\u043e\u0441\u0442\u0443\u043f \u043a payload, \u0432\u0430\u043c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u0442\u044c \u043a\u043b\u0430\u0441\u0441 HmsMessageService \u0438 \u043f\u0435\u0440\u0435\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c \u043c\u0435\u0442\u043e\u0434 onMessageReceived. \u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0434\u043e\u0441\u0442\u0443\u043f \u043a payload \u0438\u0437 \u043e\u0431\u044a\u0435\u043a\u0442\u0430 RemoteMessage. \u0427\u0442\u043e\u0431\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0434\u043e\u0441\u0442\u0443\u043f \u043a \u0442\u043e\u043a\u0435\u043d\u0443, \u043f\u0435\u0440\u0435\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u0435 \u043c\u0435\u0442\u043e\u0434 onNewToken.<\/p>\n<p>  \u041a\u043e\u0434 Java:<\/p>\n<pre><code class=\"java\">import android.util.Log;  import com.huawei.hms.push.HmsMessageService; import com.huawei.hms.push.RemoteMessage;  public class HService extends HmsMessageService {  \u00a0\u00a0\u00a0\u00a0@Override \u00a0\u00a0\u00a0\u00a0public void onMessageReceived(RemoteMessage remoteMessage) { \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0super.onMessageReceived(remoteMessage);  \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0if (remoteMessage != null) { \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0if (!remoteMessage.getData().isEmpty()) { \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0Log.d(&quot;HMS&quot;, &quot;Payload&quot; + remoteMessage.getData()); \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0}  \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0if (remoteMessage.getNotification() != null) { \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0Log.d(&quot;HMS&quot;, &quot;Message Notification Body: &quot; + remoteMessage.getNotification().getBody()); \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0} \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0} \u00a0\u00a0\u00a0\u00a0} }<\/code><\/pre>\n<p>  \u041a\u043e\u0434 Kotlin:<\/p>\n<pre><code class=\"kotlin\">override fun onMessageReceived(remoteMessage: RemoteMessage?) { \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0super.onMessageReceived(remoteMessage)  \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0if (remoteMessage!!.data.isNotEmpty()) { \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0Log.i(TAG, &quot;Message data payload: &quot; + remoteMessage.data) \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0}  \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0if (remoteMessage.notification != null) { \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0Log.i(TAG, &quot;Message Notification Body: &quot; + remoteMessage.notification.body) \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0} \u00a0\u00a0\u00a0\u00a0}<\/code><\/pre>\n<p>  \u0423\u0431\u0435\u0434\u0438\u0442\u0435\u0441\u044c, \u0447\u0442\u043e \u0432\u044b \u0437\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u043b\u0438 \u0441\u0432\u043e\u044e \u0441\u043b\u0443\u0436\u0431\u0443:<\/p>\n<pre><code class=\"kotlin\">&lt;service \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0android:name=&quot;.service.HService&quot; \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0android:enabled=&quot;true&quot; \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0android:exported=&quot;true&quot; \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0android:permission=&quot;${applicationId}.permission.PROCESS_PUSH_MSG&quot; \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0android:process=&quot;:HmsMessageService&quot;&gt; \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0&lt;intent-filter&gt; \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0&lt;action android:name=&quot;com.huawei.push.action.MESSAGING_EVENT&quot; \/&gt; \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0&lt;\/intent-filter&gt; \u00a0\u00a0\u00a0&lt;\/service&gt;<\/code><\/pre>\n<p>  <\/p>\n<h2>8. \u041a\u0430\u043a\u0438\u0435 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043f\u0440\u0438 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f Android \u0434\u043b\u044f \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u043e\u0433\u043e \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0430 Huawei?<\/h2>\n<p>  \u0414\u043b\u044f \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043a\u0430\u043a Android Studio, \u0442\u0430\u043a \u0438 \u0434\u0440\u0443\u0433\u0438\u0435 IDE, \u0442\u0430\u043a\u0438\u0435 \u043a\u0430\u043a Eclipse, Intelliji IDEA. \u0415\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 \u0443\u0436\u0435 \u0435\u0441\u0442\u044c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0449\u0435\u0435 GMS, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 <a href=\"https:\/\/forums.developer.huawei.com\/forumPortal\/en\/topicview?tid=0201339712686810081&amp;fid=0101187876626530001.\">HMS Toolkit<\/a> \u0434\u043b\u044f \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u043a\u043e\u0434\u0430, \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0449\u0435\u0433\u043e \u0441 GMS, \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 HMS. \u041d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0443\u0447\u0438\u0442\u044b\u0432\u0430\u0442\u044c, \u0447\u0442\u043e HMS Toolkit \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442 \u043a\u043e\u043d\u0432\u0435\u0440\u0442\u0430\u0446\u0438\u044e \u043d\u0435 \u0432\u0441\u0435\u0445 \u0441\u043b\u0443\u0436\u0431, \u0438 \u043f\u0435\u0440\u0435\u0434 \u0435\u0433\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u043b\u0443\u0447\u0448\u0435 \u0443\u0442\u043e\u0447\u043d\u0438\u0442\u044c, \u0440\u0430\u0431\u043e\u0442\u0443 \u043a\u0430\u043a\u0438\u0445 \u0441\u043b\u0443\u0436\u0431 \u043e\u043d \u043c\u043e\u0436\u0435\u0442 \u043f\u0435\u0440\u0435\u043d\u0435\u0441\u0442\u0438.<\/p>\n<h2>9. \u041a\u0430\u043a \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0441\u043b\u0443\u0436\u0431\u044b HMS \u0431\u0435\u0437 agconnect-services.json?\u00a0<\/h2>\n<p>  \u041f\u043e\u043a\u0430 HMS \u043d\u0435 \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0435\u0434\u0438\u043d\u043e\u0433\u043e \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u0434\u043b\u044f \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 \u043a\u043e\u0434\u0430. \u0418\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u0431\u0435\u0437 json-\u0444\u0430\u0439\u043b\u0430 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u0430 \u043f\u0440\u0438 \u0440\u0430\u0431\u043e\u0442\u0435 \u0441\u043e \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c\u0438 \u0441\u043b\u0443\u0436\u0431\u0430\u043c\u0438:<\/p>\n<ul>\n<li>Push Kit:  <\/li>\n<\/ul>\n<p>  <\/p>\n<pre><code class=\"kotlin\">&lt;meta-data\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0\u00a0android:name=&quot;com.huawei.hms.client.appid&quot;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0\u00a0&lt;!-- Replace value xxx with the actual appid.--&gt;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0\u00a0android:value=&quot;appid=xxx&quot;&gt;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &lt;\/meta-data&gt; <\/code><\/pre>\n<p>  <\/p>\n<ul>\n<li>Map Kit:  <\/li>\n<\/ul>\n<p>  <\/p>\n<pre><code class=\"kotlin\">MapsInitializer.setApiKey(&quot;Your API Key&quot;);<\/code><\/pre>\n<p>  <\/p>\n<ul>\n<li>Site Kit\uff1a  <\/li>\n<\/ul>\n<p>  <\/p>\n<pre><code class=\"kotlin\">SearchService searchService = SearchServiceFactory.create(this, &quot;API key&quot;);<\/code><\/pre>\n<p>  <\/p>\n<ul>\n<li>ML Kit:  <\/li>\n<\/ul>\n<p>  <\/p>\n<pre><code class=\"kotlin\">MLApplication.getInstance().setApiKey(&quot;your ApiKey&quot;);<\/code><\/pre>\n<p>  <\/p>\n<h2>10. \u0427\u0442\u043e \u043c\u043e\u0436\u0435\u0442 \u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u0430\u043c\u0438 (PMS) \u0432 \u0441\u043b\u0443\u0436\u0431\u0435 HMS In-App Purchase?<\/h2>\n<p>  <a href=\"https:\/\/developer.huawei.com\/consumer\/en\/doc\/development\/AppGallery-connect-Guides\/agcapi-pms-api-overview\">API \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u0430\u043c\u0438<\/a> (PMS) \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u044b \u0438 \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0435\u0439 \u043e \u043d\u0438\u0445. \u0427\u0435\u0440\u0435\u0437\u00a0 \u043d\u0435\u0433\u043e \u043c\u043e\u0436\u043d\u043e:<\/p>\n<ul>\n<li><b>\u0421\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u044b:<\/b> \u0432 \u0442\u043e\u043c \u0447\u0438\u0441\u043b\u0435 \u0441 \u043f\u043e \u043f\u043e\u0434\u043f\u0438\u0441\u043a\u0435 \u0441 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u043c \u043f\u0440\u043e\u0434\u043b\u0435\u043d\u0438\u0435\u043c.  <\/li>\n<li><b>\u0417\u0430\u043f\u0440\u0430\u0448\u0438\u0432\u0430\u0442\u044c \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043e \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u0430\u0445:<\/b> \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u043f\u0440\u043e\u0441\u0438\u0442\u044c \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u044b\u0439 \u043f\u0440\u043e\u0434\u0443\u043a\u0442 \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440\u0430 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0438 \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440\u0430 \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u0430 \u0438\u043b\u0438 \u0437\u0430\u043f\u0440\u043e\u0441\u0438\u0442\u044c \u0432\u0441\u0435 \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0442 \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u044b\u043c \u0432\u0430\u043c\u0438 \u043a\u0440\u0438\u0442\u0435\u0440\u0438\u044f\u043c.  <\/li>\n<li><b>\u041e\u0431\u043d\u043e\u0432\u043b\u044f\u0442\u044c \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043e \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u0430\u0445:<\/b> \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u0430, \u044f\u0437\u044b\u043a, \u0446\u0435\u043d\u0443 \u0438 \u0441\u0442\u0430\u0442\u0443\u0441. \u0420\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u043c\u043e\u0436\u043d\u043e \u043a\u0430\u043a \u0441 \u043e\u0434\u043d\u0438\u043c, \u0442\u0430\u043a \u0438 \u0441 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u043c\u0438 \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u0430\u043c\u0438 \u043e\u0434\u043d\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e.  <\/li>\n<li><b>\u041f\u0440\u043e\u0434\u0432\u0438\u0433\u0430\u0442\u044c \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u044b:<\/b> API \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0440\u0430\u0437\u0434\u0435\u043b\u044f\u0442\u044c \u0440\u0435\u043a\u043b\u0430\u043c\u043d\u044b\u0435 \u043a\u0430\u043e\u043c\u043f\u0430\u043d\u0438\u0438 \u043f\u043e \u0440\u0435\u0433\u0438\u043e\u043d\u0430\u043c, \u0437\u0430\u0434\u0430\u0432\u0430\u0442\u044c \u0432\u0440\u0435\u043c\u044f \u043f\u0440\u043e\u0434\u0432\u0438\u0436\u0435\u043d\u0438\u044f \u0438 \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0442\u044c \u0446\u0435\u043d\u044b.  <\/li>\n<\/ul>\n<p>  \u041d\u0430 \u044d\u0442\u043e\u043c \u043f\u043e\u043a\u0430 \u0432\u0441\u0451, \u0435\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 \u0435\u0441\u0442\u044c \u0432\u043e\u043f\u0440\u043e\u0441\u044b \u043f\u043e \u0440\u0430\u0431\u043e\u0442\u0435 \u0441 HMS, \u0437\u0430\u0434\u0430\u0432\u0430\u0439\u0442\u0435 \u0438\u0445 \u0432 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u044f\u0445.<\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/company\/huawei\/blog\/525756\/\"> https:\/\/habr.com\/ru\/company\/huawei\/blog\/525756\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"\n<div class=\"post__text post__text-html post__text_v1\" id=\"post-content-body\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/251\/d4e\/9ab\/251d4e9ab0a1a8b9b18326b97ebb56de.jpg\"><\/p>\n<p>  \u041f\u0440\u0438\u0432\u0435\u0442, \u0425\u0430\u0431\u0440! \u0417\u0430 \u0433\u043e\u0434 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0441\u0435\u0440\u0432\u0438\u0441\u043e\u0432 \u0432 \u044d\u043a\u043e\u0441\u0438\u0441\u0442\u0435\u043c\u0435 Huawei Mobile Services (HMS). \u0432\u044b\u0440\u043e\u0441\u043b\u043e \u0441 9 \u0434\u043e 31, \u0438 \u0443 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u0432 \u0441\u0442\u0430\u043b\u043e \u0432\u043e\u0437\u043d\u0438\u043a\u0430\u0442\u044c \u0432\u0441\u0451 \u0431\u043e\u043b\u044c\u0448\u0435 \u0432\u043e\u043f\u0440\u043e\u0441\u043e\u0432 \u043f\u043e \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0435 \u0433\u0438\u0431\u0440\u0438\u0434\u043d\u044b\u0445 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439, \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044e \u0441 AppGallery, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044e \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0445 \u0441\u043b\u0443\u0436\u0431 \u0438 \u043a\u0438\u0442\u043e\u0432. \u041e\u0441\u043d\u043e\u0432\u043d\u044b\u0435 \u043f\u043b\u043e\u0449\u0430\u0434\u043a\u0438 \u043d\u0430\u0448\u0435\u0433\u043e \u043e\u0431\u0449\u0435\u043d\u0438\u044f \u0441 \u043c\u0438\u0440\u043e\u0432\u044b\u043c \u0441\u043e\u043e\u0431\u0449\u0435\u0441\u0442\u0432\u043e\u043c \u2014 \u044d\u0442\u043e <a href=\"https:\/\/stackoverflow.com\/questions\/tagged\/huawei-mobile-services\">Stackoverflow<\/a>, <a href=\"https:\/\/www.reddit.com\/r\/HuaweiDevelopers\/\">Reddit<\/a>, <a href=\"https:\/\/forum.xda-developers.com\/android\/huawei-developers\">XDA-Developers<\/a> \u0438 <a href=\"https:\/\/forums.developer.huawei.com\/forumPortal\/en\/home?tagId=0802330397973420002\">\u0440\u0430\u0437\u0434\u0435\u043b \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0438<\/a> \u043d\u0430 \u043f\u043e\u0440\u0442\u0430\u043b\u0435 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u0432 Huawei. \u0421\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u043e \u0434\u043b\u044f \u0442\u0435\u0445, \u043a\u0442\u043e \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u0443\u0435\u0442\u0441\u044f \u043d\u0430\u0448\u0435\u0439 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u043e\u0439, \u043c\u044b \u0441\u043e\u0431\u0440\u0430\u043b\u0438 \u0441 \u044d\u0442\u0438\u0445 \u043f\u043b\u043e\u0449\u0430\u0434\u043e\u043a 10 \u0432\u043e\u043f\u0440\u043e\u0441\u043e\u0432 \u043f\u043e \u0440\u0430\u0431\u043e\u0442\u0435 \u0441 Huawei Mobile Services.\u00a0  <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-312330","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/312330","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=312330"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/312330\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=312330"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=312330"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=312330"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}