[Huawei Developers] Freemind R:
More information like this, you can visit HUAWEI Developer Forum​

Introduction:

Coding Assistant provides HMS Core APIs and sample code. We only need to drag and drop scenario cards to integrate the corresponding scenarios. Here we can simply configure the Push Kit integration environment with one click, and the tool will automatically complete the configuration.

HMS Core Tool Kit Introduction:

HMS Core Tool Kit is a plug-in Installed in Android studio to facilitate app creation, coding, conversion, debugging, testing and release. It helps to integrate HMS Core API in the most efficient way and at the lowest possible cost.

To know more about HMS tool Kit and installation process use the Link.

Integrating Procedure:

Previously we may have needed to set many configuration items while integrating push Kit and have to check them repeatedly to avoid omission. To address this issue Huawei sorted the integration process and placed the configuration items into an automatic process. This is called the automatic environment configuration in one click mode.

So, click Start Configuration to initiate an automatic check whether configuration is required for integration to be completed. If not, some will automatically be completed while the rest will have to be processed as prompted. Click Retry to check whether all of the configuration items are completed. This ensures that the entire configuration process is clear and there are no omissions.

Development Based on Scenarios and Steps:

Huawei provides scenario-based and step-based development modes.

For scenario-based development, drag a scenario card to a project to automatically insert related code, configurations, and dependencies.

For step-based development, access a card to view the detailed steps and API code snippets of a scenario, and copy code snippets to a project.

Here we are using scenario-based development.

Steps for Integrating Push Kit Via Coding Assistant:

1. Go to HMS > Coding Assistant

[IMG="https://communityfile-dre.op.hicloud.com/FileServer/getFile/cmtybbs/001/745/226/2640091000001745226.20200828102307.49039571625702976485387548435380:50510914012651:2800:9D35BD1FCD82B9844AD94E71F799C8F2DF604ABED3F6BA60E9E3E4C8B03E9E56.png"]https://communityfile-dre.op.hicloud.com/FileServer/getFile/cmtybbs/001/745/226/2640091000001745226.20200828102307.49039571625702976485387548435380:50510914012651:2800:9D35BD1FCD82B9844AD94E71F799C8F2DF604ABED3F6BA60E9E3E4C8B03E9E56.png[/IMG]

2. Login Via opened browser

[IMG="https://communityfile-dre.op.hicloud.com/FileServer/getFile/cmtybbs/001/745/226/2640091000001745226.20200828102507.07134424778537207143784919736788:50510914012651:2800:FF7FB1F20C5DC6B0774C20A8C66FD9674991A3B56E10EAB4D059881E4F8640FA.png"]https://communityfile-dre.op.hicloud.com/FileServer/getFile/cmtybbs/001/745/226/2640091000001745226.20200828102507.07134424778537207143784919736788:50510914012651:2800:FF7FB1F20C5DC6B0774C20A8C66FD9674991A3B56E10EAB4D059881E4F8640FA.png[/IMG]

3. Provide access permission

[IMG="https://communityfile-dre.op.hicloud.com/FileServer/getFile/cmtybbs/001/745/226/2640091000001745226.20200828102615.52373650012058870013310962235141:50510914012651:2800:E60249E8F477CC0A6847CA3B72758AFBEA7C6F2366B0DE4DD281B690FDADC988.png"]https://communityfile-dre.op.hicloud.com/FileServer/getFile/cmtybbs/001/745/226/2640091000001745226.20200828102615.52373650012058870013310962235141:50510914012651:2800:E60249E8F477CC0A6847CA3B72758AFBEA7C6F2366B0DE4DD281B690FDADC988.png[/IMG]

After log in, it will be redirected to HUAWEI Dev Eco Studio home Page.

Configuration Wizard

Configuration Wizard will help us to quickly complete the necessary preparations such as registering an app and generating a signing certificate fingerprint so that we do not spend more time.

1. To setup development environment, click Configuration.

[IMG="https://communityfile-dre.op.hicloud.com/FileServer/getFile/cmtybbs/001/745/226/2640091000001745226.20200828102929.86185519393737486133241211493195:50510914012651:2800:CBC763A92A1822E269799B771F8CA370F1CB33992B06CACA4E02B44CB6BBCCB3.png"]https://communityfile-dre.op.hicloud.com/FileServer/getFile/cmtybbs/001/745/226/2640091000001745226.20200828102929.86185519393737486133241211493195:50510914012651:2800:CBC763A92A1822E269799B771F8CA370F1CB33992B06CACA4E02B44CB6BBCCB3.png[/IMG]

2. In Configuration Wizard, select Choose your team name, Choose kit, Choose your module and Certificate to generate the fingerprint.

Click Start Enviornmrnt Check, as follows.

[IMG="https://communityfile-dre.op.hicloud.com/FileServer/getFile/cmtybbs/001/745/226/2640091000001745226.20200828103200.61316967224892858122383171636963:50510914012651:2800:64262FC5D28B9339128EE28082E51B143D3B09C983B4A217AD3F18C3A2CF316F.png"]https://communityfile-dre.op.hicloud.com/FileServer/getFile/cmtybbs/001/745/226/2640091000001745226.20200828103200.61316967224892858122383171636963:50510914012651:2800:64262FC5D28B9339128EE28082E51B143D3B09C983B4A217AD3F18C3A2CF316F.png[/IMG]

