sphinx-kotlin icon indicating copy to clipboard operation
sphinx-kotlin copied to clipboard

Error Notifications

Open 05nelsonm opened this issue 4 years ago • 0 comments

Need a way to notify the user when there is an error such that they can be informed in the event something goes wrong.

Example: Their network connection is slow. They create a new contact and navigate back to the Dashboard. The network request for creating a new contact completes with exception. They're no longer on the "new contact" screen and have no way of knowing if it was created or not.

Concept: Create a repository-error-handler interface and implement in SphinxRepository where by the Activity can observe a BroadcastChannel and post up errors to the screen by toggling an ErrorViewState that requires user to select OK (just like the iOS app).

05nelsonm avatar May 19 '21 17:05 05nelsonm