Search code examples
google-maps-api-3huawei-developersappgallery

huawei devices are not loading the google maps inside my app


I am trying to upload my app to the huawei's app gallery but every time I upload it for a review they send a vid where the map inside the app is not loading, At first i thought the issue was that they might be testing it using a device that doesn't have GMS but even after that, the map is not loading

what I tried so far -I added the signing-certificate fingerprint to the google cloud

but i then remembered that Huawei makes you sign the app with another signing certificate which is SHA-256 and the google console can only take SHA-1 how can i fix this issue huawei's signing certificate


Solution

  • The issue was as expected since Huawei uses the app signing certificate that they created, it wouldn't load the map because google can't take SHA-256, so to fix the issue you should use APK instead of AAB to be able to use your app signing certificate to let the app be able to communicate with the API.

    that means you can only use AAB when the app uses HMS instead of GMS