A way to uninstall the old extension?

We have implemented a new Safari App Extension.


Most of our users though would still have, at the moment of upgrade, installed our old .safariextz extension. Is there a way to unistall it automatically?


Of course, we can (and do) tell our users: “Oh, one more thing: when you are activating our new extension, check please the Preferences tab, and if you see the old one there, uninstall it, please.” It would be infinitely better if this can be done automagically though.


Can we?


Thanks,

OC

Accepted Reply

There is an entry you can add to your app extension's Info.plist (In the NSExtension section):


<key>SFSafariExtensionBundleIdentifiersToUninstall</key>

<array>

<string>legacyExtensionBundleIdentifier1</string>

<string>legacyExtensionBundleIdentifier2</string>

</array>


Each of these legacy extensions will need to be signed with the same team identifier as your Safari App Extension.

Replies

There is an entry you can add to your app extension's Info.plist (In the NSExtension section):


<key>SFSafariExtensionBundleIdentifiersToUninstall</key>

<array>

<string>legacyExtensionBundleIdentifier1</string>

<string>legacyExtensionBundleIdentifier2</string>

</array>


Each of these legacy extensions will need to be signed with the same team identifier as your Safari App Extension.

Thanks! I have completely overlooked this thing in the documentation; my bad.