如何在Phonegap windows phone 8.1中使用背景跟踪

时间:2014-05-12 11:51:05

标签: c# cordova windows-phone-8 windows-phone-8.1

我正在使用Phonegap windows ph 8后台跟踪和推送通知

***<BackgroundExecution>
   <ExecutionType Name="LocationTracking" />
  </BackgroundExecution>***

     This is working properly in windows phone 8 but now we are support 8.1 while application is in background and any pushnotification received taped on toast my application is relaunched not resume.

1 个答案:

答案 0 :(得分:0)

在wp8.1的后台运行时,位置图标应该打开。如果不是你的应用程序正在睡觉。

您需要安装backgroundMode插件。

注意:Phonegap不会在wp8.1的后台运行,但位置线程(backgroundMode插件)会运行。这意味着你的应用程序将不会收到任何GPS更新。但它将从后台恢复而不重新启动。