Get safari version in app extension

Hello,


Is there a way to get the safari browser version in the app extension side?


Thank you

Replies

You could have your injected script read the user agent string and pass it back to your app extension in the standard way.

What are you trying to accomplish?


You can:

- Send the userAgent as easyfundraising_developer suggested.

- Use https://developer.apple.com/documentation/objectivec/1418956-nsobject/1418583-respondstoselector?language=objc to determine if the extension user is running a version of Safari that supports the API you are trying to use.

- If you are running Swift code, you can check the https://developer.apple.com/documentation/safariservices/sfsafariservicesversion?changes=_5&language=objc