Hi everyone,
I’m Darshan Hiranandani, working with a React app using Ionic, and I’m trying to call an API when the app is closed or terminated. I’ve tried using the background runner from Capacitor, but it’s unable to locate the runner file. Additionally, I’ve experimented with the Cordova plugin, which triggers didLaunch
and willTerminate
events, but these don’t seem to work as expected.
Has anyone managed to implement a solution that calls an API when the app closes or terminates? I’d appreciate any tips or suggestions on how to achieve this reliably.
Thanks in advance!
Regards
Darshan Hiranandani