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.
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.
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.