I have used alarm manager to sound at a specific time or repeating on specific days but I can't seem to find a way to make it be triggered at a specific condition which is "on available network".
I need to do this because I'm using an intent in the manifest which triggers a background service, this works up until api23. When I wanted to do something similar for api > 23 I came to the conclusion that I can use either jobscheduler or alarm manager. I want to try both to see which is more useful to me in this specific case.