Have the same issue, and have resolved.
Here is my workaround:
I am using objc to develop native app, without any third-party framework(react/flutter).
I have tried these two config:
myWkWebView.configuration.allowsInlineMediaPlayback = NO;
myWkWebView.configuration.mediaTypesRequiringUserActionForPlayback = WKAudiovisualMediaTypeAll;
but it is not work.
Then, I figure out what the problem is. You need to set the configuration before initialize the WkWebview instance:
WKWebViewConfiguration *config = [[WKWebViewConfiguration alloc] init];
config.allowsInlineMediaPlayback = YES;
config.mediaTypesRequiringUserActionForPlayback = WKAudiovisualMediaTypeAll;
id myWkWebView = [[WKWebView alloc] initWithFrame:CGRectMake(someX, someY, someWidth, someHeight) configuration:config];