title: permission popup on captive portal
body: <p>I'm creating this landing page that's supposed to be triggered by a captive portal.
  on my landing page, there's a button to trigger open a <code>&lt;video&gt;</code> element which is then used to scan the QR code.
  By default, upon accessing the webcam or device's camera the browser would ask the user's permission first. So basically everything is working fine and all on the browser.</p>
  <p>Upon lodging it as a landing page triggered by the captive portal, some inconsistencies arose.
  On most Android phones my colleagues have, they simply deny the permission by default.
  On some android devices, the popup message asking for permission is shown, and working as expected just like the browser version.
  On IOS devices, the popup simply gets blocked (not denied, but ignored)
  I know it is ignored on IOS because the error message is not even showing, as if no action is given to the popup by the captive portal.</p>
  <p>I've read several forums on captive portals, all led me to believe that captive portals by nature are simply a lighter version of a built-in browser that simply doesn't have the capacity to run <code>window.alert()</code> and <code>window.confirm()</code> nor the ability to keep cookies.
  My &quot;research&quot; also led me to believe that captive portals have different sets of behavior unique to the OS, not the browser installed on that OS per se.</p>
  <p>1 <a href="https://alexmeub.com/apple-captive-network-assistant-macos/" rel="nofollow noreferrer">blog</a> I read today, specifically the comment section, mentioned that from IOS 11.2 on, captive portals should already be able to run <code>window.alert()</code> and <code>window.confirm()</code>. However, upon testing it, this simply isn't the case.</p>
  <p>So my question is, is there any way to work around this limitation, by still allowing users to decide whether to allow or deny camera access?</p>
  <p>My &quot;research&quot; shows that it is impossible to redirect a captive portal to open on a browser programmatically and only a handful of phones have a captive portal that comes with the &quot;open in browser&quot; option.</p>
  <p>Does anyone know any way to, say, intercept the permission popup in action and display it as just a normal HTML element then pass back the user response programmatically?</p>
  <p>Thanks in advance! :)</p>