Just like mobiles with Google applications, they pre-install Google services, Huawei pre-installs the Huawei Services or HMS. Following the US veto, Huawei has enhanced their services so that they do practically the same as Google’s, but there is a problem: applications built to use GMS do not work with HMS, although the same can be done technically.
To fix it, come Choice SDK, an open source SDK that can be used to an application can use Google or Huawei services, depending on which are available, without the need to create two different versions of the application.
{“videoId”: “x7zw681”, “autoplay”: true, “title”: “What’s happening with Huawei, Android and the US ban and how it affects users”}
HMS and GMS, depending on what is available
The new Huawei terminals do not include Google services, but rather incorporate a whole ecosystem of their own, including Huawei Mobile Services and its own application store Huawei App Gallery. Despite Huawei’s efforts to get developers to upload apps to its store, there is a problem: adapt applications to use HMS it is an expensive process.
Choice SDK, which has not been created by Huawei, comes as a somewhat simpler way. It still won’t be as easy as pressing a button, but after integrating this SDK into an application, it should be ready to go. work both on mobiles with Google and Huawei Services.
What the Choice SDK does in practice is to act as an intermediary so that it is not necessary to compile two different versions of the application, but the SDK takes care of redirecting the requests to the services that are available.
For example, in an application that displays a map, Choice SDK can be in charge of sending and receiving the data to the Google Maps API or to the Huawei MapKit, and the same applies to the rest of the services available in HMS and GMS. At the moment, Choice SDK presents a universal way to access the services of analytics, location, maps, messaging and login. Source code and documentation is available on GitHub.
Via | GSMArena
–
The news
Choice SDK is an “easy” way for developers to move their apps from Google services to Huawei.
was originally published in
Engadget Android
for
Ivan Ramirez
.