Eventual connectivity - Group22-MobileApp/Grupo22-Moviles GitHub Wiki

Eventual connectivity strategies/scenarios

Id connectivity scenario 1
Event description The user tries to log in to the app but when he sends the petition there is no response because he lost connection
System response The user should be informed that the login was not successful due to his lack of connectivity
Possible Antipatterns 3
Caching + Retrieving strategy 1 from our list
Storage Type No clue
Stored data type Key value <NPI, NPI>
Behavior in our app image
Id connectivity scenario 2
Event description The user opens the app (he was already logged in) and is on the main page when he suddenly loses connection
System response The user should be informed that he doesn't have a connection but he should still be able to see the content that was cached before he lost the connection
Possible Antipatterns 3
Caching + Retrieving strategy 1 from our list
Storage Type No clue
Stored data type Key value <NPI, NPI>
Behavior in our app image
Id connectivity scenario 1
Context When a user is logging in, a request is sent to the database, this has the objective of comparing whether the email and password registered in Firebase Authentication match and in this way being able to return an access key
Event description The request cannot be sent and/or received due to problems in the network connection
System response When the system does not register the receipt of the key, it confirms the different error cases. The system consults checkInternetConnection, in case of connection failures, it reports the connection problems through a Dialog. If no errors are reported, it will continue with more tests to validate errors in the entry of credentials
Caching + Retrieving strategy The access key given by Firebase is cached, this way the login process is faster.
Storage Type No clue
Stored data type Key value <NPI, NPI>
Behavior in our app WhatsApp Image 2024-04-26 at 10 37 01 PM

Services

checkInternetConnection: A service was developed to check the status of the Internet connection. This function implements a http request (ping) to Google to check the internet connection and through this process returns false if the expected response is not received and true otherwise. This information is used to make decisions regarding requests to the database.|

⚠️ **GitHub.com Fallback** ⚠️