exp.json isRemoteJSEnabled not working
See original GitHub issueAccording to the documentation (https://docs.expo.io/versions/v16.0.0/guides/configuration.html),
isRemoteJSEnabled If set to false, your standalone app will never download any code, and will only use code bundled locally on the device. In that case, all updates to your app must be submitted through Apple review. Defaults to true.
I have set "isRemoteJSEnabled": false,
in exp.json but I still couldn’t remove the dependency of Expo server. Every time I kill and re-open the app, the app will check and download the latest JS code from expo server.
There was one similar issue: https://github.com/expo/expo/issues/228 @terribleben mentioned that "The very first load cannot be offline."
I found out that it is not true. This is how I found out:-
- I published app with Version 1.0.0 with Build 1 via Expo XDE.
- I achieved app with Version 1.0.0 with Build 1 to TestFlight.
- I downloaded the app Version 1.0.0 with Build 1 from TestFlight and opened for the First time (First load).
- I changed the app to Version 1.0.0 with Build 2 and at the same time I added a new Google event tracking. I published this new app via Expo XDE.
- I killed the app that I previously downloaded from TestFlight and re-launched it, I checked the version and it was Version 1.0.0 with Build 2. The new Google tracking was there as well.
It means that even if I set "isRemoteJSEnabled": false,
the app still downloads the latest code from the Expo server.
I would like to remove the dependency from Expo server because some of our users complained that they couldn’t load the app. It must be related to the First loading and Expo server.
The Expo server must be located far away from from south east asia (eg: Singapore)?
Any help would be appreciated related to remove the dependency on the Expo Server for the First loading. Thanks.
Issue Analytics
- State:
- Created 6 years ago
- Comments:15 (6 by maintainers)
“Solved this on slack”? I am not on Expo Slack.
As for the long term solution that you suggestion, I actually tried this method before.
But the First load is still slow. Sometimes when our mobile connectivity is limited (within a building with no wifi connection), we will see blank page on the First load. There are some users complained to us about this issue as well.
Due to this issue, we have been thinking to move away from Expo if there is no solution in the short term.
So, I believe this issue should be given a higher priority.
@terribleben we need an Andriod solution ASAP. This is not serious 😕