On iOS, there is no default beep sound, so you have to set one. The sound file has to be included in the 'Copy Files' section of the standalone application settings. Also make sure that you use a valid path to the sound file. A working example would be:
1. Put your sound file (i.e. myBeepSound.m4a) file in the same folder with your main stack
2. Go to Standalone Application Settings --> Copy Files --> Add File and select myBeepSound.m4a
3. Add the following code in your card:
Code: Select all
set the beepsound to getBeepSound()
return specialFolderPath("resources") & slash & "myBeepSound.m4a"
Now, calling 'beep' on iPhone --> vibration + sound
iPad/iPod --> sound
Moreover, if you want to adjust the volume of the beep sound, go to:
Settings -> Sounds -> "Change with Buttons"
if enabled : The volume of the ringer and alerts (i.e the 'beep' sound) can be adjusted using the volume buttons
if disabled : The volume of the ringer and alerts will not be affected by the volume buttons
Hope this helps.