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

Inconsistently scheduling daily push notifications on my flutter iOS app (version of iOS: 18.1) #2441

Open
benj12 opened this issue Oct 31, 2024 · 0 comments

Comments

@benj12
Copy link

benj12 commented Oct 31, 2024

Describe the bug

I'm trying to schedule daily local push notifications on my flutter iOS app. When I call my daily schedule function, it doesn't consistently schedule notifications daily and also at the same time every day.

To Reproduce

  1. Clone the repository
  2. Checkout branch 99f0601
  3. Run the app by running flutter run (make sure you have an iOS Xcode simulator for iPhone with iOS 18.1 installed.
  4. Once app is loaded, scroll down to the very bottom and switch the toggle switch on that says "Schedule notifications for 14 days".
  5. I'm calling dNotifs in services/scheduleNotifications.dart in my home.dart file. The dNotifs is at the very bottom of my code in my home.dart that will schedule a notification daily.

Expected behavior

The expected behavior is that it would schedule a daily notification consistently. What I would also like to happen is to schedule the notification at whatever time the user would like and to schedule it daily for 14 days.

Sample code to reproduce the problem
go to https://www.github.com/benj12/testapp to fork this repository.
For the dNotifs function, go to https://github.com/benj12/testapp/blob/99f060185d1f5c54a171114bc031d616a8f39c76/lib/services/schedule_notifications.dart#L65C3-L74C4

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

No branches or pull requests

1 participant