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

feat(LocalNotification): ability to generate localNotification when app is in background (from service) #2626

Closed
1 of 4 tasks
dwlrathod opened this issue Mar 24, 2020 · 3 comments · Fixed by #2648
Closed
1 of 4 tasks

Comments

@dwlrathod
Copy link
Contributor

dwlrathod commented Mar 24, 2020

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

  • 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

@jcesarmobile
Copy link
Member

Issues tagged with feature request are closed but tracked for reactions to gauge interest.

@BorntraegerMarc
Copy link

BorntraegerMarc commented Mar 25, 2020

@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

@ionitron-bot
Copy link

ionitron-bot bot commented Nov 12, 2022

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.

@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators Nov 12, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants