-
Notifications
You must be signed in to change notification settings - Fork 17
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
Notification with Custom Sound (Android/iOS) #31
Comments
Maybe a stupid idea but... is the App waken up on receipt of notification? (I think yes for few seconds but not sure with which method). Would be possible to use this time frame to play a sound??
|
There is a feature of iOS which allows the application to be temporarily activated when a new notification comes in. This is called Remote Notifications. However we have had no success getting it work with this plugin. Moreover it would not allow you to play a sound. If I get some time this week, I will look into this one for you. Thanks |
Cool thanks! Found something here phonegap/phonegap-plugin-push#17 about putting caf sound file in platform/iOS/ but had no chance to try it yet... |
Hi all, I succeded in setting a custom notification soud in both Android and iOS 1- ~~~You must use a .caf file or a .wav file~~~ You can use a .caf file or .wav file or (at least on iOS 11 + Xcode 9.2 it works) a .mp3!
2- I found here:
|
Interesting enough that Apple documentation contradicts what I saw about mp3...
|
Hi Luigi. Nice work, this is fantastic. I think what we need to do here is:
Im not sure if I will be able to do this, this week but I will get back to you |
Sorry didn't mean to close it |
Thanks Chris! :-) |
Added on main post above a method to copy automatically the sound files through config.xml. |
Hi,
in Android we can select the type of sound of the notification as long as we have an mp3 file associated in the build.
It seems that in iOS is not possible and always the std notification sound is issued.
Any chance to change it?
As a workaround, if not possible, I noticed that some iOS app do have a specific Notification SOUND option enabled: instead of just sound on/off you can also choose which sound you want which for me would be good enough...
Any idea on how to enable this behaviour in the app?
Thanks
Luigi
The text was updated successfully, but these errors were encountered: