Meteor-Community-Packages / raix-push

DEPRECATED: Push notifications for cordova (ios, android) browser (Chrome, Safari, Firefox)
https://atmospherejs.com/raix/push
MIT License
513 stars 197 forks source link

Are sounds implemented yet? #9

Closed adamgins closed 9 years ago

adamgins commented 9 years ago

HI,

anything I am missing to get sounds to work?

here's my init:

Push.init({

            bagde: true,
            sound: true,
            alert: true
        });

BTW, they seem to work fine on iOS if I am using one with push simulators.

maciejsaw commented 8 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

AshHimself commented 8 years ago

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

mjovkovic commented 7 years ago

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.

atomoc commented 5 years ago

Does anyone know why the sounds stopped working according to this scheme?

atomoc commented 4 years ago

I figured it out! Need to transfer files from res/raw directory to app/src/main/res/raw

shivang007 commented 4 years ago

Yes, for meteor 1.8.1 ≥ you need to put your resources in cordova-build-override/platforms/android/app/src/main/res/

atomoc commented 4 years ago

now at least everyone can find out)