phonegap background service in iOS5

后端 未结 2 1478
孤城傲影
孤城傲影 2021-01-15 08:19

I am writing update checker program in xcode, my program needs background process( it needs to be run in background), so is it possible in phonegap, and is there any phonega

2条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-01-15 08:57

    It is definitely possible to run some JS code in the background to be checking this (https://github.com/jocull/phonegap-backgroundjs).

    It won't be possible to do it for more than 10 minutes in the background, though (Run app for more than 10 minutes in background)

    So you'll need both a combination of the first plugin I mentioned and the PN service that dhaval is suggesting.

    Cheers!

提交回复
热议问题