Skip to content

Conversation

Muhammed55
Copy link

@Muhammed55 Muhammed55 commented Mar 5, 2021

First of all, thank you for creating react-native-app-link.
It is used by many developers to open their apps' detail page on the App Store or the Play Store.

As you likely already know, the new Huawei Android-powered devices (starting from the P40 and Mate 30 Series) do not come with the Play Store preinstalled. This has lead to the increase in popularity of Huawei's own application store, called the AppGallery.

Many developers using your library might already have uploaded their applications to the AppGallery. It would be nice if these developers had the ability to redirect users to their app's detail page on the AppGallery as well.

The changes I made here will allow developers to additionally provide their app's "appGalleryId" to the maybeOpenURL() and openInStore() functions. If AppGallery is not installed on the user's Android device, the Play Store link will be opened instead.
If the developer does not provide the "appGalleryId" parameter, the Play Store link will be opened like before.

This is an approach that seems to work. I thought of other approaches, like checking which application stores are installed on the device to decide which application store to open, but that would require adding extra dependencies to react-native-app-link, which I tried to avoid.

Please let me know if you agree with this change or if you think it could be done better.

@Muhammed55 Muhammed55 changed the title App gallery branch Added the possibility to open the app detail page in AppGallery Mar 5, 2021
…esent. If not, it will open the Play Store link.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant