Robert Jamison is in search of a solution from a good supply:
To obtain this bounty, I am in search of both an in depth reply on why the characteristic is not working in order that different builders can resolve it, or I am in search of a method to resolve the error or subsequent errors associated to rendering the WebView.
I am utilizing Kotlin Multiplatform to generate a WebView in my iosMain implementation:
@Composable
precise enjoyable LoadUrl(url: String) {
val webView = bear in mind { WKWebView() }
UIKitView(
manufacturing unit = {
webView.apply {
WKWebViewConfiguration().apply {
allowsInlineMediaPlayback = true
allowsAirPlayForMediaPlayback = true
allowsPictureInPictureMediaPlayback = true
}
loadRequest(NSURLRequest(NSURL(string = url)))
}
webView
},
modifier = Modifier
)
}
Sadly, it fails to load. My understanding is that no further entitlements are required, however the error says in any other case:
2024-10-04 23:29:07.074826-0400 iosApp[7557:140326] [assertion] Error buying assertion: <Error Area=RBSServiceErrorDomain Code=1 “((goal is just not working or does not have entitlement com.apple.developer.web-browser-engine.rendering AND goal is just not working or does not have entitlement com.apple.developer.web-browser-engine.networking AND goal is just not working or does not have entitlement com.apple.developer.web-browser-engine.webcontent))” UserInfo={NSLocalizedFailureReason=((goal is just not working or does not have entitlement com.apple.developer.web-browser-engine.rendering AND goal is just not working or does not have entitlement com.apple.developer.web-browser-engine.networking AND goal is just not working or does not have entitlement com.apple.developer.web-browser-engine.webcontent))}>
I’ve tried including the entitlements to my iosApp.entitlements file, however that does not appear to unravel the issue. All of the analysis on-line tells me that I should not even have so as to add entitlements to run this.