You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Not able to generate a local notification when the app is in the background because activity is needed to create LocalNotificationManager instance.
We are using it with our Native Code for android and generating notifications.
Platform Support Requested
Android
iOS
Electron
Web
Describe Preferred Solution
We should remove the activity as param and add context in the constructor.
We can remove usage of activity from LocalNotificationManager and can be replace activity with MainActivity.class.
Describe Alternatives
Related Code
Additional Context
The text was updated successfully, but these errors were encountered:
@jcesarmobile the issue received reactions. How should we proceed? We're happy to provide a PR for the feature. But I would like to get a 👍 from the capacitor team to know that you support the PR
This feature would be useful when you have custom code to trigger notifications that you can use the capacitor library
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Capacitor, please create a new issue and ensure the template is fully filled out.
Feature Request
Describe the Feature Request
Not able to generate a local notification when the app is in the background because activity is needed to create LocalNotificationManager instance.
We are using it with our Native Code for android and generating notifications.
Platform Support Requested
Describe Preferred Solution
We should remove the activity as param and add context in the constructor.
We can remove usage of activity from LocalNotificationManager and can be replace
activity
withMainActivity.class
.Describe Alternatives
Related Code
Additional Context
The text was updated successfully, but these errors were encountered: