|
@@ -50,12 +50,11 @@ public class NCFirebaseMessagingService extends FirebaseMessagingService {
|
|
|
PendingIntent pendingIntent = PendingIntent.getActivity(this, 0, intent,
|
|
|
PendingIntent.FLAG_ONE_SHOT);
|
|
|
|
|
|
- Uri defaultSoundUri = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION);
|
|
|
NotificationCompat.Builder notificationBuilder = new NotificationCompat.Builder(this)
|
|
|
.setSmallIcon(R.drawable.notification_icon)
|
|
|
.setLargeIcon(BitmapFactory.decodeResource(getResources(),R.drawable.notification_icon))
|
|
|
.setContentTitle(contentTitle)
|
|
|
- .setSound(defaultSoundUri)
|
|
|
+ .setSound(RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION))
|
|
|
.setAutoCancel(true)
|
|
|
.setContentIntent(pendingIntent);
|
|
|
|