<!--
{
  "availability" : [
    "iOS: 2.0.0 - 9.0.0",
    "iPadOS: 2.0.0 - 9.0.0",
    "macCatalyst: 13.1.0 - 13.1.0"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIApplicationDelegate/application(_:handleOpen:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(pl)UIApplicationDelegate(im)application:handleOpenURL:"
  },
  "title" : "application(_:handleOpen:)"
}
-->

# application(_:handleOpen:)

Asks the delegate to open a resource identified by URL.

```
optional func application(_ application: UIApplication, handleOpen url: URL) -> Bool
```

## Parameters

`application`

Your singleton app object.

`url`

An object representing a URL (Universal Resource Locator). See the appendix of [App Programming Guide for iOS](https://developer.apple.com/library/archive/documentation/iPhone/Conceptual/iPhoneOSProgrammingGuide/Introduction/Introduction.html#//apple_ref/doc/uid/TP40007072) for Apple-registered schemes for URLs.

## Return Value

<doc://com.apple.documentation/documentation/Swift/true> if the delegate successfully handled the request; <doc://com.apple.documentation/documentation/Swift/false> if the attempt to handle the URL failed.

## Discussion

If the delegate also implements the [`application(_:open:sourceApplication:annotation:)`](/documentation/UIKit/UIApplicationDelegate/application(_:open:sourceApplication:annotation:)) method, that method is called instead of this one.

This method is not called if the delegate returns <doc://com.apple.documentation/documentation/Swift/false> from both the [`application(_:willFinishLaunchingWithOptions:)`](/documentation/UIKit/UIApplicationDelegate/application(_:willFinishLaunchingWithOptions:)) and [`application(_:didFinishLaunchingWithOptions:)`](/documentation/UIKit/UIApplicationDelegate/application(_:didFinishLaunchingWithOptions:)) methods. (If only one of the two methods is implemented, its return value determines whether this method is called.) If your app implements the [`applicationDidFinishLaunching(_:)`](/documentation/UIKit/UIApplicationDelegate/applicationDidFinishLaunching(_:)) method instead of [`application(_:didFinishLaunchingWithOptions:)`](/documentation/UIKit/UIApplicationDelegate/application(_:didFinishLaunchingWithOptions:)), this method is called to open the specified URL after the app has been initialized.

If a URL arrives while your app is suspended or running in the background, the system moves your app to the foreground prior to calling this method.

There is no equivalent notification for this delegation method.

## See Also

[`-  application:didFinishLaunchingWithOptions:`](/documentation/UIKit/UIApplicationDelegate/application(_:didFinishLaunchingWithOptions:))

Tells the delegate that the launch process is almost done and the app is almost ready to run.

[`-  application:willFinishLaunchingWithOptions:`](/documentation/UIKit/UIApplicationDelegate/application(_:willFinishLaunchingWithOptions:))

Tells the delegate that the launch process has begun.

[`-  openURL:`](/documentation/UIKit/UIApplication/openURL(_:))

Attempts to open the resource at the specified URL.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)