Push notifications offline Task

I want to push notifications with the offline task.
I have a reminder function get a date from sqlite and run push notification how I make it push if the app is close offline?