Get geo location and send data in the background in IOS



Here is what I want to accomplish : being able to periodically send updates to a web service with the current location of the device on which the {NS} app is running. This should happen even if the app is “minimized” or app is terminated.

In Android it works also in background.
in android we created our own plug-in that run in background
in IOS we tried with creating framework and using that framework try to create plugin but we always get error in build time

fatal error: lipo: input file (./LocationToServer.framework/LocationToServer) must be a fat file when the -remove option is specified

Is there a way to accomplish this or pointing me to some helpful link?