How to create plugin in phonegap to run the application in background?

前端 未结 2 1146
难免孤独
难免孤独 2020-12-08 06:13

I have created plugin for background service (to run the application in background) in phonegap.

here is my java code for plugin:

public class Backgr         


        
2条回答
  •  粉色の甜心
    2020-12-08 06:37

    In the onCreate method of your Java class that extends from DroidGap make sure you have set "keepRunning" properly.

            super.setBooleanProperty("keepRunning", true);
    

提交回复
热议问题