Currently, I am checking on SplashScreen
whether token exist or not, on that basis app navigates to either SignIn
or Home
.
On Home
when I turn off the internet, it shows a dialog that there is no internet connection. By turning it on, the dialog disappears.
The problem is when I close the app and turn off the internet and then open the app it navigates to SignIn
. I expect it to be navigated to Home
as token is already there.
It works normally when I turn on the internet and visit the app, it navigates to Home
directly.
Need an idea to resolve this issue.