cordova-issues mailing list archives

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

    [ 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

Mime
View raw message