【发布时间】:2016-05-13 07:50:32
【问题描述】:
我一直在尝试使用this 教程为我的科尔多瓦应用程序创建后台服务。我收到一个错误,上面写着:Plugin unable to bind to background service. 我一直在研究这个错误,并且在 github here 上提供了多个修复程序。但是,这些修复并不能解决我的问题。我已经在上面的链接中发表了评论,解释了这个问题,但还没有修复。不过也有更多的 cmets 说他们遇到了同样的问题。
here 提供的解决方案与我的问题无关,也没有解决它。
我已按照教程的确切说明进行操作,并使用了与教程中提到的名称相同的名称。我的包名是:com.red_folder.phonegap.plugin.backgroundservice.sample
并像这样在AndroidManifest.xml 中声明服务:
<service android:name="com.red_folder.phonegap.plugin.backgroundservice.sample.MyService">
<intent-filter>
<action android:name="com.red_folder.phonegap.plugin.backgroundservice.sample.MyService" />
</intent-filter>
</service>
这里有人有解决这个问题的方法吗?
非常感谢!
【问题讨论】:
标签: java android cordova phonegap-plugins cordova-plugins