Updating standalone always use old JS bundle at first. Happens on both iOS and Android. Tested with TestFlight and Google Play Beta.
- For example, 1.0.0 is based on SDK v25 while 2.0.0 is based on SDK v27.
- Install the old version and open. => 1.0.0.
- Update app on testflight and open. => Still 1.0.0
4, Close app and open it again. => 2.0.0
Related issue before: Standalone iOS app update doesn't immediately update js
I am surprised that not many people has reported this issue before. I have seen it from SDK v1x until now, and it is actually quite a serious issue.
Causing another bug for SDK v27
Even more serious now is that my new app based on SDK v27.0.0 is unable to use the location service after upgrading the standalone. But it works fine if I uninstall it and install a brand new one.
I suspect it is due to it loading the old js bundle (which is confirmed happening) for v25 in the new SDK v27 build and crashes something that cannot be reverted. No matter the cause of this, fixing the above issue should fixes this also.
Because of this, I am holding back my SDK v27 deployment after having gone through so much pain on waiting and fixing everything. Because my current user’s app will crash after updating.