I\'m developing an Android app using Huawei\'s Push
service. I have installed DevEco IDE
plugin within Android Studio. But I don\'t have any
If you don't have Huawei devices to test your apps, you can use 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.
Check the screenshot below:
From: https://stackoverflow.com/a/63877454/13329100
If your app depends on any Hardware/Software specific service of Huawei device, using an emulator won't work. Also, Android Studio provides Google's generic Stock image so there's no way to create an emulator with EMUI (Huawei's Custom OS).
Fortunately, Google has Firebase Test Lab where you can test on real (5 tests/day) / virtual (10 tests/day) devices for free. Or you may try a 3rd party emulator like Genymotion
Huawei provides cloud debugging functionality for Huawei developers as a free service.
If you use Huawei SDKs, you should have Huawei Developer Account. Just need to login Huawei developer console and follow below instruction;
Updated Link https://developer.huawei.com/consumer/en/doc/development/AppGallery-connect-Guides/agc-clouddebug-realtimedebug
This functionality is really simple to use, The cloud debugging function allows for remote debugging on real devices. In the debugging process, you can view device information, upload and install your APK to the remote devices, obtain operation logs, and save the logs to your local computer for analysis.
You do not need for most cases Huawei device. Here is my battle-tested solution.
If you're implementing HMS (Huawei Mobile Services) feature like push notifications, SMS retrieving or auth(orization) you can do simply:
I am pretty sure that instead of emulator you can use any of physical devices, grab APK and install HMS Core on it.
Happy coding!