Subscribing to FCM topic from capacitor background runner

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!