App Store returns previous version which is different from current version - react-native

I built a React-Native app where app version is shown to user. My iOS app's current App Store version is 1.0.2 which is being shown in the App Store Connect itself. But when when I tried to fetch the version by using following query,
http://itunes.apple.com/lookup?bundleId=${bundleID}
result is showing as 1.0.1.
I checked this immediately after update is happened.
Is there any window time to check the app version after updating in App Store Connect or Am I doing something wrong here?

Related

Android only version code is updating .application not updating

I pushed the app update on 28 June. But still some of our users are getting the old apk of app but the version code is latest on app info. and they cannot see the update button on play store.
I contacted support regarding this and they said that i should clear the cache of paly store.
Well i cannot go to every user and say them to clear cache of play store in order to get the latest update.

React native automatic update from store

Hi guys I need my react native app to update it self automatically (with user consent) when new version is published to the store (both android and ios)
I need the app to download the apk or ipa and complete the update process, not using CODE PUSH or OTA,
is it possible?
The app itself can't do that.
The closest thing you can do is:
Verify app version against the version on the server (if you have a back end).
Present a button to the user which will open the app store off your platform directly at your app's page, using deep linking.
You will have to keep server and deployed app versions in sync.

How to Get the specific APP_Version_Name or App_Version_Code that is currently installed in user's mobile In REACT-NATIVE

I updated the App in playstore and i get the updated app version code, but Now I want to fetch the current version code that the user has installed. So then i match both the version codes, on that behalf i alert the user to update new version of that app. So how to find the current version of App the is installed in mobile?
You can use https://github.com/react-native-device-info/react-native-device-info#getversion.
you need to get the installed version from react-native-device-info#getversion and compare it with the version on your DB.

Set and get app version name and app version code for react-native-web application

Is there a way to set an app version and build number for a react-native-web app?
I am currently using react-native-web for an app (for IOS, Android and Web).
I am also using react-native-device-info.
Currently for web when I use:
DeviceInfo.getReadableVersion() or DeviceInfo.getVersion() or DeviceInfo.getBuildNumber() I get only 0.0 and 0.
Getting the version and build number works perfect for android and iOS but I have no idea how to set it and get it for web.
There is no way to get a version of a website, because there is no .apk or .ipa installed on the browser. I suggest you create your own version system, and put it in some meta tag:
<meta name="my-app-version" content="1.0.0" />
Also you can do this directly on your JS code:
export const APP_VERSION = "1.0.0"
Control version in the browser is less required than in the native side. Only do this if you need to force the user to update to the last version, as example: you can force the user to refresh the page and download the last bundle if version is different from and API endpoint that you configured.
Users will eventually refresh or close the tabs of the browser and when they come back, the last version of the code will be available.

Do OTA updates in Expo get in motion on the first opening after brand new download from the stores?

I developed an app with React Native and distributed it with Expo. I published the final version into Google Play and Apple Store.
Some time later I discovered in Expo's docs on Publishing that expo publish allows you to create an OTA ("over the air") update that is built into Expo and updates the app automatically, according to this answer:
The standalone app knows to look for updates at your app's published url.
This I tested and worked very well.
However, now I see that people downloading the app from the stores (that is, either Google Play or Apple Store) apparently get the initial version of the app, not the updated one.
What is the exact workflow for the OTA updates? Do they go and "replace" the existing version in Google Play and Apple Store the first time they open it? Or do they need to open it over again to get the update?
And what exactly triggers the update of the app?
We've been having similar problems. I can see two things which might be causing this in your case:
Check in app.json if updates.fallbackToCacheTimeout is set. If it's set, that's how long expo will try to download the latest update before showing the last downloaded version (which will be the initial version after initial download).
If you have a large update, expo will try downloading the update for 30s before showing the last version of your app.
Check here for more info: https://docs.expo.io/versions/latest/guides/configuring-ota-updates/
OTA updates do not replace the version downloaded from the app store, they are stored first in the device's cache before being run on app start after download. Source https://docs.expo.io/versions/latest/sdk/updates/
Update downloads are automatically triggered on app start, then, depending on the settings it will either wait (as long as updates.fallbackToCacheTimeout allows) before showing the app, or show it immediately.
You can force the app to run the latest update (if you have one waiting) by just force quitting the app, then restarting.
Hope this helps!