What was missing from my previous code:
Uri alarmSound = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION);
builder.setSound(alarmSound);
More Related Contents:
- Notification bar icon turns white in Android 5 Lollipop
- Push notifications on content change
- Change Notification Layout
- Custom notification layouts and text colors
- Android 4.1: How to check notifications are disabled for the application?
- startForeground fail after upgrade to Android 8.1
- Firebase FCM notifications click_action payload
- How to create a notification with NotificationCompat.Builder?
- NotificationCompat.Builder deprecated in Android O
- How to fix: android.app.RemoteServiceException: Bad notification posted from package *: Couldn’t create icon: StatusBarIcon
- How to dismiss notification after action has been clicked
- Cancel notification on remove application from multitask panel
- Android: Test Push Notification online (Google Cloud Messaging) [closed]
- Any way to link to the Android notification settings for my app?
- Open specific Activity when notification clicked in FCM
- How to update Notification with RemoteViews?
- Android multiple line notification like Gmail app
- Do GCM registration id’s expire?
- Android: Is it possible to update a ImageView/ImageButton with a number to show the number of new messages?
- Clicking on Notification is not starting intended activity?
- Create Custom Big Notifications
- Heads-up Notification – Android Lollipop
- On Android 8.1 API 27 notification does not display
- How To give notifications on android on specific time?
- Notification passes old Intent Extras
- Music player control in notification
- How to open fragment page, when pressed a notification in android
- Bad notification posted – Couldn’t expand RemoteViews for: StatusBarNotification
- How to implement the deprecated methods of Notification
- Is possible set Expanded Notification as default in Big Text Notifications?