cordova-plugin-dialogs
cordova-plugin-dialogs copied to clipboard
fix(android): Notifications now stop and clears the channel
Platforms affected
Android
What does this PR do?
Ensures notifications stop after playing. This fixes the issue we had when after 15 notifications, the 16th notification would not play the sound.
What testing has been done on this change?
Use previous version, spam .beep() 16, the 16th notification will not play. Use this version, the issue is fixed.
Checklist
- [ ] Reported an issue in the JIRA database
- [ ] Commit message follows the format: "CB-3232: (android) Fix bug with resolving file paths", where CB-xxxx is the JIRA ID & "android" is the platform affected.
- [ ] Added automated test coverage as appropriate for this change.
no possible side effects?
As far as we could test, no there are no side effects, so we decided to use it in production. I'm not an expert though, so maybe someone else can take a look at it.
CI, please rerun tests.
Android tests are not happy:
1) cordova-plugin-device-tests.tests >> Device Information (window.device) should contain a UUID specification that is a string or a number
- Expected undefined to be defined.
- Expected false to be true.