4

I am developing an app for android, on Huawei devices I am facing many issues. I am using FusedLocation and Notifications in my app due to which I had to develop another app for Huawei devices as many Huawei devices are not supporting GMS now. I am unable to understand the main difference between HMS and GMS.

  • If a Huawei device is containing both GMS and HMS and app is downloaded from App Gallery (that contains HMS support) then HMS core will cause some issues. Notifications and Location callback will not work correctly.
  • If a device contains only HMS core and app is downloaded from AppGallery then it will work fine.
Faizan Ahmad
  • 352
  • 4
  • 20

1 Answers1

1

You are advised to use the solution for integrating both GMS and HMS. The advantages are as follows:

  1. Reduce the complexity of app packaging. A package can be released to both Google Play and HUAWEI AppGallery.
  2. Reduce the code maintenance cost. The HMS+GMS adaptation layer code is added to the original logic code. In this way, proper code can be automatically called based on the mobile phone. That is, you do not need to modify existing logic code or maintain two sets of code.

It is recommended that you use HUAWEI HMS ToolKit, which can help you quickly add the HMS+GMS adaptation layer code and upgrade your logic code to support both GMS and HMS.

For details, You may refer to this question: Have both GMS and HMS in the project.

zhangxaochen
  • 32,744
  • 15
  • 77
  • 108
  • 1
    I know this, I am also working on it. i am also using Huawei HMS Toolkit, but my main question is this that what is main difference between HMS and GMS? If a device have google plastore and app is downloaded from app gallery then why it is not working fine on it? – Faizan Ahmad Oct 30 '21 at 14:07
  • It's weird. The HMS SDK should supports Huawei GMS phones, could you mind share the complete log, so that we can analyse this issue? – zhangxaochen Nov 01 '21 at 02:43
  • 1
    The issue was faced by one of my client, I will try to reproduce it againthen I will share it. Thanks – Faizan Ahmad Nov 01 '21 at 06:31