Hi All I am currently implementing Firebase with our mobile app. and part of the requirement is the usage of customize sound. I did my research regarding the said approach and would like to ask if anyone has implemented a custom sound when receiving a push notif from Firebase. Here are my list of questions based on the things i researched.1. In adding the wav/ caf file how can deploy them under the src folder, when i had a chance to unzip the android apk. when the files are tag as deployed in a specific directory they are being stored in the assest file instead of the direct src folder. Here are the sample screeshot from the said apk.2. Is it still possible to implement the said approach for the customized push notification using this parameter in the firebase plugin. 3. If the number 2 question is no longer supported how can I implement the custom sound I am seeing stack overflow discussions however I am not seeing discussion as to how I can implement this in Outsystems. Thank you all for answering my queries.
Additional to this one. I tried using the file plugin component to save the mp3 file and check the filemanager for the said file here is my result .Would appreciate some help for this one. Thank you !
Hi Michael,
Push Notification Custom Sound
Hi Fábio I already prepared the zip file. can you tell me how can I deploy the said zip file in the www folder ? Thank you ! I tried this in , and opened the android zip.
Try do this:
Hi again Fabio i did what you told me. and rebuilded the app however the sound is still the default and it vibrates . upon opening the Notification i found this things would you know what to do next ?Thank you very much for the assist.
Michael,
You confirm if the ZIP was placed in the WWW folder (Open the .APK with zip app like 7.zip and validate)? i change the print in previous reply, please check it again. Thank you
Here is the new build. and i applied the deploy to target with empty.
And nothing happens?
According with the plugin code this must works...
For Android maybe you need to use a .WAV file.
But for iOS the .CAF is correct
Okay i will try using the Wav file. And try to test it in IOS.
Hi again Fabio i tried to rebuild and use a .wav file and implement the same deploy to action. and still no notif for android. but default notif for ios. With the android settings upon fresh install the setting seems to set to the push notif file however i think it is failing to locate the said file. thus not able to sound the custom sound for firebase.Were you able to let the custom sound work ?
Sorry to read that, in this case @DavidSousa is the best person to help we made the changes by plugin code.
Can you share some of the updates that you did with the forge component ? for the parameters or whichever is applicable. Did you update the flow here ?
I tried also updating the request will this have an effect ?
{
"registration_ids":[
],
"data":[
"key":"title",
"value":" Text"
},
"key":"body",
"value":"Test"
"key":"click_action",
"value":"Home"
"key":"sound",
"value":"push_sound"
"key":"platform",
"value":"android"
"key":"wwwfolder",
"value":"assets/www"
"key":"firebaseFileExtension",
"value":".json"
"key":"soundFileName",
"value":"push_sound.wav"
}
]
I didn't use Firebase for push, i just try to understand the Cordova Plugin and help you.
https://github.com/Product-League/cordova-plugin-firebase-only-analytics-notifications
this is the Github used by the plugin.
Thank you for the help Fabio, still blocked with the issue and still no reply from David Sousa. Still Hoping for a work around using this component. Thank you !