Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Expo uses old code even though new code has been deployed

I have a react-native app that is using Expo.

In the beginning of the project I pushed some code to the default publishing channel that was never intended to be used in production.

Since then I have released dozens of versions to production and mostly all works as expected. (New installs gets the latest JS code) However, a few users still gets old versions of the code, even though they literally just downloaded the app from App Store / Google Play.

This is extremely frustrating. How can I make sure that fresh downloads of the app will download the correct/latest version och my JS?

Note that this is not related to the app detecting new code that might be available for download. It is the fact that the wrong code is downloaded and used to begin with. Is there any way to remove all JS-code except the very last version that I published? I imagine that would solve my issue

like image 360
Eyeball Avatar asked Nov 07 '22 01:11

Eyeball


1 Answers

Turns out, expo don’t always do this successfully. You need to rebuild the react native bundle before publishing.https://proandroiddev.com/bundling-react-native-during-android-release-builds-ec52c24e200d

like image 144
Eyeball Avatar answered Nov 15 '22 12:11

Eyeball