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(android-foreground-service): add ability to define notification channel options #267

Conversation

DoctorMcKay
Copy link

@DoctorMcKay DoctorMcKay commented Aug 21, 2024

Pull request checklist

Please check if your PR fulfills the following requirements:

  • The changes have been tested successfully.
  • A changeset has been created (npm run changeset).
  • I have read and followed the pull request guidelines.

Close #266

Adds a new createNotificationChannel method which allows implementing apps to create a notification channel prior to starting a foreground service. If a channel is not explicitly created, it's created with the same default values as previously when startForegroundService is called.

@robingenz
Copy link
Member

Thank you for creating this PR! Please just copy the implementation from the Capacitor Firebase Messaging plugin, see https://github.com/capawesome-team/capacitor-firebase/blob/42d77fecca3871b910ac809bf1d14ff0c60dd762/packages/messaging/src/definitions.ts#L117

You can keep the method name createNotificationChannel. You would also need a deleteNotificationChannel method.

Copy link
Contributor

It looks like there hasn't been a reply in 30 days, so I'm closing this issue.

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

Successfully merging this pull request may close these issues.

feat: add ability to customize notification channel options
2 participants