Does PhoneGap app require iOS source code for background service?

I have a PhoneGap app and it checks your location every 5 minutes and reports it etc. to do it when the app needs to run in the background.

For Android I wrote my own code, but for iOS will this work?

I'm not even sure how to implement my own c object in PhoneGap as they are very different compilers and this pauses.

Any advice would be appreciated. When it returns to the foreground, it will resume all remaining operations.

+3


source to share


1 answer


For this you need to write a plugin. The plugin will allow you to write Objective-C code and link it to a JS function. Here are some guides:

From Apache

From Adobe



Other

Here's also a big list of plugins people have already created: iOS plugins

+1


source







All Articles