【问题标题】:Is it possible with sencha touch native app to still run in the background?sencha touch 本机应用程序是否仍可以在后台运行?
【发布时间】:2013-12-06 19:42:35
【问题描述】:

我是 sencha touch 的新手,我正在尝试在 iOS 和 Android 中使用 phonegap 创建一个原生应用程序。

我们需要通过蓝牙从设备获取数据到手机,即使应用关闭也让它仍然接收数据。

煎茶触摸可以做到这一点吗?

【问题讨论】:

    标签: android ios cordova sencha-touch


    【解决方案1】:

    默认情况下,这对于 Phonegap/Cordova 是不可能的,当您暂停应用程序时,JavaScript 执行也会停止。然而,有一些插件可以做到这一点。一个简单的谷歌搜索会给出类似

    的结果

    https://github.com/jocull/phonegap-backgroundjs

    祝你好运

    【讨论】:

    • 非常感谢 Rob,ill try the link that you gave soon..if this really could be done, now im 有点担心会不会被苹果拒绝。你知道这是否会被接受或拒绝吗?谢谢
    • 添加后台服务不是苹果拒绝的理由。插件的本机方面正在使用本机应用程序也可以使用的功能。当然,您必须彻底测试您的应用,以免耗尽用户的电量。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2012-05-05
    • 2011-05-02
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-12-19
    相关资源
    最近更新 更多