How to run cordova plugin in Android background service?

后端 未结 3 856
礼貌的吻别
礼貌的吻别 2020-12-02 09:38

I am working on mobile application developed on cordova . I want to implement a background service that do some work like open socket connection syncronise local database wi

3条回答
  •  一生所求
    2020-12-02 10:08

    You should use an embedded Cordova WebView, not a standard WebView. A standard WebView is not set up to handle Cordova plugins, and the device info is a plugin.

    See the Cordova docs on embedding webviews.

提交回复
热议问题