More plugin spec

This commit is contained in:
Sebastián Katzer 2013-10-08 14:50:18 +02:00
parent bb2053600a
commit d7c0129743

View File

@ -21,16 +21,23 @@
<config-file target="config.xml" parent="/*"> <config-file target="config.xml" parent="/*">
<feature name="BackgroundMode"> <feature name="BackgroundMode">
<param name="ios-package" value="APPBackgroundMode"/> <param name="ios-package" value="APPBackgroundMode"/>
<!-- Needs to be initialiced onload since the plugin has no callable js interface -->
<param name="onload" value="true" /> <param name="onload" value="true" />
</feature> </feature>
</config-file> </config-file>
<!-- The app is able to run in background through location-tracking mode -->
<config-file target="*-Info.plist" parent="UIBackgroundModes"> <config-file target="*-Info.plist" parent="UIBackgroundModes">
<array> <array>
<string>location</string> <string>location</string>
</array> </array>
</config-file> </config-file>
<!-- Hint is displayed to user by first start -->
<config-file target="*-Info.plist" parent="NSLocationUsageDescription">
<string>Is required -for iOS 6 and above- to run the app in background!</string>
</config-file>
<header-file src="src/ios/APPBackgroundMode.h" /> <header-file src="src/ios/APPBackgroundMode.h" />
<source-file src="src/ios/APPBackgroundMode.m" /> <source-file src="src/ios/APPBackgroundMode.m" />
</platform> </platform>