Skip to content
This repository has been archived by the owner on Sep 4, 2020. It is now read-only.

No default sound in Android #53

Closed
natanaelmaia opened this issue Jul 31, 2015 · 6 comments
Closed

No default sound in Android #53

natanaelmaia opened this issue Jul 31, 2015 · 6 comments
Assignees
Labels
Milestone

Comments

@natanaelmaia
Copy link

The plugin stopped playing notification sounds after I've updated to version 1.1.1 (I’m not passing custom sound file name in the payload).

Maybe the reason is because of the following commented line in GCMIntentService.java bellow:

 NotificationCompat.Builder mBuilder =
            new NotificationCompat.Builder(context)
                //.setDefaults(defaults)
                .setWhen(System.currentTimeMillis())
                .setContentTitle(extras.getString("title"))
                .setTicker(extras.getString("title"))
                .setContentIntent(contentIntent)
                .setAutoCancel(true);
@macdonst macdonst added the bug label Jul 31, 2015
@macdonst macdonst self-assigned this Jul 31, 2015
@macdonst macdonst added this to the Release 1.2.0 milestone Jul 31, 2015
@macdonst
Copy link
Member

@natanaelmaia Yes, thanks for pointing that out. I had to comment out setDefaults as it messes with other settings when I try to over-ride them.

macdonst added a commit that referenced this issue Jul 31, 2015
@macdonst
Copy link
Member

Fixed in master

@natanaelmaia
Copy link
Author

Thanks!

@natanaelmaia
Copy link
Author

@macdonst I forgot to mention that there is no default vibration also...

@macdonst
Copy link
Member

@natanaelmaia hmmm...I think these should be properties.

@lock
Copy link

lock bot commented Jun 5, 2018

This thread has been automatically locked.

@lock lock bot locked as resolved and limited conversation to collaborators Jun 5, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Development

No branches or pull requests

2 participants