The following very useful code was published in another post. Is it possible to pass the SystemSoundID (1302 in this case) to the Sub as a parameter?
B4X:
Sub PlayBeep
Dim NativeMe As NativeObject = Me
NativeMe.RunMethod("beep", Null)
End Sub
#If ObjC
#import <AVFoundation/AVAudioPlayer.h>
- (void) beep {
AudioServicesPlaySystemSound(1302);
}
#End If