chat-sdk-android icon indicating copy to clipboard operation
chat-sdk-android copied to clipboard

Without internet access, can user access chat history?

Open goldiaxy opened this issue 9 years ago • 4 comments

Can user access chat history offline( without internet connectivity)? I am wondering if this feature is already in Chat-SDK. I tried this but cannot access as login into App needs internet connectivity. Does app store chat history into Local Storage which can be accessed offline?

goldiaxy avatar Apr 01 '17 13:04 goldiaxy

Hi @goldiaxy ,

The app does indeed store the chat history locally (into a database that is generated with greenDAO). As long as the user is already logged in, they should be able to see the chat history while offline.

If they are logged out, they will however not be able to see anything until logging in with a network connection. You could work around this by added an offline authentication option.

kykrueger avatar Apr 01 '17 18:04 kykrueger

Hi @kykrueger , Thanks for your reply. What I did, I exited from App and closed App background running process. I closed my wifi and mobile network. And now I tried to re-open the App. It does not allow me to access due to no authentication through internet. I believe these steps do not consider has logged off from App.

I think this is critical feature for any Chat Messaging App. User should be allowed to at least look into History. Almost all messaging apps (whatsapp, Telegram, WeChat etc) do support this, just wondering how it is missing in chat-SDK. I am not android Expert, just learning stuff. So for me would be bit difficult to get this. It would be great helpful if someone take it up.

goldiaxy avatar Apr 01 '17 20:04 goldiaxy

Hi @goldiaxy I expect that the app is just detecting that there isn't an internet connection and is showing the login screen. The reason for this is that some features in the app don't work when there isn't an internet connection - we fixed this in the iOS version by disabling these features. We'll add this as a bug and fix it when we can.

However, I'd also suggest that this issue wouldn't be very common. Users are very unlikely to hard close the app when they don't have the internet. Even if they did, the chance that they would urgently need to check their message history and be unable to gain access to an internet connection is very unlikely too. Most people have data included so their phone is always connected to the internet unless they put it in flight mode.

bensmiley avatar Apr 03 '17 03:04 bensmiley

Hi @bensmiley, Do you have any news on this issue? you said that 'We'll add this as a bug and fix it when we can' in last reply. Thanks!

davidmeira avatar Jun 06 '18 19:06 davidmeira