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

Background notification problems - IOS #2423

Open
smithFlutter opened this issue Oct 8, 2024 · 8 comments
Open

Background notification problems - IOS #2423

smithFlutter opened this issue Oct 8, 2024 · 8 comments

Comments

@smithFlutter
Copy link

Hello Everyone,

I am using the component without problems on Android and IOS up to version 14, but from IOS 14 onwards the notification in the background does not work. In the foreground there is no problem, but if the app is minimized or the screen is locked it does not work, however if I try it in debugging it works (android studio or xcode), but with the final version (IPA) it does not work, which could be ?, I have struggled a lot but it doesn't work for me.

Thanks for the help.

@amal3ndu
Copy link

amal3ndu commented Oct 8, 2024

Hi everyone,
I believe I’m having a similar issue. I’ve used this package in Flutter projects earlier this year and had no issue, but now I am unable to schedule notifications on iOS. Everything works fine on my iOS simulator, but I am unable to schedule anything on my physical device. Any insight or guidance would be much appreciated.

@smithFlutter
Copy link
Author

It works strangely, in debugging it works, but not in IPA, it has the same permissions and nothing, does it work well for anyone in the background?

@amal3ndu
Copy link

amal3ndu commented Oct 8, 2024

Neither background nor foreground works on real devices, but it works great on my iOS and Android simulators. I've ensured notification permissions are enabled and then tried to display any error through try-catching exceptions into snack bars but it just fails without error. I'm only using scheduled notifications but I plan to test immediate notifications to see if they work at all.

@smithFlutter
Copy link
Author

In the foreground if it works, you must modify the file: AppDelgate.swif

sample here
https://github.com/MaikuB/flutter_local_notifications/blob/master/flutter_local_notifications/example/ios/Runner/AppDelegate.swift

The problem is in the background, in debugging it works, but in the final compilation it doesn't (IPA). I think I will look at other components. This has been unresolved for a long time.

@lucasfcardozo
Copy link

Event with this conf in my app, silent notifications have stopped working. It has been working since v1 of my app (almost 1 year).

FYI: firebase/flutterfire#13476

@smithFlutter
Copy link
Author

I kept trying and there is no way that works, I think I will close the topic, I have no more time to continue investigating.

@ssekay
Copy link

ssekay commented Nov 4, 2024

It seems to be related to this article. I don't know how to use it.
Pushing background updates to your App

@VanDinh18
Copy link

same issue

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

5 participants