Replace sound file

This commit is contained in:
Sebastián Katzer 2014-12-14 00:57:22 +01:00
parent a472777304
commit c20c90c1ec
6 changed files with 11 additions and 6 deletions

View File

@ -1,5 +1,5 @@
## ChangeLog
#### Version 0.6.0 (not yet released)
#### Version 0.6.0 (14.12.2014)
- [feature:] Android support
- [feature:] `onactivate`, `ondeactivate` and `onfailure` callbacks.
- [___change___:] Disabled by default

View File

@ -50,20 +50,25 @@ cordova plugin add de.appplant.cordova.plugin.background-mode --searchpath path
or to use the last stable version:
```bash
# ~~ stable version ~~
cordova plugin add de.appplant.cordova.plugin.background-mode@0.5.0
cordova plugin add de.appplant.cordova.plugin.background-mode@0.6.0
```
To remove the plug-in, run the following command:
```bash
cordova plugin rm de.appplant.cordova.plugin.background-mode
```
### PhoneGap Build
Add the following xml to your config.xml to always use the latest version of this plugin:
```xml
<gap:plugin name="de.appplant.cordova.plugin.background-mode" version="0.5.0" />
<gap:plugin name="de.appplant.cordova.plugin.background-mode" version="0.6.0" />
```
More informations can be found [here][PGB_plugin].
## ChangeLog
#### Version 0.6.0 (not yet released)
#### Version 0.6.0 (14.12.2014)
- [feature:] Android support
- [feature:] `onactivate`, `ondeactivate` and `onfailure` callbacks.
- [___change___:] Disabled by default

BIN
appbeep.wav Normal file

Binary file not shown.

View File

@ -50,7 +50,7 @@
</array>
</config-file>
<resource-file src="res/silent.wav" />
<resource-file src="appbeep.wav" />
<header-file src="src/ios/APPBackgroundMode.h" />
<source-file src="src/ios/APPBackgroundMode.m" />

Binary file not shown.

View File

@ -128,7 +128,7 @@ NSString *const kAPPBackgroundModeFailureEvent = @"failure";
* Configure the audio player.
*/
- (void) configureAudioPlayer {
NSString* path = [[NSBundle mainBundle] pathForResource:@"silent"
NSString* path = [[NSBundle mainBundle] pathForResource:@"appbeep"
ofType:@"wav"];
NSURL* url = [NSURL fileURLWithPath:path];