-
-
Notifications
You must be signed in to change notification settings - Fork 197
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How can I play a specific sound? #111
Comments
Use |
Thanks for that! =) |
What sound length is too long. 1 second? 2? 5? |
I think its about 40 seconds, but you can find out in apple's push notification docs |
I would immediately delete any app had a push notification sound longer than 10 seconds. Thats crazy lol |
Please see my solution here: #9 (comment) |
Is there a way to play a specific sound. I saw this topic in a previously closed issue, but it didn't seem resolved. I have a default sound playing, but I want to pick a sound. In my config.push.json:
{
"apn": {
"passphrase": "!",
"key": "**",
"cert": "**"
},
"apn-dev": {
"passphrase": "**",
"key": "***",
"cert": "*******"
},
"production": false,
"badge": true,
"sound": true,
"alert": true,
"vibrate": true
On my server file:
Push.send({
from: 'push',
title: 'Hello World',
text: 'This notification has been sent from the SERVER',
badge: badge,
payload: {
title: 'Hello World',
historyId: result
},
query: {},
sound: '../public/sound.mp3'
});
The text was updated successfully, but these errors were encountered: