News

Everything you need to know about applications generated with GeneXus for Huawei AppGallery

GeneXus Apps now work perfectly on the new Huawei cell phones! In this article, you will learn how to generate applications for Huawei devices – which are not compatible with Google Play Services – and publish them in the AppGallery.

GeneXus 17 Upgrade 2 was recently released, and it includes GeneXus support for Huawei. 

This adds yet another edge to our versatile low-code multi-platform software development offering, and it is highly strategic because although the AppGallery was launched very recently, it has already become the third largest application distribution platform in the world, behind the App Store and Google Play (420 million active users on 700 million devices). 

More specifically, all new Huawei devices will use AppGallery as the default platform, replacing all Google Play* services with Huawei-specific services in its AppGallery store.

About this upgrade, Fernando Panizza from the GeneXus R+D team says that: “We are very pleased with this achievement because it enables the GeneXus Community to generate applications for the latest Huawei devices (that don’t have Google Play Services) and publish them in the AppGallery. In this way, from GeneXus we continue to reach the largest markets for mobile application development.

We have worked together with Huawei and thanks to their assistance we have implemented Huawei support, replacing Google Play Services – which are no longer available on these devices – with those provided by Huawei through its HUAWEI Mobile Services (HMS). 
In this new development, Analytics, Notifications and other services were included, as described in the GeneXus Community Wiki documentation. In future GeneXus upgrades, we will add more services to keep evolving in this new application development platform.”
Official app of Liga BBVA MX uses this feature and is already available in Huawei AppGallery.

How to generate applications for Huawei cell phones, step by step:

First, register with HUAWEI Developers to obtain a Huawei ID. Once validated, you can access all the services provided to develop, test, distribute and monetize your application. Depending on the size of your organization, you may consider creating a team account.

√ Enable generation for Huawei 
  • The applications generated for HUAWEI Mobile Services Platform (HMS) are Android applications, so the first step to enable HMS generation is to enable the Generate Android property in GeneXus.
  • Next, enable the Generate Huawei property.
  • By configuring this, GeneXus will generate two versions of the Android application, a classic Android application in the mobile \ Android folder and an additional one in the mobile \ Huawei folder.  
√ Test the application generated for Huawei
  • When the Generate Huawei property is set to True, you can select Huawei as the main prototyping platform by setting the property Main platform = Huawei. In this way, you can switch between Android and Huawei prototypes.
√ Run different services in an application
  • After creating the application with AppGallery Connect, enable the desired services and follow the configuration steps. 
  • In general, the selected APIs can be checked in My Projects> Project Settings> Manage APIs section.
  • Thoroughly test your application and, when ready, return to AppGallery Connect to upload the APK and launch your application in AppGallery. 

Lastly, you’re invited to explore our technical documentation in the GeneXus Community Wiki: https://wiki.genexus.com/commwiki/servlet/wiki?47484,GeneXus+support+for+Huawei+Mobile+Services+Platform

*This distribution platform was created in April 2018 due to U.S. sanctions on Huawei. The company lost access to Google mobile services in May 2019 and, from then on, it was unable to use Google services on its new phones, especially the Mate 30; therefore, it started launching its phones using only Huawei's AppGallery without Google Play services installed.