Configurable server host domain #2
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "configurable-server-host"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Motivation
Users need be able to provide the host domain of their home server, and change it if needed.
Solution
If a host domain is not provided, the app displays an input expecting a full URL, including protocol. Once provided, the app begins checking the availability of this URL in the background and dispatching notifications if it is down.
Host domains are saved using @capacitor/preferences which utilizes UserDefaults on iOS and SharedPreferences on Android (currently untested).