-
Notifications
You must be signed in to change notification settings - Fork 996
-
Notifications
You must be signed in to change notification settings - Fork 996
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
bug: Implement Plugin for Background Tasks #3045
Comments
it's not a bug, you already requested this 2 days ago |
@jcesarmobile mmm sorry, but I tried create my own plugin to solve my problem but Capacitor API doesn't allow communique correctly with IOS API in this case. I consider this a bug and don't allow create plugins for capacitor ecosystem. Please check, I love capacitor and I understand this feature is not a priority for us, is the reason for I tried create my own plugin but the Capacitor API don't allow communique. Is important for our app, with enterprise support ($$) Is possible support for that? cc @mlynch |
If you need to put code in the didFinishLaunchingWithOptions you'll have to document that on the plugin (for users) or put it in your app if the plugin is just for you. It's not supported because the AppDelegate.swift belongs to the user app and Capacitor doesn't do changes on the user app, but encourages users to do any needed changes there. |
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. |
Bug Report
Capacitor Version
npx cap doctor
output:@capacitor/cli 2.1.2
@capacitor/core 2.1.2
@capacitor/ios 2.1.2
Affected Platform(s)
Current Behavior
In IOS 13 there is BGTaskScheduler for run tasks in background mode
https://developer.apple.com/documentation/backgroundtasks/bgtaskscheduler
I must register all of the tasks before the end of the app launch sequence. The place to register that tasks are in AppDelegate with its handler.
Like this:
But in Capacitor API don't allow use de Bridge for communique events from AppDelegate using CAPBridge
The text was updated successfully, but these errors were encountered: