mirror of
https://bitbucket.org/TheBosZ/cordova-plugin-run-in-background
synced 2024-12-23 05:47:35 +00:00
Replace sound file
This commit is contained in:
parent
a472777304
commit
c20c90c1ec
@ -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
|
||||
|
11
README.md
11
README.md
@ -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
BIN
appbeep.wav
Normal file
Binary file not shown.
@ -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" />
|
||||
|
BIN
res/silent.wav
BIN
res/silent.wav
Binary file not shown.
@ -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];
|
||||
|
Loading…
Reference in New Issue
Block a user