expo / turtle

Standalone app builder service
MIT License
385 stars 29 forks source link

Disable ota updates #385

Open marcoamt opened 2 years ago

marcoamt commented 2 years ago

Question Checklist

Question Subject

I would like to know if we can disable expo ota updates

Question Description

In my app.json I setted updates.enabled = false but when I install my enterprise .ipa and open the app it shows an error saying "Could not connect to development server". But in android this error is not happening.

wkozyra95 commented 2 years ago

How are you building your app? It sounds like you build debug app.

DarkVito commented 2 years ago

How are you building your app? It sounds like you build debug app.

Hello. I have similar issues. I built like this. How i can build not debug app? expo export --public-url $SERVER_URL --dev turtle build:ios --team-id $TEAM_ID --dist-p12-path "...." --provisioning-profile-path "..." --allow-non-https-public-url --public-url "$SERVER_URL/ios-index.json" --build-dir "/Users/developer/product/MobileApp"

SrZorro commented 2 years ago

Hi everyone, I had the same issue.

My android build worked with an HTTP server with the --dev and --allow-non-https-public-url flags and worked with the updates disabled (aka using the bundled version), but the iOS build returned the error "Could not connect to the development server" when opening the app.

What fixed this problem for me was removing that two flags (I guess the one causing the problem was the --dev flag) and adding SSL to my web server. Now atleast the iOS simulator its opening the app correctly with the bundled version.

brentvatne commented 2 years ago

you should switch to EAS Build, where you can remove the expo-updates library from your app entirely. https://docs.expo.dev/build/introduction/