Open roberthoenig opened 6 years ago
Thanks for that investigation and bug report. It is very important to do more testing of the app's behavior when offline as this will be a frequent occurrence in real-life mobile use.
Each <li>
you listed is likely a separate bug. I think two of them are trivial to fix and I am doing it right now. Would you mind splitting them?
@borisyankov just to get in sync, I'm currently trying the Not connected to the internet
banner on my own.
Let me know if you wanna go ahead and fix this, but I'd appreciate the opportunity to try this and get some feedback :)
My approach is to move the <OfflineNotice />
tag to a prominent position in the app:
...
<StylesProvider>
<OfflineNotice />
<AppWithNavigation />
</StylesProvider>
...
Is this the right direction?
Go ahead, I am investigating the other issues :)
One issue might be that the state might not be initialized correctly if starting from the offline state.
Also, on the OfflineNotice
being moved up the chain that looks reasonable, but I think it will show above our top navigation UI which wouldn't look good. Not a bad idea to try it.
This is what I have now. I don't think it looks good, but it doesn't look bad either. One advantage this top display has that it doesn't change position over different screens.
I tried to animate it on appearance and disappearance, without success so far.
This is me starting the app while offline:
A couple bugs here:
Not connected to the internet
banner is shown.All Streams
screen shows "No streams found", even though it just couldn't load a list of streams from the server.