Oracle Help Center | Oracle Push Cloud Service (Standalone) title

Sounds & Notification Icons

Sounds:

The Push IO Manager will play any sound included in the GCM payload, so long as the sound you're playing is in res/raw folder of your project.

More information about sending these sounds can be found in the Server API topic.

NOTE: Unlike iOS, payloads that contain sound for Android do not need the filetype (.wav or .caf, etc.) to be present in the payload. For example, a sound file "timeralarm.wav" will only need a payload of "sound":"timeralarm" to play on your Android device.

 

Notification Icons:

For Android, you can set two types of default notification icons (Android 3.0+). Place the icon files in the drawable folder, which is located in your resources (res) folder:

PushIOManager.getInstance(this).setDefaultSmallIcon(R.drawable.small_icon_name);
PushIOManager.getInstance(this).setDefaultLargeIcon(R.drawable.large_icon_name);

Example of setting the notification icons: In the following example calls, both setDefaultLargeIcon() and setDefaultSmallIcon() take an Integer value as the parameter.

PushIOManager.getInstance(this).setDefaultSmallIcon(R.drawable.emo_im_surprised);
PushIOManager.getInstance(this).setDefaultLargeIcon(R.drawable.emo_im_happy);

NOTES: