I'm building an Safari app extension with a main view with a button to enable the extension in safari preferences.
The button uses this code:
SFSafariApplication.showPreferencesForExtension(withIdentifier: "com.bry.*****.*****1") { (error) in
if error != nil {
print("Error launching the extension's preferences: %@", error);
return;
}
}
"com.bry.*****" is the bundle ID and "com.bry.*****.*****1" is the extension bundle ID
The thing is, this code works in my Mac OSX wich version is = 10.13.1 I just send it to another friend with the same OS and it works as well.
BUT, I send it to another 2 friends that uses 10.12.6 (Sierra) and doesn't work.
The code print this error: Optional(Error Domain=SFErrorDomain Code=1 "(null)")
I think it means that the extension id doesn't exist, but in another topic someone says that this is related to the extension owner or something.
I can't figure out why it does work in 10.13 and not in 12.6, safariServices are supported by 12+ OS.
Any hints?