mirror of
https://bitbucket.org/TheBosZ/cordova-plugin-run-in-background
synced 2024-11-22 15:24:54 +00:00
Initial WP8 support
This commit is contained in:
parent
961d5a2590
commit
b4932b7ab1
29
plugin.xml
29
plugin.xml
@ -54,4 +54,33 @@
|
|||||||
<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>
|
||||||
|
|
||||||
|
<!-- wp8 -->
|
||||||
|
<platform name="wp8">
|
||||||
|
<config-file target="config.xml" parent="/*">
|
||||||
|
<feature name="BackgroundMode">
|
||||||
|
<param name="wp-package" value="BackgroundMode"/>
|
||||||
|
<!-- 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="Properties/WMAppManifest.xml" parent="/Deployment/App/Tasks/DefaultTask">
|
||||||
|
<BackgroundExecution>
|
||||||
|
<ExecutionType Name="LocationTracking" />
|
||||||
|
</BackgroundExecution>
|
||||||
|
</config-file>
|
||||||
|
|
||||||
|
<config-file target="Properties/WMAppManifest.xml" parent="/Deployment/App/Capabilities">
|
||||||
|
<Capability Name="ID_CAP_LOCATION" />
|
||||||
|
</config-file>
|
||||||
|
|
||||||
|
<config-file target="App.xaml" parent="/Application/Application.ApplicationLifetimeObjects">
|
||||||
|
<shell:PhoneApplicationService
|
||||||
|
RunningInBackground="Application_RunningInBackground"/>
|
||||||
|
</config-file>
|
||||||
|
|
||||||
|
<source-file src="src/wp8/BackgroundMode.cs" />
|
||||||
|
</platform>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
0
src/wp8/BackgroundMode.cs
Normal file
0
src/wp8/BackgroundMode.cs
Normal file
Loading…
Reference in New Issue
Block a user