Cordova PushPlugin: Android won't play push sound while app not running
问题 I'm using the PushPlugin for cordova, and in android, I can't make the push notification play a sound while the app is not running or in background (the banner in status bar is presented ok). Here's the function that gets called on android push notifications- function onNotification(e) { . . . case 'message': { var myMedia = new Media("/android_asset/www/res/raw/tritone.mp3"); myMedia.play({ numberOfLoops: 2 }) the sound plays fine while app is running in foreground. This is the 'e' param