Hi,
We think that the answer to this is "no", at least for IOS. but we wanted to ask the wisdom of the group.
One of the customers has asked if we could could make our app come to the front when they start driving from home. Our app provides personalised traffic updates. We can work out when they start driving but we can't see anyway to get the app out of background into the foreground, such as when the phone rings.
We have searched Google and seen this
which appears to only be for Android and was last updated two years ago.
This website alludes to the problem but doesn't really solve it, at least for IOS.
We could create a local notification to remind the user and get the user to click on it to bring the app into the foreground, thats a bit clunky but is doable.
This stackoverflow question and answer seems to get the crux of the issue
with the answer
"When the operating system delivers push notification (iOS or OS X) and the target application is not running in the foreground, it presents the notification (alert, icon badge number, sound). If there is a notification alert and the user taps or clicks the action button (or moves the action slider), the application launches and calls a method to pass in the local-notification object or remote-notification payload. If the application is running in the foreground when the notification is delivered, the application delegate receives a local or push notification."
So is there something we've missed or some clever trick, or is it pretty much impossible?
Thanks
Rob