让Phonegap应用程序在后台运行。 [英] Make Phonegap app run in background.

查看:105
本文介绍了让Phonegap应用程序在后台运行。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨朋友们,

我在网上冲浪找到解决方案,即使应用程序没有打开也能在后台运行phonegap安卓应用程序。我找到了一些解决方案和github链接。但是那些不足以解释我如何根据我的要求为后台服务编写java和js文件。



请帮我解决这个问题。我迫切需要它。在此先感谢,

解决方案

根据Phonegap文档,您无法在后台运行应用程序,您需要为此创建插件 。见..

http://stackoverflow.com/questions/9377064/how-to-run-the-android-phonegap-application-in-backgroundafter-closing-the-appl [ ^ ]

http:// stackoverflow .com / questions / 17225866 / phonegap-app-on-android-platform-keep-app-running [ ^ ]

Hi friends,
I surfed internet to find the solution to make phonegap android app run in background even the app is not opened. I found some solutions and also github links. But those are not clear enough to explain me how to write java and js file for a background service based on my requirements.

Please help me to solve this. I need it urgently. Thanks in advance,

解决方案

According to the Phonegap documentation you cannot run the apps in the background, you need to create a plugin for that.See..
http://stackoverflow.com/questions/9377064/how-to-run-the-android-phonegap-application-in-backgroundafter-closing-the-appl[^]
http://stackoverflow.com/questions/17225866/phonegap-app-on-android-platform-keep-app-running[^]


这篇关于让Phonegap应用程序在后台运行。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