Contents

BEWebAppManifest

An object that represents a web app manifest.

Declaration

class BEWebAppManifest

Overview

To add a web app or bookmark to someone’s Home Screen:

  1. Create a SFAddToHomeScreenActivityItem that represents the web app or bookmark.

  2. A web app indicates its manifest using a <link/> element with the attribute rel=manifest; the href attribute is a URL that locates the manifest JSON. If the website offers a web app manifest, initialize a BEWebAppManifest with the contents of the web app’s manifest.

  3. Create a UIActivityViewController with the SFAddToHomeScreenActivityItem you created in step 1 in its list of activity items.

  4. Present the UIActivityViewController.

  5. When someone selects the Add to Home Screen activity, the system calls the activity item’s getWebAppManifest(completionHandler:) method. Pass the web app manifest you created in step 2 to the completion handler in your implementation, or nil if the website doesn’t offer a web app manifest or you can’t fetch the manifest.

Topics

Creating a web app manifest

Getting manifest information

See Also

Web content