Difference between revisions of "Notification:setSound"
From GiderosMobile
Line 4: | Line 4: | ||
<translate>Sets the sound which is played when notification is shown. | <translate>Sets the sound which is played when notification is shown. | ||
− | By default no sound is played and if you want to play default system sound, then you can use | + | By default no sound is played and if you want to play default system sound, then you can use [[Notification.DEFAULT_SOUND]] constant |
For cross-platform compatability it is better to use .wav file types. | For cross-platform compatability it is better to use .wav file types. |
Revision as of 13:55, 23 August 2018
Available since: Gideros 2011.6
Description
Sets the sound which is played when notification is shown.
By default no sound is played and if you want to play default system sound, then you can use Notification.DEFAULT_SOUND constant
For cross-platform compatability it is better to use .wav file types.
For IOS the audio length can not exceed 30 seconds
You can reference this <a href='https://developer.apple.com/library/IOs/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/Chapters/IPhoneOSClientImp.html' target='_blank'>IOS notification guide</a> for converting sound to needed formats on IOS.
Notification:setSound()