application continue userActivity method not called after Handling Custom Intent

I made new project with Siri custom intent on Xcode 11 beta 7 and add this code in AppDelegate.swift.


  1. application(_ application: UIApplication, continue userActivity: NSUserActivity, restorationHandler: @escaping ([UIUserActivityRestoring]?) -> Void) -> Bool {
  2. }

Run app on device / simulator and go back to home screen, however application continue userActivity are not called and I got this message on debugger.

(I didn't implement codes related background task.)



Can't end BackgroundTask: no background task exists with identifier 1 (0x1), or it may have already been ended. Break in UIApplicationEndBackgroundTaskError() to debug.


Has anyone else experienced this problem?

Any update about this issue?

application continue userActivity method not called after Handling Custom Intent
 
 
Q