Air for android StageWebView问题

时间:2015-06-06 14:27:09

标签: android actionscript-3 air apk stagewebview

我目前正在创建一个具有stagewebview的应用程序来显示网站的内容。当我在普通的android浏览器中加载此页面时,我获得了身份验证弹出窗口,允许用户登录,如下所示:

This is on the browser

当我在flash cc pro中测试电影时,这就是我得到的:

enter image description here

但是当我把APK放到设备上并播放时,没有任何登录对话框,它只是直接进入未授权的页面而没有给我选择登录。

任何人都可以帮我解决这个问题,我很不情愿地解决这个问题。

谢谢

1 个答案:

答案 0 :(得分:1)

以下博文中提到了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.