【发布时间】:2019-01-30 22:17:34
【问题描述】:
如果更新可用,我正在使用 react-native-version-check 打开应用商店/播放商店,但在 iOS 上它打开 iTunes 商店,我想打开 AppStore。
这是我的代码:
_onPressUpdate = async () => {
Linking.openURL(await VersionCheck.getStoreUrl({ignoreErrors: false, appID: "407690035", appName: "hotel-tonight-last-minute", packageName: "com.hoteltonight.android.prod"}));
}
// this appID and appName is just from some random app on the app store for testing
【问题讨论】:
-
嗯,根据this discussion iTunes 商店是 iOS 应用商店
-
该链接给了我 404。我认为 iTunes 仅在某些国家/地区可用。
标签: javascript ios react-native app-store