Atnaujinkite slapukų nuostatas

El. knyga: Partnering with HMS: A Guide for App Developers [Taylor & Francis e-book]

(The Catholic University, Washington, DC., USA), ,
  • Formatas: 466 pages, 43 Tables, black and white; 74 Line drawings, black and white; 203 Halftones, black and white; 277 Illustrations, black and white
  • Išleidimo metai: 15-Sep-2021
  • Leidėjas: CRC Press
  • ISBN-13: 9781003206699
  • Taylor & Francis e-book
  • Kaina: 156,95 €*
  • * this price gives unlimited concurrent access for unlimited time
  • Standartinė kaina: 224,21 €
  • Sutaupote 30%
  • Formatas: 466 pages, 43 Tables, black and white; 74 Line drawings, black and white; 203 Halftones, black and white; 277 Illustrations, black and white
  • Išleidimo metai: 15-Sep-2021
  • Leidėjas: CRC Press
  • ISBN-13: 9781003206699
"This is the first book to introduce the Huawei Mobile Services (HMS) ecosystem. It gives developers a basic understanding of the ecosystem and how to leverage kit and tool capabilities to make their apps better"--

This is the first book to introduce readers to the Huawei Mobile Services (HMS) ecosystem. It gives developers a fundamental understanding of the ecosystem and how to leverage kit and tool capabilities to make their apps better.

This book is also a quick start guide for kit integration and practical environment setup, detailing the functions and principles behind each kit. By demonstrating how to integrate kits, the authors teach by action Account Kit, IAP, Push Kit, Location Kit, Map Kit, Site Kit, Safety Detect, and FIDO.

Readers are fully introduced to how they can use HMS open capabilities to develop quality apps, acquire users, and monetize their hard work. In addition, the ecosystem background – the business model and value chain that underpin the entire ecosystem, as well as its privacy compliance framework – is crucial to operations and illustrated in this book.



This is the first book to introduce the Huawei Mobile Services (HMS) ecosystem. It gives developers a basic understanding of the ecosystem and how to leverage kit and tool capabilities to make their apps better.

