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

Scheduling several alarms at a time is slow #182

Open
younesouhbi opened this issue Apr 9, 2024 · 5 comments
Open

Scheduling several alarms at a time is slow #182

younesouhbi opened this issue Apr 9, 2024 · 5 comments
Assignees
Labels
enhancement New feature or request

Comments

@younesouhbi
Copy link

Thank you very much for this plugin.

I was wondering if there was a way to speed up alarm scheduling. My app schedules several alarms on startup. It manages periodicity and scheduling. It just uses the plugin to actually schedule the alarms on the platform and handle callbacks. However, I noticed that it takes almost a sec for each alarm to be scheduled. To avoid the wait at startup, I simply do not await this operation, but was wondering if this could be improved.

I do not have any recent knowledge of native iOS/Android development, so cannot really tell reading the source without further research.

Thank you

@younesouhbi younesouhbi added the enhancement New feature or request label Apr 9, 2024
@gdelataillade
Copy link
Owner

Hi @younesouhbi

Thanks for your interest in the plugin.

Yes I'm sure there are ways to reduce this delay. I will definitely take a look at it when I find the time. I'm mostly alone working on this plugin so don't hesitate to contribute if you have the time. The source code is not that complicated and I'm here to answer your questions.

@younesouhbi
Copy link
Author

I spent the better part of yesterday reading the plugin source code. I might have something to contribute at some point, but before that, I need to understand more :)

Thank you!

@gdelataillade
Copy link
Owner

Hi @younesouhbi

Are you still using the plugin ? Are you still interested in contributing to the project ?

@younesouhbi
Copy link
Author

Hi there!

I have been away from this project for a while but I am coming back to it.

The plugin was used in an app that is published currently on Play Store and I am working on an iOS version in order to optimize battery consumption. I'm modifying the Flutter iOS / Swift sides of the plugin since a couple of days ago.

I would like to contribute to the project, but I changed the plugin too much for any potential PR. I'm happy to share the changes I made, just not sure in what form.

@gdelataillade
Copy link
Owner

Hi there!

Great to hear your app is published on the Play Store! If you’re interested, I created a thread where you can share your work: #170.

I’m also working on optimizing battery consumption on iOS. It would be great to share our findings; it might be helpful for both of us.

Could you share your fork with all your changes? I’ll take a look and see what could be integrated into the plugin.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants