cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shazron Abdullah (JIRA)" <>
Subject [jira] [Commented] (CB-3970) Make notification.beep cross platform in js
Date Sat, 22 Jun 2013 00:47:20 GMT


Shazron Abdullah commented on CB-3970:

Plus, include the beep.wav as an asset for iOS in the plugin, make sure it gets copied in
as a resource to the .app bundle.

Use the AudioToolbox.framework for short system sounds:

// add in CDVNotification.h, .m
- (void) beep:(CDVInvokedUrlCommand*)command
    SystemSoundID completeSound;
    NSURL *audioPath = [[NSBundle mainBundle] URLForResource:@"beep" withExtension:@"wav"];
    AudioServicesCreateSystemSoundID((CFURLRef)audioPath, &completeSound);
    AudioServicesPlaySystemSound (completeSound);
> Make notification.beep cross platform in js
> -------------------------------------------
>                 Key: CB-3970
>                 URL:
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS, Plugin Dialogs, Plugin Vibration
>            Reporter: Steve Gill
>            Assignee: Shazron Abdullah
> Their is a ios specific notification.js file in cordova-plugin-vibration that use Media
to do a beep. We should redo beep to use the common definition of beep in the common notification.js
file and remove the ios specific one.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:

View raw message