On macOS we have SFSafariExtensionManager and
class func getStateOfSafariExtension(withIdentifier: String, completionHandler: (SFSafariExtensionState?, Error?) -> Void)
Which allows us to inform the user in the container app if the extension is currently enabled.
This API is not available in iOS. Is there a technical reason or policy behind this or is it just a missing feature in which case I will raise a feature request?
Post
Replies
Boosts
Views
Activity
We currently have an app running in TestFlight distributed via a public link. We have sent this link to around 50 people and of that cohort 30 people have successfully installed and are using our app.
10 users have gotten in touch complaining that when they follow the link on their device the TestFlight app crashes on launch (not our app but TestFlight itself).
Any ideas what could be causing this?
Trying to implement a custom date encoding strategy using the following leads to a compile time error (smallest possible example to create error, not my prod code here)
let encoder = JSONEncoder()
encoder.dateEncodingStrategy = .custom({ date, encoder in
encoder.singleValueContainer().encode(date.timeIntervalSince1970)
})
This produces the following error (which makes sense as it is not an inout variable)
Cannot use mutating member on immutable value: function call returns immutable value
Am I using the API incorrectly? If so what is the correct way to encode the data?