Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature - Maintenance mode #82

Merged
merged 6 commits into from
Apr 26, 2021
Merged

Conversation

victor-sarda
Copy link
Collaborator

Description

As mentioned in #78, we need a maintenance page feature to block the app in ever we face a major issue with the data.
Of course this is very unlikely to happen and should only be used as a last resort.

The page is a simple UIViewController with an embedded web view that loads a given url. If the url is somehow invalid, we show a local html page as a fallback. Please bear in mind this should never be the case.

The logic is driven by a remote config value named ios_maintenance_mode_url. If the value is not nil nor empty, the page will show up. The empty check on the value is primordial because, if not set, the config default value won't return nil but "".

Attachments

Local HTML page Remote Page
image image

Closes #78

@victor-sarda victor-sarda added the enhancement New feature or request label Apr 26, 2021
@victor-sarda victor-sarda added this to the 1.0.1 milestone Apr 26, 2021
@victor-sarda victor-sarda self-assigned this Apr 26, 2021
@victor-sarda victor-sarda added this to In progress in iOS App via automation Apr 26, 2021
Copy link
Collaborator

@pauljeannot pauljeannot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Really cool, exactly what we decided when we kicked off the feature. What a master class 😎

iOS App automation moved this from In progress to Reviewer approved Apr 26, 2021
@victor-sarda victor-sarda merged commit faca0e6 into develop Apr 26, 2021
@victor-sarda victor-sarda deleted the feature/maintenance-mode branch April 26, 2021 22:35
iOS App automation moved this from Reviewer approved to Done Apr 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

Feature - Add a maintenance page
2 participants