Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Huawei in-app updates? #288

Open
humzashahid-mobile opened this issue May 19, 2023 · 9 comments
Open

Huawei in-app updates? #288

humzashahid-mobile opened this issue May 19, 2023 · 9 comments
Labels
enhancement New feature or request How To? This is a how to question

Comments

@humzashahid-mobile
Copy link

it gives alert new version is available , but actually it is android new version on playstore and update now is redirecting to Playstore url in stead Huawei App Gallery?

Our is publish with same version in android playstore and Huawei App Gallery .

package is working fine with android playstore but for Huawei device is showing alert but redirecting to Playstore web url ?

Please help ?

@humzashahid-mobile
Copy link
Author

any updates ?

@8108905
Copy link

8108905 commented May 22, 2023 via email

@humzashahid-mobile
Copy link
Author

So you made package for HuaWei in app update, but you do not have devices , how you tested it ?

@larryaasen larryaasen added the How To? This is a how to question label May 23, 2023
@larryaasen larryaasen added the enhancement New feature or request label Jun 2, 2023
@larryaasen
Copy link
Owner

There is no solution for this right now in the upgrader package. With a small enhancement to the Appcast feature by adding the OS name, it may be able to target the Huawei App Gallery. However, I am not sure how to know which app store was used to install the app. How could we determine if the Huawei App Gallery or Google Play Store was used to install the app?

@byteripper
Copy link

This is the way i do it for now.
Set 'buttonTitleUpdate' to Update\nAndroid/IOS
Set 'buttonTitleLater' to Update\nHuawei
Use a function on 'onLater' to open the link to AppGallery

So the User can decide where to update.

There is no solution for this right now in the upgrader package. With a small enhancement to the Appcast feature by adding the OS name, it may be able to target the Huawei App Gallery. However, I am not sure how to know which app store was used to install the app. How could we determine if the Huawei App Gallery or Google Play Store was used to install the app?

You can detect the Huawei devices by checking whether a device has HMS Core APK installed,
or you can check the availability of GooglePlayServices in the device.

@GeylanKalafMohe
Copy link

Please include huawei app updates!

@larryaasen
Copy link
Owner

Look at the latest version of this package with a latest customization options. I think it now meets your needs. If not, please open a new issue with your details.

@hsynksahin
Copy link

Look at the latest version of this package with a latest customization options. I think it now meets your needs. If not, please open a new issue with your details.

I'm searching for a way to check app version on HUAWEI too but, cant see how to do it, Last commit #399 just contains some client header stuff it looks like. Can you explain how to?

My idea is to use onUpdate function and check if there is HMS Core Installed on the device (but not sure how to do it). Basicly if its installed we will push the HUAWEI store link (hope Huawei AppStore to catch it) than return false to block Upgrader's update event.

Even tho this could work, downside is that we are not checking Huawei store version but Google Play version. This is just a hope for their version will be the same. Any suggestions ?

@MrShakila
Copy link

You can find the updated Huawei App Gallery support in #451 Pull Request

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request How To? This is a how to question
Projects
None yet
Development

No branches or pull requests

7 participants