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

didNotificationLaunchApp always return false on ios when app killed #2273

Open
mystery198 opened this issue Mar 19, 2024 · 1 comment
Open

Comments

@mystery198
Copy link

Describe the bug
I had the problem didNotificationLaunchApp always returns false (payload is null) on ios, on android it works fine. Even though I tried running the example in your repo, the result is still the same.

To Reproduce

  1. Download source code in repo
  2. Run flutter_local_notification/example
  3. After the application is run, kill it
  4. Send notification to device
  5. Click notification
  6. App opened -> but didNotificationLaunchApp return false and initialRoute always is HomePage, not SecondPage

Expected behavior
How to make it work properly in case the app has been killed and click on the notification to open the app, with payload data

1EB62587-7DBF-4E2F-8FB0-779E4F0A32CC.mp4
@MaikuB
Copy link
Owner

MaikuB commented May 17, 2024

Based on the video you shared, it doesn't sound like you actually followed the steps in you mentioned. The video shows the content of the notification is different. If you actually clone the repo then it works as expected. The video you showed would indicate to me that you've copied the Dart code or made modifications that doesn't with what's actually done in the example app and mentioned in the readme e.g. https://github.com/MaikuB/flutter_local_notifications/tree/master/flutter_local_notifications#-ios-setup

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

2 participants