Support for Android

This commit is contained in:
Sebastián Katzer 2014-02-13 14:22:21 +01:00
parent 859bb58b5c
commit eba37c4aca
2 changed files with 13 additions and 2 deletions

View File

@ -7,6 +7,7 @@ by Sebastián Katzer ([github.com/katzer](https://github.com/katzer))
## Supported Platforms ## Supported Platforms
- **iOS** (>=5) - **iOS** (>=5)
- **Android**
- **WP8** - **WP8**
## Adding the Plugin to your project ## Adding the Plugin to your project
@ -26,6 +27,9 @@ cordova plugin rm de.appplant.cordova.plugin.background-mode
``` ```
## Release Notes ## Release Notes
#### Version 0.5.0 (13.02.2014)
- Added Android support.
#### Version 0.4.1 (13.02.2014) #### Version 0.4.1 (13.02.2014)
- Release under the Apache 2.0 license. - Release under the Apache 2.0 license.
- [enhancement:] Location tracking is only activated on WP8 if the location service is available. - [enhancement:] Location tracking is only activated on WP8 if the location service is available.

View File

@ -3,13 +3,13 @@
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0" <plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:android="http://schemas.android.com/apk/res/android"
id="de.appplant.cordova.plugin.background-mode" id="de.appplant.cordova.plugin.background-mode"
version="0.4.1"> version="0.5.0dev">
<name>BackgroundMode</name> <name>BackgroundMode</name>
<description>A bunch of background mode plugins for Cordova 3.x.x</description> <description>A bunch of background mode plugins for Cordova 3.x.x</description>
<repo>https://github.com/katzer/cordova-plugin-background-mode.git</repo> <repo>https://github.com/katzer/cordova-plugin-background-mode.git</repo>
<keywords>background, ios, windows phone 8, wp8</keywords> <keywords>background, ios, windows phone 8, wp8, android</keywords>
<license>Apache 2.0</license> <license>Apache 2.0</license>
<author>Sebastián Katzer</author> <author>Sebastián Katzer</author>
@ -47,6 +47,13 @@
<source-file src="src/ios/APPBackgroundMode.m" /> <source-file src="src/ios/APPBackgroundMode.m" />
</platform> </platform>
<!-- android -->
<platform name="android">
<config-file target="config.xml" parent="/*">
<preference name="KeepRunning" value="true" />
</config-file>
</platform>
<!-- wp8 --> <!-- wp8 -->
<platform name="wp8"> <platform name="wp8">
<config-file target="config.xml" parent="/*"> <config-file target="config.xml" parent="/*">