Android facebook sdk appinvites AppInviteDialog白屏 [英] Android facebook sdk appinvites AppInviteDialog white screen

查看:4738
本文介绍了Android facebook sdk appinvites AppInviteDialog白屏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好我有这个问题,当我尝试从我的Android应用程序发送facebook appinvites它只是挂在这个白色对话永远:。我已经在仿真器和真实的设备上尝试过,它只是继续做同样的事情。我遵循了本指南:
https://developers.facebook.com/docs/app -invites / android 。因为在开始的时候我没有这个问题,打开正常,可以看到Facebook的朋友发送邀请,但是突然之间它刚刚停止工作。我一直在寻找解决方案,找不到任何东西。
某些信息:




  • 我使用facebook-android-sdk:4.20.0

  • 我打电话给sdk:
    `@Override
    public void onCreate(Bundle savedInstanceState){

      super.onCreate(savedInstanceState); 
    setContentView(R.layout.activity_fbfriends);
    FacebookSdk.sdkInitialize(this);
    callbackManager = CallbackManager.Factory.create();

    if(AppInviteDialog.canShow()){
    / *处理结果* /
    AppInviteContent content = new AppInviteContent.Builder()
    .setApplinkUrl(facebook生成到myapp的链接)
    .build();
    AppInviteDialog.show(this,content);
    }

    }


  • 当我调用AppInviteDialog.show(this,content)时,logcat:




我/ cr_LibraryLoader:时间加载本地库:6 ms(时间戳8392-8398)

I / cr_LibraryLoader:预期的本地库版本号52.0.2743.100,实际本机库版本号52.0.2743.100

I / cr_LibraryLoader:预期的本机库版本号52.0.2743.100,实际本机库版本号52.0.2743.100

I / chromium:[INFO:library_loader_hooks.cc(143)] Chromium logging启用:level = 0,默认verbosity = 0

I / cr_BrowserStartup:初始化chrome进程,singleProcess = true

W / cr_media:需要BLUETOOTH权限

I / cr_DRP:由于异常,没有DRP键:java.lang.ClassNotFoundException:com.android.webview.chromium.Drp

W / cr_AwContents:onDetachedFromWindow已分离时调用。忽略

I / cr_Ime:ImeThread未启用。

I / Choreographer:跳过33帧!该应用程序可能在其主线程上做太多的工作。

E / libEGL:validate_display:99错误3008(EGL_BAD_DISPLAY)

I / VideoCapabilities:视频/ mp4v-es不支持的配置文件4

[03-11 08:03:08.849 2642:3328 D /] HostConnection :: get()新建主机连接建立0x6fff73f04ac0,tid 3328

D / FA:连接到远程服务

I / art :完全代码缓存收集,代码= 123KB,数据= 109KB

I / art:启动阻塞GC JitCodeCache

I / art:代码缓存收集后,代码= 113KB, data = 74KB

W / cr_BindingManager:无法调用determinVisibility() - 从未看到pid的连接:2642

W / art:尝试删除非JNI本地引用,转储线程

I / art :做部分代码缓存收集,代码= 121KB,数据= 88KB

I / art:代码缓存收集后,代码= 121KB,数据= 88KB

I / art:增加代码缓存容量为512KB

W / art:尝试删除非JNI本地引用,转储线程

W / art:尝试删除非JNI本地引用,转储线程>
W / art:尝试删除非JNI本地引用,转储线程

W / art:尝试删除非JNI本地引用,转储线程


(CONTINUES UNTIL:)


I / chromium:[INFO:CONSOLE(155)]未捕获错误:发生了精简异常使用非最小化的开发环境获取完整的错误消息和其他有用的警告。,来源: https://m.facebook.com/connect/dialog/MPlatformAppInvitesJSDialog?app_id=MYAPPID& method_args =%7B%22destination%22%3A%22facebook%22%2C%22app_link_url%22%3A%22https%3A%5C%2F%5C%2Ffb.me%5C%2Fmyapplink%22%7D&安培; bridge_args =%7B% 22action_id%22%3A%22b60bf3e2-7b08-4fa0-b2c3-a4839b40b440%22%7D& display = touch& android_key_hash = MYAPPKEYHASH (155)

W / art: JNI本地参考,倾销线

W / art:尝试删除非JNI本地引用,转储线程

W / art:尝试删除非JNI本地引用,转储线程

I / art:编译器分配6MB编译void android.view.ViewRootImpl.performTraversals()

W / art:尝试删除非JNI本地引用,转储线程

W / art:尝试删除非JNI本地引用,转储线程

W / art:尝试删除非JNI本地引用,转储线程

W / art:尝试删除非JNI本地引用,转储线程

W / art:暂停所有线程:16.507ms

I / art :背景部分并发标记扫描GC释放19(592B)AllocSpace对象,3(18MB)LOS对象,17%免费,19MB / 23MB,暂停8.410ms总计43.175ms

W / art:尝试删除非JNI本地引用,转储线程

W / art:尝试删除非JNI本地引用,转储线程

W / art:尝试删除非JNI本地引用,倾销线

我/艺术:背景部分并发标记扫描GC释放23(664B)AllocSpace对象,2(12MB)LOS对象,13%免费,25MB / 29MB,暂停7.096ms总计37.376ms

W / art:尝试删除非JNI本地引用,转储线程

W / art:尝试删除非JNI本地引用,转储线程

W / art :尝试删除非JNI本地引用,转储线程


然后它只是永远像这样永远。 >


  • 我的Facebook应用设置目前是现场直播,可供公众使用。



如有任何其他通知,请通知我我可以提供并感谢你。

解决方案

我刚刚检查了一个bug报告,显然是一个Facebook的bug,他们是已经在工作了这是报表链接: https://developers.facebook.com/bugs/721787828000962/


Hi im having this problem, when i try to send facebook appinvites from my android app it just hangs on this white dialog forever: . I've tried in emulators and real devices and it just keeps doing the same. I followed this guide:
https://developers.facebook.com/docs/app-invites/android . Its wierd because at start i wasn't having this problem, it was opening fine and could see facebook friends and send the invitations but suddenly it just stopped working. I've been searching for a solution and cant find anything. Some info:

  • Im using facebook-android-sdk:4.20.0
  • My call to the sdk: `@Override public void onCreate(Bundle savedInstanceState) {

    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_fbfriends);
    FacebookSdk.sdkInitialize(this);
    callbackManager = CallbackManager.Factory.create();
    
    if (AppInviteDialog.canShow()) {
        /* handle the result */
        AppInviteContent content = new AppInviteContent.Builder()
                .setApplinkUrl("facebook generated link to myapp")
                .build();
        AppInviteDialog.show(this, content);
    }
    

    }`

  • The logcat when i call AppInviteDialog.show(this, content):

I/cr_LibraryLoader: Time to load native libraries: 6 ms (timestamps 8392-8398)
I/cr_LibraryLoader: Expected native library version number "52.0.2743.100", actual native library version number "52.0.2743.100"
I/cr_LibraryLoader: Expected native library version number "52.0.2743.100", actual native library version number "52.0.2743.100"
I/chromium: [INFO:library_loader_hooks.cc(143)] Chromium logging enabled: level = 0, default verbosity = 0
I/cr_BrowserStartup: Initializing chromium process, singleProcess=true
W/cr_media: Requires BLUETOOTH permission
I/cr_DRP: No DRP key due to exception:java.lang.ClassNotFoundException: com.android.webview.chromium.Drp
W/cr_AwContents: onDetachedFromWindow called when already detached. Ignoring
I/cr_Ime: ImeThread is not enabled.
I/Choreographer: Skipped 33 frames! The application may be doing too much work on its main thread.
E/libEGL: validate_display:99 error 3008 (EGL_BAD_DISPLAY)
I/VideoCapabilities: Unsupported profile 4 for video/mp4v-es
[ 03-11 08:03:08.849 2642: 3328 D/ ] HostConnection::get() New Host Connection established 0x6fff73f04ac0, tid 3328
D/FA: Connected to remote service
I/art: Do full code cache collection, code=123KB, data=109KB
I/art: Starting a blocking GC JitCodeCache
I/art: After code cache collection, code=113KB, data=74KB
W/cr_BindingManager: Cannot call determinedVisibility() - never saw a connection for the pid: 2642
W/art: Attempt to remove non-JNI local reference, dumping thread
I/art: Do partial code cache collection, code=121KB, data=88KB
I/art: After code cache collection, code=121KB, data=88KB
I/art: Increasing code cache capacity to 512KB
W/art: Attempt to remove non-JNI local reference, dumping thread
W/art: Attempt to remove non-JNI local reference, dumping thread
W/art: Attempt to remove non-JNI local reference, dumping thread
W/art: Attempt to remove non-JNI local reference, dumping thread

( CONTINUES UNTIL :)

I/chromium: [INFO:CONSOLE(155)] "Uncaught Error: Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.", source: https://m.facebook.com/connect/dialog/MPlatformAppInvitesJSDialog?app_id=MYAPPID&method_args=%7B%22destination%22%3A%22facebook%22%2C%22app_link_url%22%3A%22https%3A%5C%2F%5C%2Ffb.me%5C%2Fmyapplink%22%7D&bridge_args=%7B%22action_id%22%3A%22b60bf3e2-7b08-4fa0-b2c3-a4839b40b440%22%7D&display=touch&android_key_hash=MYAPPKEYHASH (155)
W/art: Attempt to remove non-JNI local reference, dumping thread
W/art: Attempt to remove non-JNI local reference, dumping thread
W/art: Attempt to remove non-JNI local reference, dumping thread
I/art: Compiler allocated 6MB to compile void android.view.ViewRootImpl.performTraversals()
W/art: Attempt to remove non-JNI local reference, dumping thread
W/art: Attempt to remove non-JNI local reference, dumping thread
W/art: Attempt to remove non-JNI local reference, dumping thread
W/art: Attempt to remove non-JNI local reference, dumping thread
W/art: Suspending all threads took: 16.507ms
I/art: Background partial concurrent mark sweep GC freed 19(592B) AllocSpace objects, 3(18MB) LOS objects, 17% free, 19MB/23MB, paused 8.410ms total 43.175ms
W/art: Attempt to remove non-JNI local reference, dumping thread
W/art: Attempt to remove non-JNI local reference, dumping thread
W/art: Attempt to remove non-JNI local reference, dumping thread
I/art: Background partial concurrent mark sweep GC freed 23(664B) AllocSpace objects, 2(12MB) LOS objects, 13% free, 25MB/29MB, paused 7.096ms total 37.376ms
W/art: Attempt to remove non-JNI local reference, dumping thread
W/art: Attempt to remove non-JNI local reference, dumping thread
W/art: Attempt to remove non-JNI local reference, dumping thread

And then it just keepgoing like that forever.

  • My facebook app setup is currently live and available to the public.

Please let me know if there is any other information i can provide and thank you.

解决方案

I just checked a bug report i did and apparently its a facebook bug and they are already working on it. This is the report link: https://developers.facebook.com/bugs/721787828000962/

这篇关于Android facebook sdk appinvites AppInviteDialog白屏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