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

Subscribing to FCM topic from capacitor background runner

$
0
0

Im trying to implement a background task that will run every 1 hour, using @capacitor/background-runner.

in my app im using the @capacitor-community/fcm plugin to subscribe to topics.

Is it possible to call this plugin from the runner.js file ?

(basically what I need is every 1 hour to call an API, recieve an answer, and based on that answer subscribe/unsubscribe from a topic)

if not, what approach should I take to implement such a thing? is my only option to write native code for my ionic app for IOS and Android to handle backgroud tasks? (and if that is the case, any good tutorial on the subject would be much appreciated:)

thanks for any feedback!

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 49253

Trending Articles



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