[Bug]: android notification channel id not used in CapacitorNotifications.schedule
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 84/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- android, javascript, kotlin
- Domain
- mobile
Research direction
Start in Notification.kt and trace the Android implementation of CapacitorNotifications.schedule, focusing on how the schedule option's channelId is handled. Reproduce with the linked runner and inspect adb shell dumpsys notification --noredact | grep channel=; done means scheduling with channelId: 'my_channel' reports and uses that channel instead of debug.
Written by the indexing model from the issue text.
Description
Current Behavior
Notification.kt doesn't read channelId and uses defaultNotificationChannelID
Create a notification channel my_channel in the app
In the runner: CapacitorNotifications.schedule([{ id: 1, title: 'Test', body: 'Test', channelId: 'my_channel' }]).
adb shell dumpsys notification --noredact | grep channel=
channel=debug
Expected Behavior
The channel id from schedule option is used
Reproduction
https://github.com/coffeemakr/cap-bg-repro
Screenshots / Media
No response
Environment Details
$ npx cap doctor
💊 Capacitor Doctor 💊
Latest Dependencies:
@capacitor/cli: 8.5.2
@capacitor/core: 8.5.2
@capacitor/android: 8.5.2
@capacitor/ios: 8.5.2
Installed Dependencies:
@capacitor/ios: not installed
@capacitor/cli: 8.5.2
@capacitor/core: 8.5.2
@capacitor/android: 8.5.2
[success] Android looking great! 👌
Versions Affected
3.0.0
Platforms Affected
- iOS
- Android
- Web
Notes / Comments
No response
- Dominant language
- C
- Stars
- 57
- Forks
- 37
- Avg merge
- 3d 17h
- Merged PRs (30d)
- 3
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from ionic-team/capacitor-background-runner
-
Difficulty 3/5 1-2 days Newbie friendliness 55/100
ionic-team/capacitor-background-runner#158 · 1 comment ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
ionic-team/capacitor-background-runner#155 · 1 reaction ·
-
Capacitor keeps running old background runnersMay be free again @theproducer claimed this 255 days ago, and no pull request is open. Openbug
ionic-team/capacitor-background-runner#152 · 1 comment · 2 reactions · 1 assignee ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
All issues in ionic-team/capacitor-background-runner
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 72/100
-
[BUG] Legacy options -608, -708, -90090, -UCLA, -CC2, -LF, -DF, -parsepat, -parsepmt still rejected after #1856Possibly taken @Deepak-negi11 claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
CCExtractor/ccextractor#2367 ·
Maintainers usually reply within 1 day
-
severity: low
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
luainkernel/lunatik#1853 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 Half a day Newbie friendliness 70/100
Maintainers usually reply within 1 day