freeCodeCamp / mobile

freeCodeCamp's open-source mobile app made with Flutter
https://contribute.freecodecamp.org
BSD 3-Clause "New" or "Revised" License
427 stars 131 forks source link

update app modal undismissable #1267

Closed ShaunSHamilton closed 5 months ago

ShaunSHamilton commented 5 months ago

When there is an update of the app, a modal pops up asking if I would like to do so now. However, when I do not want to, the modal is non-dismissable - no close button, and tapping outside the border of the modal does not close it either.

Modal Image ![WhatsApp Image 2024-05-19 at 12 57 37_f753f2e0](https://github.com/freeCodeCamp/mobile/assets/51722130/0e062998-50d6-472d-8b1e-db5ec98e5eca)
Device Info - iOS Version: 17.4.1 - Model: iPhone SE MMXF3B/A - App version in image
Nirajn2311 commented 5 months ago

Yes, this is the intended behavior but in the recent version we made the requirement to show the upgrade dialog a bit relaxed and dependent on a minimum app version value which we set. This way the dialog isn't shown up everytime there's an upgrade and instead will only show up when there's a breaking change or major fixes involved in the update(as you can see in the release notes there was a breaking behavior of the MCQ challenges).

The reason I went with this behavior is because it's easier to push out updates in sync with our APIs and also prevent users being in older versions with known bugs.

ShaunSHamilton commented 5 months ago

That does make a lot of sense.

The only issue was I could not update the app, because I was on mobile data, but wanted to listen to a downloaded podcast.

Thank you for the clarification, though.