Run code periodically


#1

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!


#2

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