Socket.io-client-java: Suggest me good practices for keep socket-io connected in Android oreo

Created on 19 Feb 2018  路  2Comments  路  Source: socketio/socket.io-client-java

The background services are not supported any more in Android oreo (>26) . I want to socket keep connected in my chatting application even app is closed .
Please help me how can i implement new changes for android 26.

Most helpful comment

As we all know that there are background limit for android 26+ then we should go for JobScheduler, GCM Network Manager, AlarmManager, Firebase, Evernote android job or work manager to keep connected socket after some periodic time.

All 2 comments

I ain't a pro dev. but keeping it connected in the background is bad practice. You could consider using push notifications and then loading the new messages once the app is opened again.

As we all know that there are background limit for android 26+ then we should go for JobScheduler, GCM Network Manager, AlarmManager, Firebase, Evernote android job or work manager to keep connected socket after some periodic time.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jingfreeks picture jingfreeks  路  3Comments

commjoen picture commjoen  路  5Comments

mrgame64 picture mrgame64  路  10Comments

RishabhDuttSharma picture RishabhDuttSharma  路  5Comments

jukbot picture jukbot  路  3Comments