易趣oauth小屏幕代币流,即智能手机

易趣oauth小屏幕代币流,即智能手机,oauth,token,registration,ebay-api,Oauth,Token,Registration,Ebay Api,我在智能手机上使用eBay代币认证已经挣扎了几天。我能够在桌面系统、平板电脑和智能手机上注册客户代币。在android应用程序上有一个意图侦听器,用于获取回复并在应用程序中注册令牌 但在某些设备上,易趣的注册流程中会出现以下消息: 这不能在小屏幕上完成。请使用桌面计算机重试 易趣客户支持告诉我,不可能在应用程序上使用注册。但我不明白这一点,因为令牌注册流的注册窗口即使在小型设备上也是匹配的 有办法解决这个问题吗?最终要为web视图模拟更高分辨率/元信息,以便邮件不会从eBay服务器生成 非常感谢

我在智能手机上使用eBay代币认证已经挣扎了几天。我能够在桌面系统、平板电脑和智能手机上注册客户代币。在android应用程序上有一个意图侦听器,用于获取回复并在应用程序中注册令牌

但在某些设备上,易趣的注册流程中会出现以下消息:

这不能在小屏幕上完成。请使用桌面计算机重试

易趣客户支持告诉我,不可能在应用程序上使用注册。但我不明白这一点,因为令牌注册流的注册窗口即使在小型设备上也是匹配的

有办法解决这个问题吗?最终要为web视图模拟更高分辨率/元信息,以便邮件不会从eBay服务器生成


非常感谢您的建议。

尝试使用javascript设置浏览器大小

<html>
 <head>
<script>
  window.alert("Window resolution before overwrite is " + window.screen.availWidth + " x " + window.screen.availHeight);
  Object.defineProperty(window.screen, "availWidth", { get: function(){return 0; }});
  Object.defineProperty(window.screen, "availHeight", { get: function(){return 0; }});
</script>
</head>
<body>
<script>
  window.alert("Window resolution after overwrite is " + window.screen.availWidth + " x " + window.screen.availHeight);
</script>
</body>
</html>

window.alert(“覆盖前的窗口分辨率为”+window.screen.availWidth+“x”+window.screen.availHeight);
Object.defineProperty(window.screen,“availWidth”,{get:function(){return 0;}}});
Object.defineProperty(window.screen,“可用高度”{get:function(){return 0;}}});
window.alert(“覆盖后的窗口分辨率为”+window.screen.availWidth+“x”+window.screen.availHeight);

尝试使用javascript设置浏览器大小

<html>
 <head>
<script>
  window.alert("Window resolution before overwrite is " + window.screen.availWidth + " x " + window.screen.availHeight);
  Object.defineProperty(window.screen, "availWidth", { get: function(){return 0; }});
  Object.defineProperty(window.screen, "availHeight", { get: function(){return 0; }});
</script>
</head>
<body>
<script>
  window.alert("Window resolution after overwrite is " + window.screen.availWidth + " x " + window.screen.availHeight);
</script>
</body>
</html>

window.alert(“覆盖前的窗口分辨率为”+window.screen.availWidth+“x”+window.screen.availHeight);
Object.defineProperty(window.screen,“availWidth”,{get:function(){return 0;}}});
Object.defineProperty(window.screen,“可用高度”{get:function(){return 0;}}});
window.alert(“覆盖后的窗口分辨率为”+window.screen.availWidth+“x”+window.screen.availHeight);

我不得不缩小浏览器窗口

还需要如下设置Webview的UserAgent:

String agent = "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.5) Gecko/20100101 Firefox/4.1";
mWebView.getSettings().setUserAgentString(agent);

我不得不缩小浏览器窗口

还需要如下设置Webview的UserAgent:

String agent = "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.5) Gecko/20100101 Firefox/4.1";
mWebView.getSettings().setUserAgentString(agent);