I’ve been battling with this issue too, but I haven’t quite figured it out. The background music doesn’t play in the iOS / Xcode WKWebView.
@jonathan posted a reply about this issue here…
…and I’ve seen a few posts about this on Stack Overflow
- https://stackoverflow.com/questions/32701983/why-is-my-audio-stream-in-wkwebview-on-ios-9-not-playing
- https://stackoverflow.com/questions/32780038/wkwebview-fails-to-play-local-audio
Apple’s documentationis here…
I’m tired, so I won’t solve this problem tonight, but I’m planning to work on fixing this issue tomorrow. (I’m trying to launch Circles with Grandma on iOS.) There are a still few tweaks to the WKWebView to make the HTML content feel more app-like…like disabling pinch-zoom, hiding the status bar and actually getting audio to play.