5

I want to apply HMS to my app. However, buying an actual Huawei phone is not on my shortlist. Does Huawei provide an Android Virtual Device for that purpose? If not, how to test if my implementation of HMS actually works?

user1785730
  • 3,150
  • 4
  • 27
  • 50
  • It's not necessary to have an HMS enabled device, you can develop your application in android framework with google services whenever you will upload the application to the Huawei store it will ask you **what services you are using** then change them appropriately – Ali Sep 13 '20 at 19:44
  • Yeah sure, but how to test if everything works? – user1785730 Sep 13 '20 at 20:55
  • you can test the application on a usual AVD, the Huawei store will automate change the application structure appropriately. – Ali Sep 13 '20 at 21:21
  • Does that mean I don't have to integrate HMS myself? GMS is enough and the Huawei store will translate this somehow? – user1785730 Sep 13 '20 at 21:24
  • Yes, have a look at https://techlapse.com/global/how-to-publish-an-app-on-huawei-appgallery/ – Ali Sep 13 '20 at 21:25
  • 1
    Ok, I've read the documentation from your link. What's interesting and I didn't know is that one can upload apps with GMS to the Huawei App Gallery. However, GMS will only work on older devices, not affected by the US ban. GMS **will not work** on newer devices. I still want to integrate HMS in my app and my question, how to test that, still stands. – user1785730 Sep 13 '20 at 21:56
  • Oo I see mate. I'll find something, I hope I'll have a solution if so then I'll be more then happy to share :) – Ali Sep 13 '20 at 22:17

2 Answers2

9

Yes, Huawei do provide an Android Virtual Device called Cloud Debugging of AppGallery Connect to test your app for Huawei Devices.

Cloud Debugging tests your app using mainstream Huawei devices provided by Huawei. You can run your app on the latest and most popular Huawei devices to test app functions. Besides, you can debug apps on two real devices at the same time using one HUAWEI ID. Assume that you have applied for a device successfully.

Work with Cloud Debugging

  1. Sign in to AppGallery Connect and select My projects.
  2. Select an app to be tested.
  3. Go to Quality > Cloud Debugging.
  4. Filter devices by Series, Android version, EMUI version, and Resolution.
  5. In the Apply for device model dialog box that is displayed, set Debug duration based on your needs. The options are 30 min, 1 h, and 2 h.
  6. Wait for the device initialization to finish.
  7. Click the Debugging tab.
  8. Click Upload to upload an APK.
  9. Check the APK upload progress and install the APK after the upload is complete.
  10. In the displayed dialog box indicating that the app is being installed, click OK. When the installation is complete, you can see the app icon on the device screen on the left.
  11. Operate the device by moving or clicking your cursor on the device screen, or clicking the power button, home button, menu button, or back button. The device will respond like your own phone.

Check Screenshot below: cloud debugging

From: https://stackoverflow.com/a/63389096/13329100

zhangxaochen
  • 32,744
  • 15
  • 77
  • 108
2

If you don't have HMS device your side you can run HMS Application in three ways.

1. Huawei Cloud Debugging in App Gallery: In this method first we have to sign in App Gallery. You can see the article "Efficient integration of HMS open capabilities by using HUAWEI Cloud Debugging solution" for the step by step process of cloud debugging.

2. Cloud debugging through HMS ToolKit: Here first we have to install HMS Tool Kit plugin in Android Studio.You can use the article "Debug your application on any HMS Supported Model using HMS Toolkit Cloud Debugger - No Real Device Required" for step by step process.

3. Installing HMS Core App in your non HMS Device: You can install HMS Core app in your non HMS device. Once install it will ask to update the app. This will help you to run some Kits like awareness, ML, Ad etc in your device. Once we install we have to go to Settings->Apps and search for 'HMS Core'and grant the location or other permissions which are required.

Hope any of these method will help you.

Nithin
  • 932
  • 7
  • 14