怎么把IosApp从后台转到前台

How to come Ios App to foreground from background

我正在为 Ios 应用开发 swift。我想 phone 用户连接特定的 wifi。所以我通过 NSURL 打开 iphone wifi 设置,如 this. After then my app go to background and i control ssid every 500ms in background by background task like this. When phone connect the specific wifi i can see this status and i stop background task. But i cant comes my app to foreground. I tried open my app use NSURL metod like this video(我添加自定义 url 我的 info.plist 并在我的 appdelagate 中添加应用程序功能)但我的应用程序没有 return 使用这个方法。

不幸的是,无法将应用程序从后台转到前台。但是,您可以发送通知或徽章,让用户点击并打开应用程序。用户应该启用通知才能正常工作。

编码愉快!