3. Click Go to environment configuration, as show in below image.

Note: To solve the issues in Environment Check as App Gallery Connect cannot locate your application, Data storage location has not been set yet etc.

[IMG="https://communityfile-dre.op.hicloud.com/FileServer/getFile/cmtybbs/001/745/226/2640091000001745226.20200828103442.16672048764844918323394096604212:50510914012651:2800:B5ACE8B494099A5AB01AB33BFA9CC171F1E3A9B08874480DB3835ADA92223653.png"]https://communityfile-dre.op.hicloud.com/FileServer/getFile/cmtybbs/001/745/226/2640091000001745226.20200828103442.16672048764844918323394096604212:50510914012651:2800:B5ACE8B494099A5AB01AB33BFA9CC171F1E3A9B08874480DB3835ADA92223653.png[/IMG]

4. Configuration Results will show details of failed steps. Go to each and every failed steps and click the corresponding Link.

[IMG="https://communityfile-dre.op.hicloud.com/FileServer/getFile/cmtybbs/001/745/226/2640091000001745226.20200828103605.86087861981260551484788913159293:50510914012651:2800:AC2CB1575477F7DD9C4586F621109C047187999537F9D9DC23DF766266FA76AF.png"]https://communityfile-dre.op.hicloud.com/FileServer/getFile/cmtybbs/001/745/226/2640091000001745226.20200828103605.86087861981260551484788913159293:50510914012651:2800:AC2CB1575477F7DD9C4586F621109C047187999537F9D9DC23DF766266FA76AF.png[/IMG]

5. Click Link, it will redirect to AppGallery.

Note: Here the first issue is there is no application in AppGallery with the same package name as the application created in Android Studio. So in AppGallery we have to create an application with the same package name. We can check Event Log and can verify which steps are executed successfully.

[IMG="https://communityfile-dre.op.hicloud.com/FileServer/getFile/cmtybbs/001/745/226/2640091000001745226.20200828103747.69096759928465938401830426728314:50510914012651:2800:3B26BC19023A3503C503F00C653526F7741696CE9FDEF1E64BDAB363A63B884D.png"]https://communityfile-dre.op.hicloud.com/FileServer/getFile/cmtybbs/001/745/226/2640091000001745226.20200828103747.69096759928465938401830426728314:50510914012651:2800:3B26BC19023A3503C503F00C653526F7741696CE9FDEF1E64BDAB363A63B884D.png[/IMG]

6. Create New project.

[IMG="https://communityfile-dre.op.hicloud.com/FileServer/getFile/cmtybbs/001/745/226/2640091000001745226.20200828104109.94318351938623347683754145815566:50510914012651:2800:2B118193F355D5200B32487DA5814560BCA76E031D2189808C3733845DB131CF.png"]https://communityfile-dre.op.hicloud.com/FileServer/getFile/cmtybbs/001/745/226/2640091000001745226.20200828104109.94318351938623347683754145815566:50510914012651:2800:2B118193F355D5200B32487DA5814560BCA76E031D2189808C3733845DB131CF.png[/IMG]

7. Click Add app in General Information for creating app

[IMG="https://communityfile-dre.op.hicloud.com/FileServer/getFile/cmtybbs/001/745/226/2640091000001745226.20200828104241.54578197174581743120393873101730:50510914012651:2800:C315773A9AEE1005A5D09245DFF870773FA05B0AD572C2B353233D4BBF6AE522.png"]https://communityfile-dre.op.hicloud.com/FileServer/getFile/cmtybbs/001/745/226/2640091000001745226.20200828104241.54578197174581743120393873101730:50510914012651:2800:C315773A9AEE1005A5D09245DFF870773FA05B0AD572C2B353233D4BBF6AE522.png[/IMG]

8. Enter App name, Package name, App category and Default language.

[IMG="https://communityfile-dre.op.hicloud.com/FileServer/getFile/cmtybbs/001/745/226/2640091000001745226.20200828104406.06590553042661145185943001642793:50510914012651:2800:9CC8A970C758C2E79FAC6CA8DDB4FBCF9BD179F96429C2730AF4A5CC48222144.png"]https://communityfile-dre.op.hicloud.com/FileServer/getFile/cmtybbs/001/745/226/2640091000001745226.20200828104406.06590553042661145185943001642793:50510914012651:2800:9CC8A970C758C2E79FAC6CA8DDB4FBCF9BD179F96429C2730AF4A5CC48222144.png[/IMG]

9. In Configuration Result, click Retry, it will provide new result and prompt to set data storage location.

