mirror of
https://bitbucket.org/TheBosZ/cordova-plugin-run-in-background
synced 2024-11-22 15:24:54 +00:00
More plugin spec
This commit is contained in:
parent
bb2053600a
commit
d7c0129743
@ -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>
|
||||||
|
Loading…
Reference in New Issue
Block a user