For the complete documentation index, see llms.txt. This page is also available as Markdown.

Sound & Vibration

Sending a Push Notification with Vibration for Android

To enable vibration in your Android application, add the following permission to your AndroidManifest.xml file as a direct child of the <manifest> element:

<uses-permission android:name="android.permission.VIBRATE" />

Afterward, ensure that vibration is enabled in the "What" tab while creating a campaign.

Adding Custom Sound to Your Project

You have the option to customize push notification sounds for different messages. Here's how to do it:

  1. Include your sound files in the "res/raw" directory within your Android project.

  1. Navigate to Developers > Messaging Assets > Sounds > Create New Sound.

  2. Enter the filename in the Sound FileName field. Use the filename without its extension when referencing the sound on Android.

  3. Use lowercase letters, numbers, and underscores in sound filenames. For example, reference notification_sound.wav as notification_sound.

  4. Select the desired sound name from the drop-down menu.

Sending Push Notifications with Sound

To send push notifications with sound, enable the "Play Sound" option on the "What" tab when creating a new push. If you choose "Default," the device's default sound will play, provided that sound is enabled in the device settings.

Last updated

Was this helpful?