Run code periodically


I need to setup a kind of cron job that executes every hour (and queries a REST API), regardless of whether the app is in the background or terminated.

Any ideas if a plugin exists for this, or what platform-specific APIs you’d recommend? Thanks!


Ah, I just remembered about NativeScript-background-fetch, an awesome gem: