Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
cordova-plugin-local-notifications
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Nabil Sadki
cordova-plugin-local-notifications
Commits
4fe86568
Commit
4fe86568
authored
Dec 09, 2013
by
Sebastián Katzer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update README.md
parent
9d023935
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
README.md
README.md
+3
-4
No files found.
README.md
View file @
4fe86568
...
@@ -156,20 +156,19 @@ window.plugin.notification.local.add({ icon: 'ic_dialog_email' });
...
@@ -156,20 +156,19 @@ window.plugin.notification.local.add({ icon: 'ic_dialog_email' });
```
```
### Notification sound on Android
### Notification sound on Android
The default sound is
`RingtoneManager.TYPE_NOTIFICATION`
. But an specific sound can be defined through the
`sound`
property.
<br>
The sound must be a absolute or relative Uri pointing to the sound file. The default sound is
`RingtoneManager.TYPE_NOTIFICATION`
.
The sound must be a absolute or relative Uri pointing to the sound file.
```
javascript
```
javascript
/**
/**
* Plays the `beep.mp3` sound if the notification pop's up
* Plays the `beep.mp3` sound if the notification pop's up
*/
*/
window
.
plugin
.
notification
.
local
.
add
({
"android.resource://"
+
package_name
+
"/raw/beep"
});
window
.
plugin
.
notification
.
local
.
add
({
sound
:
"android.resource://"
+
package_name
+
"/raw/beep"
});
/**
/**
* Plays the `RingtoneManager.TYPE_ALARM` sound
* Plays the `RingtoneManager.TYPE_ALARM` sound
*/
*/
window
.
plugin
.
notification
.
local
.
add
({
sound
:
'TYPE_ALARM'
});
window
.
plugin
.
notification
.
local
.
add
({
sound
:
'TYPE_ALARM'
});
```
```
**Note:**
Images or sound
s must be placed into the res-folder and not into the assets-folder.
**Note:**
Local sound file
s must be placed into the res-folder and not into the assets-folder.
### Notification sound on iOS
### Notification sound on iOS
The sound must be located in your project's resources and must be a caf file.
The sound must be located in your project's resources and must be a caf file.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment