---
title: "requestAppInstallationFromBrowser(for:referrer:)"
framework: marketplacekit
role: symbol
role_heading: Instance Method
path: "marketplacekit/applibrary/requestappinstallationfrombrowser(for:referrer:)"
---

# requestAppInstallationFromBrowser(for:referrer:)

Forwards an app installation request from the developer’s webpage.

## Declaration

```swift
nonisolated final func requestAppInstallationFromBrowser(for url: URL, referrer: URL) async throws
```

## Parameters

- `url`: The unparsed marketplace-kit URL that triggers the installation request.
- `referrer`: The origin of the top frame that contains the alternative marketplace installation URL.

## Mentioned in

Enabling alternative distribution app installation in a browser

## Discussion

Discussion Web browsers that render with BrowserEngineKit rather than WebKit call this method to forward the installation of an app from the developer’s webpage. Your browser listens for MarketplaceKitURIScheme invocations to field such requests. For more information, see Enabling alternative distribution app installation in a browser.

## See Also

### Managing app installation

- [AppLibrary.App](marketplacekit/applibrary/app.md)
- [AppLibrary.InstallationRequest](marketplacekit/applibrary/installationrequest.md)
- [installingApps](marketplacekit/applibrary/installingapps.md)
- [isLoading](marketplacekit/applibrary/isloading.md)
- [requestAppInstallation(_:)](marketplacekit/applibrary/requestappinstallation(_:).md)
