I have just an application with 1 button and this the ViewController attached :
import UIKit
class ViewController: UIViewController {
override func viewDidLoad() {
super.viewDidLoad()
// Do any additional setup after loading the view.
}
@IBAction func test(_ sender: Any) {
UIApplication.shared.open(URL(string: "https://www.google.fr")!, options: [:], completionHandler: nil)
}
}
When i click on the button, Safari open Google, i can come back to my app, but i have a warning message in the Xcode console :
2020-02-06 11:07:24.851814+0100 TabApp[6275:418659] Can't end BackgroundTask: no background task exists with identifier 1 (0x1), or it may have already been ended. Break in UIApplicationEndBackgroundTaskError() to debug.
Anyone know how to avoid this warning ?
Best regards