Foreword I xv
Foreword II xix
Foreword III xxi
Preface xxiii
Acknowledgments xxvii
Authors xxix
Chapter 1 Overview of the HMS Ecosystem 1(26)
1.1 The Rise Of Mobile App Ecosystems
1(10)
1.1.1 Development of the Mobile Internet
1(1)
1.1.2 History of Mobile App Ecosystems
2(4)
1.1.3 Value Distribution of Mobile App Ecosystems
6(5)
1.2 The History Of The HMS Ecosystem
11(8)
1.2.1 Huawei's Device Business and Cloud Services
11(1)
1.2.2 Emergence of an HMS Ecosystem
12(4)
1.2.3 The HMS Ecosystem Today
16(3)
1.3 HMS Ecosystem Architecture
19(5)
1.3.1 Architecture Behind HMS Open Capabilities
19(3)
1.3.2 HMS Privacy Compliance Framework
22(2)
1.4 Summary
24(1)
Notes
24(3)
Chapter 2 HMS Core 27(16)
2.1 What Does HMS Core Offer?
27(7)
2.1.1 Develop: Creating Premium Apps Quickly and Cost-Effectively
27(4)
2.1.1.1 Account Kit
27(2)
2.1.1.2 FIDO
29(1)
2.1.1.3 Map Kit, Site Kit, and Location Kit
29(2)
2.1.1.4 Safety Detect
31(1)
2.1.2 Grow: Targeting and Engaging with More Users
31(1)
2.1.3 Monetize: Expanding Your Global Reach with Multiple Channels
32(2)
2.2 How Are HMS Core Open Capabilities Provided?
34(1)
2.2.1 HMS Core SDK
34(1)
2.2.2 RESTful APIs
35(1)
2.3 How Are Integrations Authorized?
35(7)
2.3.1 API Key
36(1)
2.3.1.1 How to Obtain
36(1)
2.3.1.2 How to Use
36(1)
2.3.1.3 How to Interact
37(1)
2.3.2 OAuth Client ID
37(2)
2.3.2.1 How to Obtain
37(1)
2.3.2.2 How to Interact
38(1)
2.3.3 Service Account
39(4)
2.3.3.1 How to Obtain
39(2)
2.3.3.2 How to Use
41(1)
2.3.3.3 How to Interact
41(1)
Note
42(1)
Chapter 3 Quick Start 43(28)
3.1 Registration And Identity Verification
43(4)
3.1.1 Registering an Account
43(1)
3.1.2 Verifying Your Identity
43(4)
3.2 Setting Up A Development Environment
47(1)
3.3 Creating An App Project
48(7)
3.3.1 App Functions
48(2)
3.3.2 Creating an Android Project
50(1)
3.3.3 Creating a Keystore File
51(1)
3.3.4 Configuring Signing in Gradle
52(3)
3.4 Building The Pet Store App
55(14)
3.4.1 Adding the Home Screen
55(3)
3.4.2 Adding the Video Playback Function
58(1)
3.4.3 Adding the Sign-in Function
58(3)
3.4.4 Adding the Registration Function
61(4)
3.4.5 Adding the Personal Center
65(1)
3.4.6 Adding the Settings Function
66(3)
3.5 Summary
69(2)
Chapter 4 Account Kit 71(50)
4.1 About The Service
71(1)
4.2 Preparations
72(10)
4.2.1 Becoming a Verified Huawei Developer
72(1)
4.2.2 Creating an App
73(3)
4.2.3 Generating a Signing Certificate Fingerprint
76(1)
4.2.4 Configuring the Signing Certificate Fingerprint
77(1)
4.2.5 Enabling Account Kit
78(1)
4.2.6 Integrating the Account SDK
79(3)
4.3 Signing In With A HUAWEI ID
82(26)
4.3.1 Designing a HUAWEI ID Sign-In Button
82(2)
4.3.2 Signing In with a HUAWEI ID in ID Token Mode
84(12)
4.3.2.1 Service Process
85(1)
4.3.2.2 Coding Practice
86(10)
4.3.3 Signing In with a HUAWEI ID in Authorization Code Mode
96(8)
4.3.3.1 Service Process
97(1)
4.3.3.2 Coding Practice
98(6)
4.3.4 Silently Signing In with a HUAWEI ID
104(4)
4.3.4.1 Service Process
104(2)
4.3.4.2 Coding Practice
106(2)
4.4 Signing Out From A HUAWEI ID
108(2)
4.4.1 Service Process
108(1)
4.4.2 Coding Practice
109(1)
4.5 Revoking Authorization
110(3)
4.5.1 Service Process
110(2)
4.5.2 Coding Practice
112(1)
4.6 Automatically Reading An SMS Verification Code
113(5)
4.6.1 Service Process
113(1)
4.6.2 Coding Practice
114(4)
4.7 Summary
118(1)
Notes
119(2)
Chapter 5 In-App Purchases 121(78)
5.1 About The Service
121(2)
5.2 Preparations
123(2)
5.2.1 Enabling IAP
123(2)
5.2.2 Integrating the IAP SDK
125(1)
5.3 Product Creation In PMS
125(7)
5.3.1 Principles Behind PMS
125(2)
5.3.2 Configuring Products
127(5)
5.3.2.1 Planning Products
127(1)
5.3.2.2 Configuring a Consumable
127(3)
5.3.2.3 Configuring a Non-consumable
130(1)
5.3.2.4 Configuring a Subscription
130(2)
5.4 Product Purchase
132(24)
5.4.1 Checking Whether IAP Is Supported
133(1)
5.4.2 Obtaining the Product Information
134(3)
5.4.3 Initiating a Payment
137(4)
5.4.4 Confirming the Transaction
141(5)
5.4.5 Redelivering a Product
146(3)
5.4.5.1 Service Process
146(1)
5.4.5.2 Coding Practice
147(2)
5.4.6 Querying Purchased Products and Orders
149(7)
5.5 Product Usage
156(10)
5.5.1 Subscriptions
156(3)
5.5.2 Service Provisioning
159(6)
5.5.3 Subscription Management
165(1)
5.6 Sandbox Testing
166(6)
5.6.1 Principles Behind Sandbox Testing
168(1)
5.6.2 Coding Practice
169(3)
5.7 IAP Server Capability Openness
172(26)
5.7.1 Service Process
173(1)
5.7.2 Coding Practice
174(24)
5.8 Summary
198(1)
Notes
198(1)
Chapter 6 Push Kit 199(46)
6.1 About The Service
199(3)
6.2 Preparations
202(2)
6.2.1 Enabling Push Kit
202(1)
6.2.2 Integrating the Push SDK
203(1)
6.3 Obtaining A Push Token
204(6)
6.3.1 Requesting a Push Token
204(1)
6.3.2 Receiving the Push Token
205(1)
6.3.3 Coding Practice
206(2)
6.3.4 Quick Testing
208(2)
6.4 Subscribing To A Topic
210(8)
6.4.1 Service Process
210(2)
6.4.2 Coding Practice
212(6)
6.5 Pushing Messages In AppGallery Connect
218(9)
6.5.1 Pushing Notification Messages
218(4)
6.5.2 Pushing Data Messages
222(5)
6.6 Pushing Messages Via The APP Server
227(10)
6.6.1 Service Process
227(2)
6.6.2 Coding Practice
229(8)
6.7 Receiving Message Receipts
237(6)
6.7.1 Service Process
240(1)
6.7.2 Coding Practice
240(3)
6.8 Summary
243(2)
Chapter 7 Location Kit 245(30)
7.1 About The Service
245(5)
7.1.1 Fused Location
246(2)
7.1.2 Activity Identification
248(1)
7.1.3 Geofence
248(1)
7.1.4 Geocoding
248(2)
7.2 Preparations
250(1)
7.2.1 Enabling Location Kit
250(1)
7.2.2 Integrating the Location SDK
250(1)
7.3 Developing The Fused Location Function
251(5)
7.3.1 Configuring Location Permissions
251(1)
7.3.2 Coding Practice
252(4)
7.4 Developing The Mock Location Function
256(4)
7.4.1 Selecting an App to Use for the Mock Location
258(1)
7.4.2 Coding Practice
258(2)
7.5 Developing The Activity Identification Function
260(6)
7.5.1 Configuring the Activity Identification Permissions
260(1)
7.5.2 Coding Practice
261(5)
7.6 Developing The Geofence Function
266(7)
7.6.1 Creating a Geofence
266(1)
7.6.2 Coding Practice
267(6)
7.7 Summary
273(1)
Note
273(2)
Chapter 8 Site Kit 275(26)
8.1 About The Service
275(2)
8.2 Preparations
277(3)
8.3 Place Search
280(12)
8.3.1 Keyword Search
280(4)
8.3.2 Place Search Suggestion
284(2)
8.3.3 Place Detail Search
286(3)
8.3.4 Nearby Place Search
289(3)
8.4 Geocoding
292(6)
8.4.1 Forward Geocoding
294(2)
8.4.2 Reverse Geocoding
296(2)
8.5 Time Zone Search
298(1)
8.6 Summary
299(2)
Chapter 9 Map Kit 301(80)
9.1 About The Service
301(2)
9.2 Preparations
303(2)
9.3 Creating A Map
305(11)
9.3.1 Creating a Map Instance
305(5)
9.3.2 Setting the Map Type
310(1)
9.3.3 Setting the Padding
310(3)
9.3.4 Coding Practice
313(3)
9.4 Interacting With The Map
316(15)
9.4.1 Map Camera
318(2)
9.4.2 UI Controls and Gestures
320(4)
9.4.3 Map Events
324(7)
9.5 Drawing On The Map
331(32)
9.5.1 Markers
332(10)
9.5.2 Ground Overlay
342(2)
9.5.3 Shapes
344(11)
9.5.4 Tile Overlay
355(8)
9.6 Customizing The Map Style
363(6)
9.6.1 Use Example
363(1)
9.6.2 Style Reference
364(2)
9.6.3 Coding Practice
366(3)
9.7 Planning Routes
369(10)
9.7.1 Overview
369(1)
9.7.2 Coding Practice
369(10)
9.8 Summary
379(2)
Chapter 10 Safety Detect 381(28)
10.1 About The Service
381(1)
10.2 Preparations
382(2)
10.2.1 Enabling Safety Detect
383(1)
10.2.2 Integrating the Safety Detect SDK
383(1)
10.3 SysIntegrity
384(10)
10.3.1 Service Process
384(1)
10.3.2 Coding Practice
385(9)
10.4 AppsCheck
394(3)
10.4.1 Service Process
394(1)
10.4.2 Coding Practice
394(3)
10.5 URLCheck
397(3)
10.5.1 Service Process
397(1)
10.5.2 Coding Practice
398(2)
10.6 UserCheck
400(8)
10.6.1 Service Process
401(1)
10.6.2 Coding Practice
401(7)
10.7 Summary
408(1)
Chapter 11 FIDO 409(24)
11.1 About The Service
409(5)
11.1.1 Principles Behind FIDO2
410(3)
11.1.2 Principles Behind BioAuthn
413(1)
11.2 Preparations
414(1)
11.3 FIDO2
415(12)
11.3.1 Initializing the FIDO2 Client
418(1)
11.3.2 Initiating the Registration Process
419(3)
11.3.3 Obtaining the Registration Result
422(1)
11.3.4 Initiating the Authentication Process
423(3)
11.3.5 Obtaining the Authentication Result
426(1)
11.4 BioAuthn
427(4)
11.4.1 Fingerprint Authentication
427(3)
11.4.2 3D Facial Authentication
430(1)
11.5 Summary
431(1)
Note
431(2)
Chapter 12 Testing and Release 433(26)
12.1 DIGIX Lab Test Services
433(18)
12.1.1 Cloud Testing
434(10)
12.1.1.1 Compatibility Testing
435(5)
12.1.1.2 Stability Testing
440(1)
12.1.1.3 Performance Testing
441(1)
12.1.1.4 Power Consumption Testing
441(3)
12.1.2 Cloud Debugging
444(7)
12.1.2.1 Performing Remote Debugging in Real Time
444(4)
12.1.2.2 Remotely Viewing System Logs
448(2)
12.1.2.3 Rotating the Screen
450(1)
12.1.2.4 Viewing Device Details
450(1)
12.2 App Release
451(5)
12.2.1 Signing In and Creating an App
451(1)
12.2.2 Configuring Basic App Information
451(2)
12.2.3 Configuring Distribution Information
453(2)
12.2.4 Submitting the App for Release
455(1)
12.3 Summary
456(3)
Appendix: HMS Ecosystem Concepts 459
Xihai Wang is the founder of the HMS ecosystem and chief judge for DIGIX competitions run by the Huawei Consumer Cloud Service. Devoted to the software field for more than 15 years, he has recently focused on promoting open HMS capabilities and working with global developers to build an all-scenario smart ecosystem.

Yue Wang is the co-founder and advocate for the Quick App Alliance. He has nearly two decades of experience in developing and delivering major management software, distributed middleware, and platforms in the telecommunications field. This international field has benefited from many of his patent articles and grants. His core work is now dedicated to building open HMS Core capabilities while helping global developers succeed in the market.

Hailiang Wu is the chief lecturer for the HDD and HMS courses. Building on 10 years of experience in software development and architecture design, he now advocates for open HMS capabilities and the HMS ecosystem on a global stage, including technical support for global developers.