这个新的sdk(3.0)由Facebook快速而且非常时尚,但在我的三星Note和Duos不断与应用程序的网络连接错误.它只发生在一些在其他设备上运行良好的设备中.但在我的应用程序上,我现在不断与应用程序发生网络连接错误.
我跳转到其他应用程序,看看我的WiFi或运营商是否有问题,但其他任何地方都没有问题.
Facebook中的问题似乎持续发生,至少在100次中无法进行一次对话.
几乎每次我这样做,都会出现网络问题.我重新启动了手机,但问题又回到了我的身边.
有没有人遇到过这个?想法?
这是我正在使用的代码
Bundle params = new Bundle();
params.putString("to", friendId);
params.putString("title", titleStr);
params.putString("message", message);
params.putString("notification_text", notificationText);
params.putString("data", dataStr);
params.putString("frictionless", "1");
String method = "apprequests";
dialog = new WebDialog.Builder(this, session, method, parameters)
.setOnCompleteListener(this)
.build();
Window dialog_window = dialog.getWindow();
dialog_window.setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);
dialog.show();
Run Code Online (Sandbox Code Playgroud)
错误信息 :
reportError errorCode(-1) desc(There was a network error.)
error getMessage发生网络错误.
找到了我的问题的解决方案,实际上当用户没有更多的时候就会发生这种情况。的朋友。如果用户的好友较少,dialog则能够正确加载而不会出现任何错误。如果 url 的大小超过(当有更多用户时会发生),则 url 形成无法正确完成。所以这个错误发生了。现在我限制了网址中的用户数量,它工作正常..
| 归档时间: |
|
| 查看次数: |
332 次 |
| 最近记录: |