---
title: "application(_:didFailToContinueUserActivityWithType:error:)"
framework: uikit
role: symbol
role_heading: Instance Method
path: "uikit/uiapplicationdelegate/application(_:didfailtocontinueuseractivitywithtype:error:)"
---

# application(_:didFailToContinueUserActivityWithType:error:)

Tells the delegate that the activity couldn’t be continued.

## Declaration

```swift
optional func application(_ application: UIApplication, didFailToContinueUserActivityWithType userActivityType: String, error: any Error)
```

## Parameters

- `application`: Your shared app object.
- `userActivityType`: The activity type that was attempted.
- `error`: An error object indicating the reason for the failure.

## Discussion

Discussion Use this method to let the user know that the specified activity could not be continued. If you do not implement this method, UIKit displays an error to the user with an appropriate message about the reason for the failure. This method is not called if either application(_:willFinishLaunchingWithOptions:) or application(_:didFinishLaunchingWithOptions:) returns false.

## See Also

### Continuing user activity and handling quick actions

- [application(_:willContinueUserActivityWithType:)](uikit/uiapplicationdelegate/application(_:willcontinueuseractivitywithtype:).md)
- [application(_:continue:restorationHandler:)](uikit/uiapplicationdelegate/application(_:continue:restorationhandler:).md)
- [application(_:didUpdate:)](uikit/uiapplicationdelegate/application(_:didupdate:).md)
- [application(_:performActionFor:completionHandler:)](uikit/uiapplicationdelegate/application(_:performactionfor:completionhandler:).md)
