Skip to content

Commit e7fccf2

Browse files
author
Muhammed Simsek
committed
Removed the need to add C to the beginning of the appGalleryID
1 parent 742d6d7 commit e7fccf2

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ AppLink.openInStore({ appName, appStoreId, appStoreLocale, playStoreId, appGalle
6666

6767
`config.playStoreId`: (String) the app's package identifier on the Play Store (Android). Example: `{ playStoreId: 'me.lyft.android' }`
6868

69-
`config.appGalleryId`: (String) the app's ID on the AppGallery (Android). Example: `{ appGalleryId: 'C100170981' }`
69+
`config.appGalleryId`: (String) the app's ID on the AppGallery (Android). Example: `{ appGalleryId: '100170981' }`
7070

7171
---
7272

@@ -82,6 +82,6 @@ AppLink.openInStore({ appName, appStoreId, appStoreLocale, playStoreId, appGalle
8282

8383
`config.playStoreId`: (String) the app's package identifier on the Play Store (Android). Example: `{ playStoreId: 'me.lyft.android' }`
8484

85-
`config.appGalleryId`: (String) the app's ID on the AppGallery (Android). Example: `{ appGalleryId: 'C100170981' }`
85+
`config.appGalleryId`: (String) the app's ID on the AppGallery (Android). Example: `{ appGalleryId: '100170981' }`
8686

8787
> If there are any issues file an issue above and don't hesitate to spin up a PR and contribute!

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export const maybeOpenURL = async (
1616
} else {
1717
if(appGalleryId != null) {
1818
Linking.openURL(
19-
`hiapplink://com.huawei.appmarket?appId=${appGalleryId}`
19+
`hiapplink://com.huawei.appmarket?appId=C${appGalleryId}`
2020
).catch(err => {
2121
console.log(err)
2222
if(err.code == 'EUNSPECIFIED') {
@@ -44,7 +44,7 @@ export const openInStore = async ({ appName, appStoreId, appStoreLocale = 'us',
4444
} else {
4545
if(appGalleryId != null) {
4646
Linking.openURL(
47-
`hiapplink://com.huawei.appmarket?appId=${appGalleryId}`
47+
`hiapplink://com.huawei.appmarket?appId=C${appGalleryId}`
4848
).catch(err => {
4949
console.log(err)
5050
if(err.code == 'EUNSPECIFIED') {

0 commit comments

Comments
 (0)