I have an Android app that has a working embedded Twitch Stream. The problem I have is that the button, “Watch in Twitch”, does nothing when tapped. The only lead is from a WebChromeClient console message, which says
Unsafe attempt to initiate navigation for frame with URL ‘https://player.twitch.tv/’ from frame with URL ‘Twitch’. The frame attempting navigation of the top-level window is sandboxed, but the flag of ‘allow-top-navigation’ or ‘allow-top-navigation-by-user-activation’ is not set.
Not sure it’s hyper relevant, but I load the page into the WebView like this:
videoPlayerWebview.loadDataWithBaseURL(“https://player.twitch.tv”, html, “text/html”, “utf-8”, null)
I’ve been staring at this issue for a while and looked for answeres to no avail. I figure I must have gotten some really weird configuration problem somewhere, but don’t know where to look.
Has anyone heard of something like this or have any ideas?