Return-Path: X-Original-To: apmail-cordova-issues-archive@minotaur.apache.org Delivered-To: apmail-cordova-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 50E1110B48 for ; Sat, 22 Jun 2013 00:47:20 +0000 (UTC) Received: (qmail 17247 invoked by uid 500); 22 Jun 2013 00:47:20 -0000 Delivered-To: apmail-cordova-issues-archive@cordova.apache.org Received: (qmail 17222 invoked by uid 500); 22 Jun 2013 00:47:20 -0000 Mailing-List: contact issues-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cordova.apache.org Delivered-To: mailing list issues@cordova.apache.org Received: (qmail 17213 invoked by uid 99); 22 Jun 2013 00:47:20 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 22 Jun 2013 00:47:20 +0000 Date: Sat, 22 Jun 2013 00:47:20 +0000 (UTC) From: "Shazron Abdullah (JIRA)" To: issues@cordova.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CB-3970) Make notification.beep cross platform in js MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ 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