Skip to content
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

Default sound is working on one Android device, but not on the other #170

Closed
derwaldgeist opened this issue Dec 18, 2015 · 4 comments
Closed

Comments

@derwaldgeist
Copy link

I am using 2 Android devices to test my app, a HTC One phone and a Nexus 7 tablet. On both devices, I've installed the app the same way and did not change the notification settings for the app on the device. Also, on both devices the volume is set to max.

But when I receive push notifications, the sound is only played on the HTC One. The Nexus 7 shows the notification, but remains silent. Since I am using the default sound, this can not be related to a non-working custom sound.

Do you have any ideas what might cause this?

I've also noticed that on the Nexus 7, the app's icon does not appear in the notification list (it's showing an empty icon), whereas on the HTC One the notification shows the app icon correctly, as it is on my iOS device.

@derwaldgeist
Copy link
Author

Update: I just found out that the sound works on the Nexus 7, if I omit

sound: 'default'

when sending the notification. Any ideas why this is not working?

@derwaldgeist
Copy link
Author

Strange thing is: iOS needs

sound: 'default'

You won't hear the sound if it is missing. So I had to use the overwrite

apn: {
   sound: 'default'
}

to make it work on both Android and iOS. Don't think this is intended?

@mvgalle
Copy link

mvgalle commented Dec 18, 2015

Hmm. You may want to do a custom sound for Android. Follow my post about playing custom sounds on android here. #9 (see the reply under mvgalle).

@derwaldgeist
Copy link
Author

Closing this, as I found a workaround.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants