From 9d19a64c010aa24680ef1c7be8633bfe25d1a222 Mon Sep 17 00:00:00 2001 From: Konstantin Date: Wed, 29 Jul 2020 19:53:15 +0300 Subject: [PATCH] Update README.md --- README.md | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 7a9f3e31..b8859d32 100644 --- a/README.md +++ b/README.md @@ -34,8 +34,18 @@ Mobile Messaging SDK is designed and developed to easily enable push notificatio ``` HMS App ID could be taken from Huawei Developer Console - Application settings - -5. Add code to `MainActivity#onCreate` + +5. Download `agconnect-services.json` from AppGallery Connect and copy it to your app's folder. + + a. Find your App from the list and click the link under Android App in the Mobile phone column. + + b. Go to Develop > Overview. + + c. In the App information area, Click `agconnect-services.json` to download the configuration file. + + **Note** that if you are developing / testing FCM and HMS at the same device then better to remove cache for installed app, remove app and after that install build with other push cloud. + +6. Add code to `MainActivity#onCreate` ```java public class MainActivity extends AppCompatActivity {