Bug Report
Plugin(s)
Capacitor Version
Latest Dependencies:
@capacitor/cli: 3.0.1
@capacitor/core: 3.0.2
@capacitor/android: 3.0.2
@capacitor/electron: 3.0.2
@capacitor/ios: 3.0.2
Installed Dependencies:
@capacitor/cli: 2.4.2
@capacitor/core: 2.4.2
@capacitor/android: 2.4.2
@capacitor/electron: not installed
Platform(s)
Android
Current Behavior
I am using Local Notification Action types and one of those types needs to run code but NOT open the app. Using the props destructive and foreground works to make ios notification actions not open the app but not android. Is there a similar way to make android actions not open the application?
Expected Behavior
When an action on a notification is clicked on android the action should not open the app if specified in the code.
Code Reproduction
This stack overflow shows the code: https://stackoverflow.com/questions/66093556/how-to-prevent-local-notifications-in-capacitor-js-from-opening-the-application?r=SearchResults
Other Technical Details
Additional Context
Bug Report
Plugin(s)
Capacitor Version
Platform(s)
Android
Current Behavior
I am using Local Notification Action types and one of those types needs to run code but NOT open the app. Using the props
destructiveandforegroundworks to make ios notification actions not open the app but not android. Is there a similar way to make android actions not open the application?Expected Behavior
When an action on a notification is clicked on android the action should not open the app if specified in the code.
Code Reproduction
This stack overflow shows the code: https://stackoverflow.com/questions/66093556/how-to-prevent-local-notifications-in-capacitor-js-from-opening-the-application?r=SearchResults
Other Technical Details
Additional Context