Implementing interval / scheduled API calls in Ionic

I am looking to implement interval (for example, every 5 minutes) / scheduled (for example, at 10pm) calls to an API published on AWS, from an app developed in Ionic, in foreground AS WELL AS background (when app is closed or killed) modes in iOS and Android.

Does anyone have any experience and can suggest best approach to implement this in a way that is efficient (battery) and will pass Mobile app stores tests? Is there a plugin for this purpose?