-
Notifications
You must be signed in to change notification settings - Fork 679
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
[Question] Action in notifications #325
Comments
Yes, but not yet implemented.
help is welcomed |
I can't promise you that i can do much, but i will try :) |
I didn't send a pull-request for all of this as I don't know how to make something that can also work on Android, so when I get to Android I will see if they are close enough to have a common code in js. For now this is my solution to have this feature: Step 1:
Step 2:
Step 3: Edit: |
this is awesome |
Hi friends, I need this functionality asap, if you help me some doc or something I will surely create interactive notification. I have android structure idea not much in ios. Thank you. |
Followed all steps, but actions do not display when pressing notification... |
@mcmatan can you please show us the code you put in the ApplicationDelegate and the part that sends the notification? |
Hi @alialamine and thanks for your quick response. This code:
And when sending push notification to https://fcm.googleapis.com/fcm/send Inside the notification payload, I've added:
Exactly as your example, what am I missing? |
I did not try it with remote notifications, so can you try sending the notification with the library's local notification? Just want to eliminate stuff to find where is the things we're not noticing. And can you put an example of the full object that you are sending to fcm? I just want to try it to see the full picture (just replace the data with xxx for whatever you don't want to show) |
So I've tried using local notification and it works, the problem is with sending remote notifications Payload I'm sending:
|
I was able to have action button on notification, with fcm This is what I did: File AppDelegate.m I inserted
And for the payload I did
The click action has to be exactly the same as the UNNotificationCategory identifier if you want to verify if the user clicked on the button in FCM.on, you only have to verify if notif._actionIdentifier is equal to the identifier you added to you button |
I using fcm notification but error on register: [Firebase/Messaging][I-FCM012002] Error in application:didFailToRegisterForRemoteNotificationsWithError: no valid 'aps-environment' entitlement string found for application Can You help me, please? I using "react-native-fcm": "^7.1.0", |
Is this possible to manage without touching native code? Just with this library? |
@DanielRamosAcosta It is possible but I'm not planning to develop it yet. PRs welcome |
It's possible to do this in local and/or push notifications?
To put Button that will trigger actions in the app if the app is open.
The text was updated successfully, but these errors were encountered: