Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Background Tasks #108

Closed
pete-mcwilliams opened this issue Apr 7, 2021 · 11 comments
Closed

Background Tasks #108

pete-mcwilliams opened this issue Apr 7, 2021 · 11 comments

Comments

@pete-mcwilliams
Copy link

Plugin Request

Name: Background Task
Package: @capacitor-community/background-task

Platform(s)

iOS, Android

Existing Solutions

https://github.com/robingenz/capacitor-background-task

Description

Previously an Ionic Capacitor plugin that has been dropped in version 3
Drop in replacement for https://capacitorjs.com/docs/apis/background-task#background-tasks

ionic-team/capacitor#3032

@Sibi4
Copy link

Sibi4 commented Oct 1, 2021

Does this plugin work when the app is closed/removed from the multitasking bar, or it works only when the app is minimized?

@pete-mcwilliams
Copy link
Author

The intention is to allow a small task to complete before the application is closed/backgrounded. It is not intended to work in background.

@Sibi4
Copy link

Sibi4 commented Oct 1, 2021

I want to send some local Notifications (@capacitor/local-notifications), even after closing the app. That's why I thought of using this plugin. But it cannot be used in my case, right?

@pete-mcwilliams
Copy link
Author

It was never the intention to run background tasks. Only allow a short lived process to complete prior to the application closing.

@Sibi4
Copy link

Sibi4 commented Oct 1, 2021

Ok, thank you!

@johnborges
Copy link

Looks like its being tracked in this issue too #3032

@pete-mcwilliams
Copy link
Author

#3032 is a link from Ionic's upgrade guide to v3where they have dropped the functionality that allowed small tasks to complete before the app closes, they considered it to be underused and misunderstood.

It left a few of us high and dry if using the plugin correctly for completing http requests for example.

3032 is referencing a different requirement than the plugin that was removed addressed, and due to the link from the v3 upgrade guide 3032 has become a amalgamation of two things:

  1. a feature request for really background tasks (tasks that will run when the application is in the background).
  2. a discussion about the missing plugin (tasks that are allowed to complete as the application is going into the background).

robingenz has ported the ios portion of the old plugin into his own repository and this feature request is an attempt to get that adopted into the community plugins.

@riderx
Copy link

riderx commented Nov 18, 2021

@pete-mcwilliams i added your plugin to awesome-capacitor if that is useful please take time to star the repo as well :)

@pete-mcwilliams
Copy link
Author

@riderx could you reach out to robingenz to let him know, he's the author, I was just trying to get it adopted by as a community plugin.

@riderx
Copy link

riderx commented Nov 18, 2021

i did for many plugin he did already :) thanks

@pete-mcwilliams
Copy link
Author

robingenz says
This plugin is now maintained by the Capawesome Organization.
We do not plan to move it to the Capacitor Community Organization.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants