【问题标题】:Titanium Webview iOS not display Yahoo confirm SMS SecurityTitanium Webview iOS 不显示 Yahoo 确认 SMS 安全
【发布时间】:2014-03-13 08:25:29
【问题描述】:

我尝试使用 Yahoo SDK 开发应用程序。当 App 显示带有 url 的 webview 时:

https://api.login.yahoo.com/oauth/v2/request_auth?oauth_token=....

然后我输入我的用户名和帐户进行登录。然后 webview 显示 Confirm SMS 安全视图。但 webview 不显示“验证”按钮,如下图所示:

我为我的 webview 设置了以下属性

var YahooWebView = Ti.UI.createWebView({
left : 0,
    top : 0,
    right : 0,
    bottom : 0,
    width : 320,
    height : 568,
    scalesPageToFit : true,
    url : "http://example.com"
});

我该如何解决这个问题? 谢谢。

【问题讨论】:

    标签: ios webview titanium titanium-mobile


    【解决方案1】:

    我得到了解决方案,我使用 yahoo 移动登录 URL 进行登录,并在“done”参数中设置了 yahoo api URL。它重定向到 yahoo api 以进行应用授权。

    var authPageURL = "https://api.login.yahoo.com/oauth/v2/request_auth?oauth_token=" + oauthToken;
    var yahooMobileLoginUrl = "https://login.yahoo.com/m?&.src=oauth&.lang=en-us&.intl=us&.done=" + authPageURL;
    YahooWebView.setUrl(yahooMobileLoginUrl);
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-09-06
      相关资源
      最近更新 更多