Make embeds work on iOS web based apps (like ionic)
While it works on Android, it is still impossible to use iframe embeds on web-based mobile iOS apps. The reason being that iOS' WKWebView expects <schema>://<host>
in the CORS headers returned by Twitch. Twitch uses the parent
parameter to generate those headers. Unfortunately, iOS prevents the use of http://
, https://
and file://
as schemas and forces us to use a custom schema like ionic://localhost
(or anything else) for accessing local files.
The request is to add the ability for twitch embeds to return a CORS header that can match a custom scheme like ionic://localhost
.
I read through all forum topics on that subject but none provides a working solution. Please see the following discussions for an in-depth explanation why the current state of twitch embed cannot work and a suggestion for a solution:
-
davidandersonhad commented
More practice!
-
xb1itz commented
This also applies for other non https:// environments. In out case we are blocked on Chrome extension that has different schema.
You can check out our use case in discussion over here: https://discuss.dev.twitch.tv/t/embedded-player-in-chrome-extensions/40542 -
spanky2502 commented
Would very much appreciate if this could be implemented so that the apps for both platforms get the same feature set