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
Android actions example not working as expected #1330
Comments
I am facing the same issue. const action=new Firebase.notifications.Android.Action('like','ic_launcher','like') With the above code, I am able to add an action button to the android push notification but on clicking on a notification when the app is in the background, NotificationOpen.action is not 'like', instead it has value android.intent.action.VIEW |
@Ehesp , Please help me with this issue. |
@NirpE , Did you figure out the solution for the problem |
Could either of you give me a reproducible repo - it would help me debug this quicker. |
Unfortunately, I cannot provide any reproducible repo. However I followed the same instructions as per the documentation. `// Set up your listener // Build your notification // Display the notification I literally followed the above snippet from the firebase documentation. However, when I click on the button, notificationOpen.action does not give me "test_action". Instead I get "android.intent.action.VIEW" as the action. This is not letting me to differentiate the button click with the notification click. |
Hello 👋, this issue has been automatically marked as stale because it has not had activity for quite some time. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. Thank you for your contributions. |
Hello 👋, this issue has been automatically marked as stale because it has not had activity for quite some time. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. Thank you for your contributions. |
Closing this issue after a prolonged period of inactivity. If this is still present in the latest release, please feel free to create a new issue with up-to-date information. |
same problem Any updates ? |
Issue
Following the tutorial of Android Actions - Adding a custom button will not give proper results when action is clicked. NotificationOpen.action is not
test_action
, instead it has valueandroid.intent.action.VIEW
Note: onNewIntent() in MainActivity does contain proper action for Intent.
Environment
Both
macOS Sierra
Android Studio 3.1.3
React Native
version:0.54.0
React Native Firebase
Version:^4.3.0
Firebase
Module:Notifications
typescript
?No
The text was updated successfully, but these errors were encountered: