Closed adamgins closed 9 years ago
I have the same problem of only one notification but I didn't try to solve it yet.
With the badges I wouldn't worry too much if it doesn't work, android os doesn't have a consistent way to present badges, only some custom home screens / launchers have it.
On 00:01, Wed, May 25, 2016 sahanDissanayake notifications@github.com wrote:
hi @maciejsaw https://github.com/maciejsaw since you are one of the few poeple that got the plugin to work on Android maybe you might have an idea
There are no badge on the icon and also if you send multiple push notifications from the server then one notification on the phone is replaced by the next notification on ANDROID, Which means there is always one ONE notification on tray 😢
raix:push@3.0.3-rc.4
My cordova-plugins
de.appplant.cordova.plugin.local-notification@0.8.4 org.apache.cordova.dialogs@1.2.1 org.apache.cordova.vibration@2.1.1
— You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub https://github.com/raix/push/issues/9#issuecomment-221414050
For custom sounds you are unable to use MP3 (iOS restriction I believe), you need to use WAV or CAF. If you have an mp3 you can simply run the following to convert your mp3 via the terminal.
afconvert -f caff -d LEI16@44100 -c 1 <<file>>.mp3 <file>>.caf
The solution that @maciejsaw proposed worked for me. To make it work in iOS I had to add nested iOS configuration found here. If it's set in the root of configuration object as described in the docs, iOS doesn't pick it up.
Push.Configure({
...
"ios": {
"sound": true,
"badge": true,
"alert": true
}
});
We're on version 3.0.3-rc.2 of the push plugin, I'm not sure if this issue was addressed in later versions.
Does anyone know why the sounds stopped working according to this scheme?
I figured it out! Need to transfer files from res/raw
directory to app/src/main/res/raw
Yes, for meteor 1.8.1 ≥ you need to put your resources in cordova-build-override/platforms/android/app/src/main/res/
now at least everyone can find out)
HI,
anything I am missing to get sounds to work?
here's my init:
BTW, they seem to work fine on iOS if I am using one with push simulators.