Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 48980

How to schedule background tasks?

$
0
0

Greetings everyone,

I’m currently in the process of researching Ionic’s/Capacitor’s capabilities, for a cross platform ios/android app I’m planning to develop. One aspect the app needs to be capable of, is to be kept open in background, in order to take care of scheduled periodical tasks.

After doing some research today, I found out, that there seem to exist two ways to do that, but both seem to be flawed:

  1. There’s a native plugin, for keeping apps open in background, namely Background Mode - Ionic Documentation (ionicframework.com).
    But its most commented GitHub issues seem to indicate that it does not work anymore: Issues · katzer/cordova-plugin-background-mode (github.com) . Also its last commit has been two years ago. So it basically seems to be dead in the water.
  2. And there is (or was?) an official plugin, too: Background Tasks - Capacitor (capacitorjs.com). But that is only available for Version 2.x of Capacitor. Its completely missing from the current docs: Capacitor Plugins - Capacitor (capacitorjs.com). So I assume that this won’t work either.

So can anyone tell me: what would be the best practice for implementing background scheduling, in a cross platform manner, with Ionic? Will there be a successor to the official background task plugin for version 3 of Capacitor? Am I overlooking something?

Best regards,
Patrick

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 48980

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>