Host App content for a Safari App Extension?

Our Safari App Extension (Host App + appex bundle) submission to the App Store was rejected because the Host App does not provide enough features.

As our app is mostly a Safari App Extension, the Host App does effectively nothing.


The guidelines about the Host App content are not clear for the case of Safari App Extensions.


Did I miss somehing publishing the package? Or I've been unlucky?


Thanks,

Emmanuel

Replies

A best practice that your host app can do is show your extension's icon. When the user clicks the icon, you can call the:


+[SFSafariApplication showPreferencesForExtensionWithIdentifier:completionHandler:]


extension API. That will take the user to your extension in Safari's Extensions preferences, and let them quickly turn on your extension to use in Safari.

On top of this, the Xcode 10.1 beta has a new project template that will take care of this for you.


When you create a new project, you will create a Safari App Extension app, and that will create an app with a place to put your app's icon and clicking it will take you to your extension in Safari's Extension Preferences.