ionic natives plugin analysis - rlasjunies/kct GitHub Wiki

3.1. icons for notification

http://fa2png.io/r/ionicons/ios-game-controller-b/

http://fa2png.io

3.2. notification documentation

from: http://phonegap-plugins.com/plugins/katzer/cordova-plugin-local-notifications

3.2.1. sound

Notification sound on Android The sound must be a absolute or relative Uri pointing to the sound file. The default sound is RingtoneManager.TYPE_NOTIFICATION.

Note: Local sound files must be placed into the res-folder and not into the assets-folder.

/**

  • Plays the beep.mp3 which has to be located in the res folder */ window.plugin.notification.local.add({ sound: 'android.resource://' + package_name + '/raw/beep' });

/**

/**

  • Plays a sound file which has to be located in the android_assets folder */ window.plugin.notification.local.add({ sound: '/www/audio/beep.mp3' });

/**

  • Plays the RingtoneManager.TYPE_ALARM sound */ window.plugin.notification.local.add({ sound: 'TYPE_ALARM' });