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

User's not offline when app minimised

Open simonsmiley64 opened this issue 9 years ago • 2 comments

When a user closes the app they are set as offline in the database. This means push notifications will be sent to them.

With Android if the user minimises the app that user is still registered as online. This means they don't get sent push notifications and are marked as online in the app. How can we mark those users as offline when the app is minimised?

simonsmiley64 avatar Jan 23 '17 06:01 simonsmiley64

We have a base activity that all others in the app extend. By setting the user to offline when the activity lifecycle leaves focus, we could achieve this functionality.

kykrueger avatar Jan 24 '17 13:01 kykrueger

Hi @simonsmiley64,

I have patched this issue in the 'hotfixes' branch. I am wondering if you could test the fix to see if it does what you expected.

If it works ill merge it into master.

-- Kyle

kykrueger avatar Feb 12 '17 00:02 kykrueger