[IMG="https://communityfile-dre.op.hicloud.com/FileServer/getFile/cmtybbs/001/745/226/2640091000001745226.20200828104637.85486814392024469299620972447687:50510914012651:2800:047B5184CE3FD9D716CD6FE2655CC294531DB0F80C6DDFDFFC2C9C87B697628C.png"]https://communityfile-dre.op.hicloud.com/FileServer/getFile/cmtybbs/001/745/226/2640091000001745226.20200828104637.85486814392024469299620972447687:50510914012651:2800:047B5184CE3FD9D716CD6FE2655CC294531DB0F80C6DDFDFFC2C9C87B697628C.png[/IMG]

10. After click on Link, it redirect to AppGallaery Conect and we need to set Data Storage Location.

[IMG="https://communityfile-dre.op.hicloud.com/FileServer/getFile/cmtybbs/001/745/226/2640091000001745226.20200828104835.96597677940539242891739521697780:50510914012651:2800:86CA0723BF24BAA435AA859F8BD7053684ED9A35F60A81E4C10B654971197EA4.png"]https://communityfile-dre.op.hicloud.com/FileServer/getFile/cmtybbs/001/745/226/2640091000001745226.20200828104835.96597677940539242891739521697780:50510914012651:2800:86CA0723BF24BAA435AA859F8BD7053684ED9A35F60A81E4C10B654971197EA4.png[/IMG]

11. Select Data Storage location.

[IMG="https://communityfile-dre.op.hicloud.com/FileServer/getFile/cmtybbs/001/745/226/2640091000001745226.20200828104944.54857550517061003385750508403025:50510914012651:2800:E24B598C4D9FD868994A7E484C58C26D1512CFB9F3BC9878BB416186D147633C.png"]https://communityfile-dre.op.hicloud.com/FileServer/getFile/cmtybbs/001/745/226/2640091000001745226.20200828104944.54857550517061003385750508403025:50510914012651:2800:E24B598C4D9FD868994A7E484C58C26D1512CFB9F3BC9878BB416186D147633C.png[/IMG]

12. In Configuration Result, click Retry, it will provide new Configuration Results.

It prompts to enable service manually.

[IMG="https://communityfile-dre.op.hicloud.com/FileServer/getFile/cmtybbs/001/745/226/2640091000001745226.20200828105147.75510467155930145344230887757970:50510914012651:2800:B3417D37C2BFBD24CC51DA6ADEA492DE501143D5ADE791AC50E4C4EF65BA070F.png"]https://communityfile-dre.op.hicloud.com/FileServer/getFile/cmtybbs/001/745/226/2640091000001745226.20200828105147.75510467155930145344230887757970:50510914012651:2800:B3417D37C2BFBD24CC51DA6ADEA492DE501143D5ADE791AC50E4C4EF65BA070F.png[/IMG]

13. In AppGallery Connect, click Enable now Huawei PushKit.

14. In Configuration Result, click Retry, it will provide new Configuration Results. It prompts to enable API.

[IMG="https://communityfile-dre.op.hicloud.com/FileServer/getFile/cmtybbs/001/745/226/2640091000001745226.20200828105544.54361485666636922323750018082892:50510914012651:2800:4EF331573BD938427849B7C1E4DA099A1345904A885EEE6410585753D14AF0EE.png"]https://communityfile-dre.op.hicloud.com/FileServer/getFile/cmtybbs/001/745/226/2640091000001745226.20200828105544.54361485666636922323750018082892:50510914012651:2800:4EF331573BD938427849B7C1E4DA099A1345904A885EEE6410585753D14AF0EE.png[/IMG]

15. In AppGallery Connect, Enable Push Kit API as shown below.

[IMG="https://communityfile-dre.op.hicloud.com/FileServer/getFile/cmtybbs/001/745/226/2640091000001745226.20200828105657.66036915730464878704077176417990:50510914012651:2800:F94F8B547F92CA382C0FBC49BC0D3D671D2E1156985E0CA992BD70394186B168.png"]https://communityfile-dre.op.hicloud.com/FileServer/getFile/cmtybbs/001/745/226/2640091000001745226.20200828105657.66036915730464878704077176417990:50510914012651:2800:F94F8B547F92CA382C0FBC49BC0D3D671D2E1156985E0CA992BD70394186B168.png[/IMG]

16. In Configuration Result, click Retry. Finally it will provide success message.

[IMG="https://communityfile-dre.op.hicloud.com/FileServer/getFile/cmtybbs/001/745/226/2640091000001745226.20200828105903.94815964519447890631546168344309:50510914012651:2800:C06A2ED287ECABBEE9A060F15C689FBE94386B55905354D6D0718BD2E0F0FE9C.png"]https://communityfile-dre.op.hicloud.com/FileServer/getFile/cmtybbs/001/745/226/2640091000001745226.20200828105903.94815964519447890631546168344309:50510914012651:2800:C06A2ED287ECABBEE9A060F15C689FBE94386B55905354D6D0718BD2E0F0FE9C.png[/IMG]

Note: Check Event Log and see the details.

17. In Configuration Results click Go to Coding Assistant.

This is not the end. For full content, you can visit https://forums.developer.huawei.com/forumPortal/en/topicview?tid=0201339927413030084&fid=0101188387844930001