MaikuB / flutter_local_notifications

A Flutter plugin for displaying local notifications on Android, iOS, macOS and Linux
2.47k stars 1.4k forks source link

Issue with background notifications #2444

Closed kacbrz closed 1 week ago

kacbrz commented 1 week ago

Describe the Bug Background notifications do not work on iOS versions 17.4 and above.

Steps to Reproduce

  1. Go to the 'Local notifications test' project.
  2. Build the project on an iOS simulator. I tested the app on iOS versions 18.1 & 17.4 both physical iPhones and a simulator.
  3. Click the "Button" and minimize the app.
  4. Wait for 1 minute.
  5. A notification should appear at the top of the screen.

Expected Behavior After clicking the "Button," a notification should appear at the top of the screen after one minute.

Sample Code to Reproduce the Issue Sample code is included in the "Custom Code" tab. You can find three custom actions there responsible for:

Disclaimer I cannot confirm whether this bug is specific to the Flutterflow environment or if it also occurs in a standard Flutter app.

Screenshot 2024-11-06 at 02 40 43 Screenshot 2024-11-06 at 02 41 44 Screenshot 2024-11-06 at 02 42 15 Screenshot 2024-11-06 at 02 42 22 Screenshot 2024-11-06 at 02 43 04 Screenshot 2024-11-06 at 02 44 50