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

Capacitor.Plugins.LocalNotifications.addListener('localNotificationActionPerformed') only working when the app is already open #2289

Open
nijakobius opened this issue Jan 1, 2025 · 1 comment

Comments

@nijakobius
Copy link

Bug Report

Plugin(s)

@capacitor/[email protected]

Capacitor Version

💊   Capacitor Doctor  💊 

Latest Dependencies:

  @capacitor/cli: 6.2.0
  @capacitor/core: 6.2.0
  @capacitor/android: 6.2.0
  @capacitor/ios: 6.2.0

Installed Dependencies:

  @capacitor/cli: 5.7.8
  @capacitor/core: 5.7.8
  @capacitor/android: 5.7.8
  @capacitor/ios: 5.7.8

Platform(s)

iOS

Current Behavior

Capacitor.Plugins.LocalNotifications.addListener('localNotificationActionPerformed', data => {});
is not called when the app is not already open when the Notification is tapped. Is is called when the app is already open.

Expected Behavior

It should be called when a notification is tapped regardless of whether the app is open or not.

Code Reproduction

Capacitor.Plugins.LocalNotifications.addListener('localNotificationActionPerformed', data => {
console.log('Notification action performed!');
});

@Ionitron
Copy link
Collaborator

This issue needs more information before it can be addressed.
In particular, the reporter needs to provide a minimal sample app that demonstrates the issue.
If no sample app is provided within 15 days, the issue will be closed.

Please see the Contributing Guide for how to create a Sample App.

Thanks!
Ionitron 💙

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants