mirror of
https://bitbucket.org/TheBosZ/cordova-plugin-run-in-background
synced 2024-11-21 23:04:53 +00:00
More plugin spec
This commit is contained in:
parent
bb2053600a
commit
d7c0129743
@ -21,16 +21,23 @@
|
||||
<config-file target="config.xml" parent="/*">
|
||||
<feature name="BackgroundMode">
|
||||
<param name="ios-package" value="APPBackgroundMode"/>
|
||||
<!-- Needs to be initialiced onload since the plugin has no callable js interface -->
|
||||
<param name="onload" value="true" />
|
||||
</feature>
|
||||
</config-file>
|
||||
|
||||
<!-- The app is able to run in background through location-tracking mode -->
|
||||
<config-file target="*-Info.plist" parent="UIBackgroundModes">
|
||||
<array>
|
||||
<string>location</string>
|
||||
</array>
|
||||
</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" />
|
||||
<source-file src="src/ios/APPBackgroundMode.m" />
|
||||
</platform>
|
||||
|
Loading…
Reference in New Issue
Block a user