Skip to content
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

bug: notificationActionPerformed not triggered if app is closed or minimized #583

Closed
5 of 16 tasks
boutzamat opened this issue Mar 11, 2024 · 1 comment
Closed
5 of 16 tasks
Labels
bug/fix Something isn't working needs: triage

Comments

@boutzamat
Copy link

Plugin(s)

  • Analytics
  • App
  • App Check
  • Authentication
  • Crashlytics
  • Cloud Firestore
  • Cloud Messaging
  • Cloud Storage
  • Performance
  • Remote Config

Version

5.4.0

Platform(s)

  • Android
  • iOS
  • Web

Current behavior

notificationActionPerformed doesn't trigger if the app is minimized or closed. If it's active, the event works as intended.
I've read this: #178 but it seems like an old thread, where the issue was apparently fixed with an update, but here i am on 5.x and i'm experiencing the same issues.

Expected behavior

The notificationActionPerformed to work regardless of the app's state. I'm trying to redirect a user to a specific screen in the app if they tap the notification, however i cannot. When tapping the notification, the app just opens and no code inside my listener is running. Only if the app is already opened, the code will run.

Reproduction

https://github.com

Steps to reproduce

This happens on a fresh installation of your template.

Other information

Related issue: #178

Capacitor doctor

[warn] The bundledWebRuntime configuration option has been deprecated. Can be safely deleted.
💊 Capacitor Doctor 💊

Latest Dependencies:
@capacitor/cli: 5.7.2
@capacitor/core: 5.7.2
@capacitor/android: 5.7.2
@capacitor/ios: 5.7.2

Installed Dependencies:
@capacitor/core: 5.7.0
@capacitor/cli: 5.7.0
@capacitor/android: 5.7.0
@capacitor/ios: 5.7.0

[success] Android looking great! 👌
[error] Xcode is not installed (this is expected. the repo is on a remote that doesn't have xcode, but i do locally).

Before submitting

  • I have read and followed the bug report guidelines.
  • I have attached links to possibly related issues and discussions.
  • I understand that incomplete issues (e.g. without reproduction) are closed.
@boutzamat boutzamat added bug/fix Something isn't working needs: triage labels Mar 11, 2024
@boutzamat
Copy link
Author

This was an issue on my end.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 9, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug/fix Something isn't working needs: triage
Projects
None yet
Development

No branches or pull requests

1 participant