How to bring application to foreground in ios?

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.

Leave a Comment