I'm making an app where I want the user to specify a time in shared preferences then I'll use that time to launch a notification whether they're in the app or not, like a user-defined alarm notification.
I've tried everything but I don't know how to make it work. The notification should appear every day at that specific time if the preference (checkbox) is true.
Finally I found out how to do it. For anyone who might need the same, I'll post the code:
This here is the method to call the notification in the activity once time is right:
This here is the receiver