2013-10-08 08:51:17 +00:00
|
|
|
Cordova BackgroundMode-Plugin
|
2013-10-08 08:28:55 +00:00
|
|
|
==============================
|
|
|
|
|
2013-10-08 08:51:17 +00:00
|
|
|
A bunch of background mode plugins for Cordova 3.x.x
|
|
|
|
|
|
|
|
by Sebastián Katzer ([github.com/katzer](https://github.com/katzer))
|
|
|
|
|
|
|
|
## Supported Platforms
|
2013-10-08 14:39:40 +00:00
|
|
|
- **iOS** (>=5)
|
2013-10-08 08:51:17 +00:00
|
|
|
|
|
|
|
## Adding the Plugin to your project
|
|
|
|
Through the [Command-line Interface](http://cordova.apache.org/docs/en/3.0.0/guide_cli_index.md.html#The%20Command-line%20Interface):
|
|
|
|
```
|
|
|
|
cordova plugin add https://github.com/katzer/cordova-plugin-background-mode.git
|
|
|
|
```
|
|
|
|
|
|
|
|
## Removing the Plugin from your project
|
|
|
|
Through the [Command-line Interface](http://cordova.apache.org/docs/en/3.0.0/guide_cli_index.md.html#The%20Command-line%20Interface):
|
|
|
|
```
|
|
|
|
cordova plugin rm de.appplant.cordova.plugin.background-mode
|
|
|
|
```
|
|
|
|
|
|
|
|
## Release Notes
|
2013-10-08 14:24:51 +00:00
|
|
|
#### Version 0.2.0 (not yet released)
|
2013-10-08 14:39:40 +00:00
|
|
|
- Added iOS (>= 5) support<br>
|
2013-10-08 14:32:51 +00:00
|
|
|
The plugin turns the app into an location tracking app for the time it runs in the background.
|
2013-10-08 08:51:17 +00:00
|
|
|
|
|
|
|
## Using the plugin
|
2013-10-08 14:24:51 +00:00
|
|
|
The plugin comes without a js interface. Simply add the plugin to your project and the app will run while in background mode.
|
2013-10-08 14:32:10 +00:00
|
|
|
|
2013-10-08 14:39:40 +00:00
|
|
|
**iOS 5-6**<br>
|
|
|
|
The app still runs in background, even if the location service is not active.
|
|
|
|
|
|
|
|
**iOS 7**<br>
|
|
|
|
The location service needs to be enabled.
|
|
|
|
|
2013-10-08 14:32:10 +00:00
|
|
|
## Quirks
|
|
|
|
|
|
|
|
### The app crashes under iOS
|
|
|
|
If the app crashes after installing the plugin, make sure that your `*-Info.plist` is valid.
|
|
|
|
Do to some bugs in cordova or Plugman please reset all occurences like
|
|
|
|
```xml
|
|
|
|
<key>NSMainNibFile</key>
|
|
|
|
<string>
|
|
|
|
|
|
|
|
</string>
|
|
|
|
```
|
|
|
|
into
|
|
|
|
```xml
|
|
|
|
<key>NSMainNibFile</key>
|
|
|
|
<string></string>
|
|
|
|
```
|