Skip to content

Commit

Permalink
Merge remote-tracking branch 'github/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
Konstantin Latypov authored and Konstantin Latypov committed Sep 9, 2020
2 parents 19622ff + 9d19a64 commit 08b35d9
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,18 @@ Mobile Messaging SDK is designed and developed to easily enable push notificatio
</resources>
```
HMS App ID could be taken from Huawei Developer Console - Application settings

5. Add code to `MainActivity#onCreate`

5. Download `agconnect-services.json` from <a href="https://developer.huawei.com/consumer/ru/service/josp/agc/index.html" target="_blank">AppGallery Connect </a> 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 {
Expand Down

0 comments on commit 08b35d9

Please sign in to comment.