In my android app i have a functionality by which a user can sync data (saved in sqlite) by pressing Sync button some where in Drawer menu. On click of sync button i starts the service and data gets synced to server.
But now i am using work manager to sync data. My question is how can we start work manager immediately on a button click.
I am creating Onetime request. some time it triggers but not other times.