My iOS App is not updating through CodePush.
I have added CodePush dependencies in my iOS App. Also I am able to successfully released an update to AppCenter using CodePush. But changes are not updating in my iOS app.
My React-Native module code is like below :
const codePushOptions = {
checkFrequency: codePush.CheckFrequency.ON_APP_RESUME,
installMode: codePush.InstallMode.ON_NEXT_RESUME,
};
export default Dashboard = codePush(codePushOptions)(Dashboard);
And loading component from javascript in iOS Swift:
let jsCodeLocation = CodePush.bundleURL()!
let addRatingView = RCTRootView(bundleURL:jsCodeLocation as URL!, moduleName: "Dashboard", initialProperties: nil, launchOptions:nil)
I faced the same issue with iOS only. Be sure to insert the mandatory flag '-m' when releasing updates.
appcenter codepush release-react -a <YourName>/<AppName> -d Production -m --description '<Description>'