You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Shazron Abdullah (JIRA)" <ji...@apache.org> on 2013/06/22 02:47:20 UTC
[jira] [Commented] (CB-3970) Make notification.beep cross platform
in js
[ https://issues.apache.org/jira/browse/CB-3970?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13690968#comment-13690968 ]
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:
{code}
// 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);
}
{code}
> Make notification.beep cross platform in js
> -------------------------------------------
>
> Key: CB-3970
> URL: https://issues.apache.org/jira/browse/CB-3970
> 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: http://www.atlassian.com/software/jira