Run job to schedule local notification even if app never opened after first time

Please provide the following:

  1. SDK Version: 40
  2. Platforms(Android/iOS/web/all): Android/iOS

My goal is: my user installs my app, and enables “prayer time notifications”. Now if the user closes the app, and turns his phone off, and then never launches it again: every hour I should check if the next prayer time has started, and if so then show a local notification. To calculate prayer time I need to use current latitude/longitude and a formula.

Is this possible even if the user never launches my app after turning the phone off?

Thank you!