Android facebook sdk appinvites AppInviteDialog白屏
Android facebook sdk appinvites AppInviteDialog white screen
嗨,我遇到了这个问题,当我尝试从我的 android 应用程序发送 facebook appinvites 时,它永远挂在这个白色对话框中:. 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。这很奇怪,因为一开始我没有遇到这个问题,它打开得很好,可以看到 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()) {
/* handle the result */
AppInviteContent content = new AppInviteContent.Builder()
.setApplinkUrl("facebook generated link to myapp")
.build();
AppInviteDialog.show(this, content);
}
}`
- 当我调用 AppInviteDialog.show(this, content) 时 logcat:
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
(持续到 :)
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
然后就一直这样下去。
- 我的 Facebook 应用程序设置当前可用并且可供 public。
如果我能提供任何其他信息,请告诉我,谢谢。
我刚刚检查了一个错误报告,显然它是一个 facebook 错误,他们已经在处理它。这是报告 link:https://developers.facebook.com/bugs/721787828000962/
嗨,我遇到了这个问题,当我尝试从我的 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()) { /* handle the result */ AppInviteContent content = new AppInviteContent.Builder() .setApplinkUrl("facebook generated link to myapp") .build(); AppInviteDialog.show(this, content); }
}`
- 当我调用 AppInviteDialog.show(this, content) 时 logcat:
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
(持续到 :)
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
然后就一直这样下去。
- 我的 Facebook 应用程序设置当前可用并且可供 public。
如果我能提供任何其他信息,请告诉我,谢谢。
我刚刚检查了一个错误报告,显然它是一个 facebook 错误,他们已经在处理它。这是报告 link:https://developers.facebook.com/bugs/721787828000962/