-
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
PeriodicTask on iOS #306
Comments
Also in the same situation. Everything on Android works totally fine, but if I run the same code on iOS it always throws a PlatformException. |
Same situation. iOS - PlatformException(unhandledMethod("registerPeriodicTask") |
Same situation, has anyone been able to solve it ?
|
Same here, any update on this? |
Most of the things says [Android Only] so i think this plugin is only for Android and not for the IOS |
Part of the issue is the plugins current APIs.
The new BG task APIs support scheduling background work and once they are executed, you can schedule another piece of work with a minimumDelay, thus causing the PRs on documenting, testing etc are very welcome. The code is all visible in |
Thanks for your answer! Could you please provide a minimal example of an iOS background task that schedules another which schedules another one and so on? And I personally think that it would be a good idea to use illusional periodic task for the |
For others searching for an understanding of the various iOS tasking options, intentions and limitations there is an excellent video by Apple explaining as much here . This shows how tasking is in the hands of the OS and provides a guide on the most appropriate option for your purposes. |
Man forget periodic, I cannot even do OneOff task on iOS. Hope they fix this soon. |
|
@LostInDarkMath, I have to agree that the documentation is confusing. I am also not quite sure, which things are supported on both platforms. Maybe someone who knows the intricacies of the plugin implementation could go over the documentation (and the comments in the code) and see that it accurately reflects what the plugin is doing. |
it looks like Why can't it be done the same here in the workmanager? |
Scheduled notifications and bgAppRefreshTask are very different. You can schedule a notification. A background work is called by iOS itself and has no possibility to schedule a specific time. The call is randomized by iOS- see apple documents for bgAppRefreshTask |
@Stratovarius93 did you find a solution for iOS? |
Hello there, any news? |
[VERBOSE-2:dart_vm_initializer.cc(41)] Unhandled Exception: PlatformException(unhandledMethod("registerPeriodicTask") error, Unhandled method registerPeriodicTask, null, null) I'm facing this issue in IOS, android is working fine. |
Any updates on this? |
Check #511 which has major enhancements for iOS |
Hi there,
I now that there are lots of other issues where this question is discussed. I just want to ask to ask what is the best way to create a periodic task on iOS?
What I know
So I'm very confused at the moment.
Thank you very much in advance!
The text was updated successfully, but these errors were encountered: