Help! App on stores suddenly does not access backend anymore while backend server still working

I don’t know where to post my issue but we’re facing really weird problem

We have an app that is deployed on Google Play Store and App Store, it’s a managed workflow app with SDK 39. it’s been working fine for weeks.
Suddenly, this morning we noticed that the app doesn’t work anymore because it doesn’t access backend server anymore (no logs on backend).
Though, the server works fine with direct call to APIs and even when we call it from same front app but in dev environment or Testflight environment (isn’t that silly?).
We did not modify the back, we did not move any new version on the stores…
Something really weird is that when we delete the app on a telephone then reinstall it, it works the first time (access to backend) and then the second time and so on it does not work anymore.

What we did is moving from SDK 39 to SDK 42 and working and EAS build but in dev ONLY. We did not push anything on the stores and did not make any changes on the back.

We are lost!!! Does anybody has any clue, idea, help…

Thank you so much in advance :pray: :pray: :pray:

it works the first time (access to backend) and then the second time and so on it does not work anymore.

This behavior suggests that after install the app is using bundle embedded into apk/ipa, but after the restart, it’s using a version from ota update that has some bug. OTA update is published every time you run expo publish or expo build, but not when you run eas build, most likely you or someone on your team run one of those commands with the production release channel

you can check last published OTA updates with expo publish:history and if you see something that shouldn’t be there then you can rollback it with expo publish:rollback

Indeed, I did an expo build on Monday. I will try a rollback

If you don’t want to affect production when creating builds use different release channels

I had this history before rollback

General Info │ │
├──────────────┼────────────────┤
│ fullName │ @gferon/yooviz │
└──────────────┴────────────────┘
┌────────────────────────────────────────┬───────────────┬───────────────┬───────────────┬────────────────────────────────────────┬────────────────────────────────────────┐
│ publishedTime │ appVersion │ sdkVersion │ platform │ channel │ publicationId │
├────────────────────────────────────────┼───────────────┼───────────────┼───────────────┼────────────────────────────────────────┼────────────────────────────────────────┤
│ Mon Jul 26 2021 16:16:56 GMT+0200 │ 1.0.3 │ 39.0.0 │ ios │ default │ 480bf774-67d2-4dcb-9e24-d73afcf43fd7 │
├────────────────────────────────────────┼───────────────┼───────────────┼───────────────┼────────────────────────────────────────┼────────────────────────────────────────┤
│ Mon Jul 26 2021 16:16:56 GMT+0200 │ 1.0.3 │ 39.0.0 │ android │ default │ eff3ca48-154f-4533-82a3-19e4f0f03775 │
├────────────────────────────────────────┼───────────────┼───────────────┼───────────────┼────────────────────────────────────────┼────────────────────────────────────────┤
│ Mon Jul 26 2021 12:40:41 GMT+0200 │ 1.0.3 │ 39.0.0 │ android │ default │ 528f66aa-d830-4676-82e0-406fa96f8529 │
├────────────────────────────────────────┼───────────────┼───────────────┼───────────────┼────────────────────────────────────────┼────────────────────────────────────────┤
│ Mon Jul 26 2021 12:40:41 GMT+0200 │ 1.0.3 │ 39.0.0 │ ios │ default │ 4564b2b7-3b13-429f-b8d3-ffa5fe36201b │
├────────────────────────────────────────┼───────────────┼───────────────┼───────────────┼────────────────────────────────────────┼────────────────────────────────────────┤
│ Mon Jul 19 2021 22:19:45 GMT+0200 │ 1.0.3 │ 39.0.0 │ android │ default │ 6f9132c5-b032-45eb-b7d2-bdbc58174a25 │

And this one afterwards:
General Info │ │
├──────────────┼────────────────┤
│ fullName │ @gferon/yooviz │
└──────────────┴────────────────┘
┌────────────────────────────────────────┬───────────────┬───────────────┬───────────────┬────────────────────────────────────────┬────────────────────────────────────────┐
│ publishedTime │ appVersion │ sdkVersion │ platform │ channel │ publicationId │
├────────────────────────────────────────┼───────────────┼───────────────┼───────────────┼────────────────────────────────────────┼────────────────────────────────────────┤
│ Mon Jul 26 2021 12:40:41 GMT+0200 │ 1.0.3 │ 39.0.0 │ ios │ default │ 4564b2b7-3b13-429f-b8d3-ffa5fe36201b │
├────────────────────────────────────────┼───────────────┼───────────────┼───────────────┼────────────────────────────────────────┼────────────────────────────────────────┤
│ Mon Jul 26 2021 12:40:41 GMT+0200 │ 1.0.3 │ 39.0.0 │ android │ default │ 528f66aa-d830-4676-82e0-406fa96f8529 │
├────────────────────────────────────────┼───────────────┼───────────────┼───────────────┼────────────────────────────────────────┼────────────────────────────────────────┤
│ Mon Jul 26 2021 16:16:56 GMT+0200 │ 1.0.3 │ 39.0.0 │ android │ default │ eff3ca48-154f-4533-82a3-19e4f0f03775 │
├────────────────────────────────────────┼───────────────┼───────────────┼───────────────┼────────────────────────────────────────┼────────────────────────────────────────┤
│ Mon Jul 26 2021 16:16:56 GMT+0200 │ 1.0.3 │ 39.0.0 │ ios │ default │ 480bf774-67d2-4dcb-9e24-d73afcf43fd7 │
├────────────────────────────────────────┼───────────────┼───────────────┼───────────────┼────────────────────────────────────────┼────────────────────────────────────────┤
│ Mon Jul 26 2021 12:40:41 GMT+0200 │ 1.0.3 │ 39.0.0 │ android │ default │ 528f66aa-d830-4676-82e0-406fa96f8529 │
└────────────────────────────────────────┴───────────────┴───────────────┴───────────────┴────────────────────────────────────────┴────────────────────────────────────────┘

It doesn’t seem to change much…

And it’s still not working, maybe rollback again?

Is there a delay between the rollback and the effectiveness of this new update on OTA ?

Thanks

We fixed the issue by those commands :

expo publish:history --count 10
to display 10 latest builds and find the ones that work for sure

expo publish:set --release-channel default --publish-id <build id that works>

to publish the one build that works with the right OTA update

And it works fine now. Thanks for your help, we didn’t know about OTA update

1 Like