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
Is it possible to add action buttons to notifications? #262
Comments
Yep, definitely need this functionality! Any advice would be greatly appreciated |
@mostafiz93 @bbrcan Yes, these are supported by this SDK. For Android you must swipe down with 2 fingers to see the buttons. For iOS 10 you must 3d touch on the notification to see them. Then normal notification opened event will fired when a button is pressed. The id of the button will be sent to the event as well. |
What about when posting a notification though? I noticed I know this isn't an official SDK and you guys are kind enough to maintain & share this so a big thank you for that! :) |
@bbrcan Correct, the |
@jkasten2 are you aware of anyone working on adding options to this? It seems like a missing piece to reach full-parity. |
seems like an overlook. someone added this feature here: #266. |
Confirmed that this is working for me! (My use case was to set small_icon & large_icon) I'll try to see if I have time to update the docs in the next few days. yay! |
so how to make button on pushnotification ,, any tutorials ? |
By no means a complete example nor tested.. but something along the line: Define Handler on action taken:
Setup to listen to open event (which is also triggered when action taken) wherever you start your app:
Then if you're sending a P2P notification with postNotification, you would do:
|
@leoskyrocker hello, did the action button support icon next to the button in ios/android? |
Hi I am currently using onesignal and flutter to build notification, as for android the action button shows up like what you said (by swiping down the notification). but in ios simulator, I cant do that, even with swipe left or right or double click. can you give a detail info about what 3d touch mean, I think I need to try it |
Is it possible to add action buttons (say, Accept and Deny) to the notification that will perform specific operations when pressed. I'm talking about this Action Buttons. Are those possible in React Native?
I'm attaching some sample what I'm actually looking for.
The text was updated successfully, but these errors were encountered: