How to bring application to foreground in ios?

Shrinivas Kulkarni picture Shrinivas Kulkarni · Apr 8, 2014 · Viewed 10.7k times · Source

I am detecting for iBeacon in background. When my device comes in a particular region application should comes to foreground.

Answer

Khawar Ali picture Khawar Ali · Apr 8, 2014

It cannot be done without user interaction. The only option is you can generate a push notification to tell the user to bring the application to foreground.

This is from the Apple documentation about this issue:

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.