capacitor-community / background-geolocation

A Capacitor plugin that sends you geolocation updates, even while the app is in the background.
MIT License
188 stars 57 forks source link

Can the callback function perform network requests? #24

Closed msacchetti closed 3 years ago

msacchetti commented 3 years ago

Does the watcher callback function allow POST requests? (Fetch, xhr, axios, etc)

diachedelic commented 3 years ago

See #14 for a discussion. You may need to use the Http plugin if you need it to send requests in the background, rather than XHR.

msacchetti commented 3 years ago

I tested version 0.3 with capacitor 2 and Axios post requests work in the background on android.