The app I have created use GPS position for making calls automatically: when applications is in foreground app make call correctly but when app itself is in background don't happen anything: can I solve, if is possible make calls when app is in background?
… however I don't use any API …
Last I checked,
-openURL:
was an API (-:
Seriously though, if your app is in the background,
-openURL:
is a no-op. This is a long-standing restriction that prevents background apps from switching the frontmost app out from underneath the user. There’s no way around this, and there’s no alternatively approach for starting a phone call.
What we recommend in situations like this is that you post a local notification where the default button activates your app; your app will then be able to present whatever UI it likes. The only problem in your specific case is that your UI will switch apps again (to the Phone app) which is not the most elegant solution.
Share and Enjoy
—
Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware
let myEmail = "eskimo" + "1" + "@apple.com"