-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
getNotificationAppLaunchDetails on iOS returning false without payload #512
Comments
Sorry but the steps you described aren't sufficient to show how to reproduce the problem. I'm using the example app and don't see the issue you've described. |
Hi @MaikuB, sorry if my first post is not clear enough for you. Can you please open your example project and replace code from line 61 to 67 :
with this code:
Then,
Now, on the Android side result of line
This basically, resolves my question, because I was using another way for handling tap on the notification, and fetching data of click, based on Also, is it possible to make a function that will return your payload of last shown notification (notification that is on the stack, and that user didn't already click on it?) It would be very nice if you can add also an example of the usage of |
Thanks for the info. Was able to reproduce but will need to see if it's possible to fix. The behaviour is different because the mechanisms on each platform are different. Regarding getting notifications that are in still in the notifications centre/drawer (i.e. the active notifications), It's not possible via this plugin but there are native APIs that can get those notifications. They aren't supported by the plugin as these APIs can't be used by all supported versions of Android and iOS. They're only available for Android 6.0+ and iOS 10+. If your app will only be supporting those at a minimum then you'll need to write your own code to use those APIs within your app. |
Ok, understand. I will use the listener, or help of dartrx to listen events of opening notification on some other place in my code.
Yep, it would be cool, or at least, you can document this somewhere in readme. Thanks for quick response, All the best |
Getting the same issue in Android version :(
|
@MadhanHoggy try this:
|
Having this issue on the latest iOS version. |
Hi @MaikuB, thank you for the great library.
I have an issue where
getNotificationAppLaunchDetails
is returning me always false and payload null as a result on the iOS platform, while on Android these values are good, as should be.To Reproduce
If applicable, steps to reproduce the behavior:
onSelectNotification
callback (like on image in the attachment), just to access and print payload and got the result with false & nulldidNotificationLaunchApp
Goal: I would love to be the same results on both platforms if it is possible.
The text was updated successfully, but these errors were encountered: