question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Background fetch not working

See original GitHub issue

Hi there! I know capacitor has a way to finish a job called Background Task, but I would like to retrieve the geolocation of the device once in a while.

Basically, make cordova-plugin-background-fetch but for some reason, it doesn’t work.

I get the log where it gets sent to cordova but the plugin still doesn’t work when I do Debug->Simulate Background Fetch.

Any ideas or alternative for this?

Thank you!

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:13 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
christocracycommented, Aug 25, 2019

I’ve added Capacitor Support in cordova-plugin-background-fetch@5.6.0

npm install cordova-plugin-background-fetch
npx cap sync

ℹ️ See Capacitor Setup

Capacitor support for cordova-background-geolocation-lt will be published next week.

0reactions
ionitron-bot[bot]commented, Nov 14, 2022

Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Capacitor, please create a new issue and ensure the template is fully filled out.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Background Fetch is not working in real iOS devices
Background fetching is working properly in Simulator and http request reaches in the server. But background fetches not at all working in the...
Read more >
How to troubleshoot iOS background app fetch not working?
Check the box Background fetch in the Background Modes of your app's Capabilities. · Use setMinimumBackgroundFetchInterval(_:) to set a time ...
Read more >
react-native-background-fetch not working [ios] and Simulate ...
I am trying to call an API in background and store it in realm database (or local storage in JSON format) and the...
Read more >
BackgroundFetch - Expo Documentation
expo-background-fetch provides an API to perform background fetch tasks, ... BackgroundFetch only works when the app is backgrounded, not if the app was ......
Read more >
A question about Background Fetch : r/iOSProgramming - Reddit
I am learning about background fetching and app states for the iOS operating system, I've followed a tutorial for creating a timer and...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found