-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Cant get custom sound to work in both Android and ios #2017
Comments
Hi, the sound-property is not functional for Android and iOS. I updated the readme. |
Hi |
It would be possible, but for Android it would be more tricky. There it would be only possible, by creating a channel with a sound and all notifications would have this sound when published under this channel. If you would need more sounds, you would have to create more channels, but the channels could no longer be altered, after creating them, because Android restricts this. It would take me some time to implement this, if the user wants this. Regards |
I think that would be great and so helpful for developers . |
I will see if the users support me then i will see if i can add it. |
How to support ? |
I mean if they would sponsor me: https://github.com/sponsors/GitToTheHub
But currently i have first to finish some other projects
…________________________________
Von: iamAdamGoodman ***@***.***>
Gesendet: Sunday, August 18, 2024 1:43:08 PM
An: katzer/cordova-plugin-local-notifications ***@***.***>
Cc: Manuel Beck ***@***.***>; State change ***@***.***>
Betreff: Re: [katzer/cordova-plugin-local-notifications] Cant get custom sound to work in both Android and ios (Issue #2017)
I will see if the users support me then i will see if i can add it.
How to support ?
—
Reply to this email directly, view it on GitHub<#2017 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ADIWBXIOFA7HRARBVM2GHNDZSCCEZAVCNFSM6AAAAABFHB3YWOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEOJVGIZTCMZXGA>.
You are receiving this because you modified the open/close state.Message ID: ***@***.***>
|
No problem |
WARNING: IF YOU IGNORE THIS TEMPLATE, WE'LL IGNORE YOUR ISSUE. YOU MUST FILL THIS IN!
Provide a general summary of the issue.
Hello
Im working on an app that uses its own sound for notifications
but it does not work in both Android and IOS
Even the custom icon does not show
cordova platform ls
): IOS / AndroidExpected Behavior
The custom sound should work
Tell us what should happen
Im using the code as it should be in the plugin documentation
Everything is working fine but not the custom sound
window.plugin.notification.local.schedule({
id: '0001',
at: new Date,
text: 'hello',
title: 'title',
badge: 1,
sound: 'file://resources/audio/beep.mp3',
autoCancel: true,
ongoing: true
});
Actual Behavior
Tell us what happens instead
sond does not work
Steps to Reproduce
Reproduce this issue; include code to reproduce, if relevant
Context
What were you trying to do?
Debug logs
Include iOS / Android logs
The text was updated successfully, but these errors were encountered: