We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I add this in info.plist
<key>LSApplicationQueriesSchemes</key> <array> <string>itms-apps</string> </array>
This is my function in the main screen
const checkForUpdates = () => { const inAppUpdates = new SpInAppUpdates(false); // curVersion is optional if you don't provide it will automatically take from the app using react-native-device-info inAppUpdates .checkNeedsUpdate() .then((result) => { if (result.shouldUpdate) { const updateOptions = Platform.select({ android: { updateType: IAUUpdateKind.IMMEDIATE, }, ios: { title: i18n.t("UpdateAvailableTitle"), message: i18n.t("UpdateAvailableMsg"), buttonUpgradeText: i18n.t("Update"), buttonCancelText: i18n.t("Cancel"), }, }); inAppUpdates.startUpdate(updateOptions); } }) .catch((err) => { console.log("checkForUpdates ERROR ==>", err); }); };
I called it in useEffect, but it works on Android only, IOS it doesn't show
"react-native": "0.66.5", "sp-react-native-in-app-updates": "^1.4.0", "react-native-device-info": "^8.0.0",
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I add this in info.plist
This is my function in the main screen
I called it in useEffect, but it works on Android only, IOS it doesn't show
"react-native": "0.66.5",
"sp-react-native-in-app-updates": "^1.4.0",
"react-native-device-info": "^8.0.0",
The text was updated successfully, but these errors were encountered: