How to call a function or url from runner.js
Hi,
I want to know how is it possible from runner.js. Call something in Angular/Capacitor application. e.g. if this background task wants to trigger a function in Angular/Capacitor to synchronize data, how can you do that? I tested using fetch to call a URL from the Capacitor app, but it doesn't work! and there is no other connection from runner.js to Capacitor app.
Best regards
We have the same issue. We will come back if we find a solution on this.
Currently, no. Remember that when your runner code is executed by background runner, your app will probably be in the background, and the WebView that houses your application UI will not exist.