BEWebAppManifest
An object that represents a web app manifest.
Declaration
class BEWebAppManifestOverview
To add a web app or bookmark to someone’s Home Screen:
Create a SFAddToHomeScreenActivityItem that represents the web app or bookmark.
A web app indicates its manifest using a
<link/>element with the attributerel=manifest; thehrefattribute is a URL that locates the manifest JSON. If the website offers a web app manifest, initialize aBEWebAppManifestwith the contents of the web app’s manifest.Create a UIActivityViewController with the
SFAddToHomeScreenActivityItemyou created in step 1 in its list of activity items.Present the
UIActivityViewController.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
nilif the website doesn’t offer a web app manifest or you can’t fetch the manifest.