我目前正在创建一个具有 stagewebview 来显示网站内容的应用程序。当我在普通的 android 浏览器中加载此页面时,我得到了允许用户登录的身份验证弹出窗口,如下所示:
当我在 flash cc pro 中测试电影时,这就是我得到的:
但是当我将 APK 放到设备上并播放它时,没有登录对话框,它只是直接进入未经授权的页面,而没有让我选择登录。
任何人都可以帮我解决这个问题,我非常坚持修复。
谢谢
我目前正在创建一个具有 stagewebview 来显示网站内容的应用程序。当我在普通的 android 浏览器中加载此页面时,我得到了允许用户登录的身份验证弹出窗口,如下所示:
当我在 flash cc pro 中测试电影时,这就是我得到的:
但是当我将 APK 放到设备上并播放它时,没有登录对话框,它只是直接进入未经授权的页面,而没有让我选择登录。
任何人都可以帮我解决这个问题,我非常坚持修复。
谢谢
以下博文中提到了 stagewebview 差异 https://helpx.adobe.com/air/kb/stagewebview-differences-platforms-air-sdk.html
它清楚地说
**HTTP authentication dialog is not implemented on mobile (iOS/Android)**
Currently no default UI is implemented on mobile for HTTP authentication. On
desktop HTTP authentication uses the default OS dialog for authentication.
Event though the authentication dialog is disabled, the developer can create
their own UI and use the URLRequest API to do basic or digest authentication.