On native Android, please modify the Push BroadcastReceiver implementation and use the NotificationCompat.Builder Android SDK methods to customize the notification.
For example, to change the sound, find the following in your
PushReceiver.java
:.setSound(RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION))
Replace with:
.setSound(Uri.parse(ContentResolver.SCHEME_ANDROID_RESOURCE + "://" + mContext.getPackageName() + "/" + R.raw.your_custom_sound))
Replace
R.raw.your_custom_sound
with your sound file name in the resources/raw
folder.For multi-line notifications, set the notification style to
BigTextStyle
as follows:
.setStyle(new Notification.BigTextStyle().bigText(notificationText))
Then, use \n
inside the notification text to insert a line break.