capawesome-team / capacitor-firebase

⚡️ Firebase plugins for Capacitor. Supports Android, iOS and the Web.

Home Page:https://capawesome.io/plugins/firebase/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

bug: notificationActionPerformed not triggered if app is closed or minimized

boutzamat opened this issue · comments

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.

This was an issue on my end.