Search code examples
swiftpopupibeaconbackground-mode

How can I open pop up ViewController in background mode - iOS


the app in background mode. when detect Ibeacon(https://developer.apple.com/ibeacon/) in background mode open popup.

I can display local-notification to the user when detect Ibeacon detect.

Is Apple allows to open popup in background-mode Swift?

lang - Swift


Solution

  • It is not possible as you need a ViewController or a NavigationController to show the AlertController from.

    Also, it is not possible to show a ViewController from a background mode.

    By now, your only option is to show LocalNotification or PushNotification and trigger the APP when the users clicks on it.

    Check also this other ANSWER