-
Notifications
You must be signed in to change notification settings - Fork 66
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
Action buttons has no effect if app is closed #423
Comments
@Bindslev Can you please attach a sample project? |
I can try and look into it. I couldn't get the sample app to work previously, but I'll give in another try and see if I can replicate it there. |
Here's a sample project @thudugala Thanks for looking into it |
@Bindslev do you see the same results in the emulator? |
@thudugala I haven't actually run any, my computer is not very happy about running emulators (Extremely slow) so I tend to only test on my devices. Are you able to replicate using the attached sample? |
try setting LaunchAppWhenTapped to true |
Unfortunately that didn't work. |
@Bindslev Can you also try setting the IconName? |
Hmm yeah that's weird. It doesn't seem to work for me on any of my devices. |
Any news @thudugala? And is there no way to use action buttons while the app is closed without them opening up the app? Normally when using action buttons, the idea is the app doesn't need to open up, so I'm a bit curious to know whether this is possible at all? Because otherwise my users might as well just click on the notification without use of action buttons, thanks! |
@Bindslev try setting LaunchAppWhenTapped to false |
@thudugala Does not work. Same issue, nothing happens when clicking the action buttons. Again - does it work for you on a device, without the action button opening up the app? |
@Bindslev Yes, in the example, the close action button closes the notification without opening the app. |
@thudugala Very interesting. I know it's much asking this, but could you modify my sample project I attached here to make it work? I tried all your suggestions, but when closing the app, the action buttons are completely unresponsive for me and does not trigger any action button code. I was therefore wondering if anything else in your sample project may contribute to this working for you? I tried on two devices but still no luck |
For the record, I just tested the same thing on iPhone and it works the exact same way as I reported on Android. Could I have missed something in the setup that allows notification actions to work when the app has been closed? Action buttons work on iPhone when the app has not been closed, but when the app has been closed and I click the button, the notification will actually disappear as it is supposed to, but the code that should be run according to the action clicked, is not run at all unfortunately. |
Any news @thudugala? I still don't have a working example and it's both Android and iOS so might want to add that label. Are you sure this is a configuration issue? I feel like I have tried most things by now but with the same results on both OS. |
Describe the bug
If I receive a notification either with the app open or closed, if I then close the application, the action button presses I make are ignored and the notification will simply just stay in the notification tray with no action taken.
If the app is then opened, the notification will now work and clicking the action button will dismiss the notification and run the code that it should.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
I was expecting the action buttons to behave equally when the app is open vs closed
Screenshots
I'll gladly do if my description don't suffice
Platform (please complete the following information):
Smartphone (please complete the following information):
Additional context
I have minimum code to generate the notification and action buttons, and I have scheduled the notifications if that makes any difference.
Also, no intentflags were set, as I'm unsure of what exactly those does (maybe related?)
The text was updated successfully, but these errors were encountered: