-
Notifications
You must be signed in to change notification settings - Fork 278
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
workmanager not work on IOS Side. #455
Comments
I get this error when i run app in ios side: PlatformException(bgTaskSchedulingFailed(Error Domain=BGTaskSchedulerErrorDomain Code=1 "(null)") error, Scheduling the task using BGTaskScheduler has failed. |
if you have proper code with ios setup please give me. |
Hi. Please look at https://developer.apple.com/documentation/backgroundtasks/bgtaskschedulererrorcode/bgtaskschedulererrorcodeunavailable?language=objc Usually , you have no permission. |
For me the example app is not working. No error messages and no output in the console, the callback is not being invoked it seems. Sad, since it works great on Android! I really need this plugin and would gladly pay the maintainer a small amount for continuing to maintain the plugin! |
Yes IOS part the example app is not working getting the same error |
Yes, It is still not working. Have you any solution plugin owner or anyone ? |
Did you tried configuration for IOS?? And checked your background service timer?? It's 15 minutes I guess |
I have done all the required configuration and it is still not working for me on physical ios device |
Is it working on simulator??
…On Thu, 9 Mar 2023, 4:48 pm Ayesha Iftikhar, ***@***.***> wrote:
I have done all the required configuration and it is still not working for
me on physical ios device
—
Reply to this email directly, view it on GitHub
<#455 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ARN5JR3GAUXMDWOE5JU646LW3HGSBANCNFSM6AAAAAAU3W7ZQI>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
On iOS is no 15min timer. The operating system calls randomly the BGTask |
No throwing the same error on both stimulator and physical device. |
Then another way is to create a custom plugin for yourself or try to
register background service through method channel in iOS, or maybe you
need to recheck the configuration you performed on ios
On Fri, 10 Mar 2023, 10:13 am Ayesha Iftikhar, ***@***.***>
wrote:
… Is it working on simulator??
… <#m_-752857866688614986_>
On Thu, 9 Mar 2023, 4:48 pm Ayesha Iftikhar, *@*.*> wrote: I have done
all the required configuration and it is still not working for me on
physical ios device — Reply to this email directly, view it on GitHub <#455
(comment)
<#455 (comment)>>,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ARN5JR3GAUXMDWOE5JU646LW3HGSBANCNFSM6AAAAAAU3W7ZQI
<https://github.com/notifications/unsubscribe-auth/ARN5JR3GAUXMDWOE5JU646LW3HGSBANCNFSM6AAAAAAU3W7ZQI>
. You are receiving this because you commented.Message ID: @.*>
No throwing the same error on both stimulator and physical device.
—
Reply to this email directly, view it on GitHub
<#455 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ARN5JR5QX5SMQSR4GMCLSPLW3LBA5ANCNFSM6AAAAAAU3W7ZQI>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Will give it a shot |
I follow all the steps (I think so) in the configuration recipe! I copied the code from the example folder and I got the error: This may be due to too many tasks being scheduled but not run. #0 StandardMethodCodec.decodeEnvelope Does somebody have a running simple example of the use of this package? Thanks |
a) do not run in the simulator. |
@ened |
Any solution to this issue? Why this issue has been marked as closed. |
It's not in the ReadMe but you can't run background tasks in simulator https://developer.apple.com/documentation/backgroundtasks/bgtaskscheduler/error/code/unavailable |
Workmanager package doesn't work for ios IOS 17 Xcode 15, library version 0.5.1 |
Hi, I am trying to run periodic task on ios with below code and settings. Unfortunately, the task isnt getting triggered. Any help would be appreciated. Swift code: import UIKit @UIApplicationMain
} override func userNotificationCenter( extension UIWindow {
} version of the library used workmanager: Target platform an other details: platform :ios, '13.0' Code to trigger period task
|
Hi @Flutter36 |
can it be used to run a function onetime at a specific time? or periodically like once a day? |
Of course, You can do it ! |
@vuzzer I want to run a task after 2 minutes, is it possible? can you share some code? |
Hi @imasif, here's a simple example of a task that updates data every minute :
hope this helps ! |
@vuzzer I don't want it to be periodic, it will only run once when I start the scheduler, everytime I call the scheduler and it will execute after 2minutes. |
workmanager not work on IOS Side.
The text was updated successfully, but these errors were encountered: