I use Plyr in my app for iOS and on iOS 12 Beta, I noticed that Youtube is no longer loading in webview, that the screen just stays black. Through the browser it works with no issues. So this has to be a Webview issue with Plyr. I'm using the latest 3.3.10 of Plyr.
Just wondering if this is something that has to be fixed by Plyr or something Apple has changed or has to fix?
UPDATE: Also happening in iOS 11.4. Worked with no issues in iOS 11.3
If you find out more, please comment and or/ submit a pull request so others with the same issue can get help. Since we don't officially support WebView, or have the time or resources to support and tests every framework and environment we really appreciate community efforts for debugging and fixing these issues.
It's the vi ads code. I removed the code from script part and it fixed the issue instantly. So something Apple did in iOS 11.4 and iOS 12 is causing the vi ads code to crash Plyr from loading in WebView.
It's using the Google IMA SDK so it could be something with that upstream. Perhaps @ferdiemmen can take a look as he originally wrote the plugin.
@sparkktv
Can you share what minimum part of the vi ads code was necessary to remove?
Most helpful comment
It's the vi ads code. I removed the code from script part and it fixed the issue instantly. So something Apple did in iOS 11.4 and iOS 12 is causing the vi ads code to crash Plyr from loading in WebView.