Tonomy ID is the cross-platform mobile wallet (Android and iOS) for public and private Antelope blockchains. This application allows you to sign transactions on the block chain, share your DID and Verifiable Credentials containing your identity with others in a consensual way and log into web2 and web3 applications.
monitor net connection and handle (blanket the error)
when we redirect user to splash screen, instead redirect them to the more appropriate screen. e.g. when they logout send them straight to the UserHome screen
handle the connection error directly (don't use NetInfo)
add new state that skips initialization except for when the user first opens the app
the initialize() should only be called when user opens the app for first time - not any other time
flags to check when to call it (approach 4)
check that when it is not called it keeps working (maybe need approach 2?)
when initialize() is called. use error handling to check if network error (not NetInfo object). if there is an network connection issue:
ideal case: keep the user in their current state, and try initialize every 10s or so in the background. once initialization works change their state as normal (approach 3)
Steps to replicate the issue
What do you expect to happen?
What actually happens
Also, why does it always freeze when we go to the splash screen? can we get it so that it Elisa can recover and take user back to the home screen?
Your environment