Android的AIR的StageWebView问题问题、Android、AIR、StageWebView

2023-09-08 14:55:49 作者:睡你麻痹起來海

我目前正在创建一个应用程序,有一个的StageWebView显示一个网站的内容。当我在正常的Andr​​oid浏览器加载该页面时,我得到了认证弹出,它允许用户登录,如下所示:

I'm currently creating an app that has a stagewebview to display the contents of a website. When i load this page in the normal android browser i get the authentication popup which allows the user to login as shown below :

当我测试影片闪光灯毫升亲们,这是我所得到的:

When i test the movie in flash cc pro, this is what i get :

但是,当我把APK到设备并播放,没有在对话的迹象,它只是直行到未授权页面没有给我签的选项。

But when i put the APK on to the device and play it, there is no sign in dialog, it is just going straight to the not authorized page without giving me the option to sign in.

谁能帮我这个IM pretty的停留在一个固定。

Can anyone help me out with this im pretty stuck on a fix.

感谢

推荐答案

本的StageWebView差异都提到了以下博文 的https://helpx.adobe.com/air/kb/stagewebview-differences-platforms-air-sdk.html

The stagewebview differences are mentioned in the following blogpost 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.