, sync unsend message to , and get update,
first i decided to use broadcast receiver but "CONNECTIVITY_CHANGE" in manifest , not calling when app is closed in recent android api,
my current solution is to use service,
have you any idea ,
like is there a better way to approach this?
if u made change in manifest, better to uninstall pre installed app and reinstall it
this happening because google has moved listening to "CONNECTIVITY_CHANGE" event to specific main thread and app specific context , so developer need to register and unregister in activity cycle, instead of simply declaring it in manifest for whole application
Better use work manager for this thing
thank tomorrow i will let you know , how it going
Thanks i appreciate your help,work manager was exactly what i was seeking
Обсуждают сегодня