按照移动应用微信登录开发指南集成后,没有回调通知给到宿主app。
发布于 4 年前 作者 gma 8236 次浏览 来自 官方Issues

根据上图操作文档,集成sdk后,能成功跳转到授权页面,如下

问题点为:点击同意、拒绝、或返回退到拉起的app,没有收到对应的操作通知。

2 回复

你好,麻烦在手机微信那里上传下日志: 我->设置->帮助与反馈右上角有个上报日志的入口,麻烦提供一下微信号,时间点

以下就是上述问题在模拟器上运行的日志,点击如下图片中同意或拒绝后,没有回调通知:

关健日志提示:

I/MicroMsg.SDK.WXApiImplV10: handleIntent fail, intent not from weixin msg


2021-07-15 10:48:17.073 2166-2226/? W/AudioTrack: dead IAudioTrack, PCM, creating a new one from start()
2021-07-15 10:48:17.075 2166-2226/? W/AudioTrack: AUDIO_OUTPUT_FLAG_FAST denied by client; transfer 4, track 44100 Hz, output 48000 Hz
2021-07-15 10:48:17.146 2628-2639/? E/System: Uncaught exception thrown by finalizer
2021-07-15 10:48:17.147 2628-2639/? E/System: java.lang.NullPointerException: Attempt to invoke virtual method 'void java.io.RandomAccessFile.close()' on a null object reference
        at com.tencent.mm.vfs.RefCountedFileSystem$d.close(SourceFile:669)
        at com.tencent.mm.vfs.RefCountedFileSystem$d.finalize(SourceFile:700)
        at java.lang.Daemons$FinalizerDaemon.doFinalize(Daemons.java:222)
        at java.lang.Daemons$FinalizerDaemon.run(Daemons.java:209)
        at java.lang.Thread.run(Thread.java:761)
2021-07-15 10:48:17.147 2628-2639/? E/System: Uncaught exception thrown by finalizer
2021-07-15 10:48:17.147 2628-2639/? E/System: java.lang.NullPointerException: Attempt to invoke virtual method 'void java.io.RandomAccessFile.close()' on a null object reference
        at com.tencent.mm.vfs.RefCountedFileSystem$d.close(SourceFile:669)
        at com.tencent.mm.vfs.RefCountedFileSystem$d.finalize(SourceFile:700)
        at java.lang.Daemons$FinalizerDaemon.doFinalize(Daemons.java:222)
        at java.lang.Daemons$FinalizerDaemon.run(Daemons.java:209)
        at java.lang.Thread.run(Thread.java:761)
2021-07-15 10:48:17.147 2628-2639/? E/System: Uncaught exception thrown by finalizer
2021-07-15 10:48:17.147 2628-2639/? E/System: java.lang.NullPointerException: Attempt to invoke virtual method 'void java.io.RandomAccessFile.close()' on a null object reference
        at com.tencent.mm.vfs.RefCountedFileSystem$d.close(SourceFile:669)
        at com.tencent.mm.vfs.RefCountedFileSystem$d.finalize(SourceFile:700)
        at java.lang.Daemons$FinalizerDaemon.doFinalize(Daemons.java:222)
        at java.lang.Daemons$FinalizerDaemon.run(Daemons.java:209)
        at java.lang.Thread.run(Thread.java:761)
2021-07-15 10:48:17.147 2628-2639/? E/System: Uncaught exception thrown by finalizer
2021-07-15 10:48:17.147 2628-2639/? E/System: java.lang.NullPointerException: Attempt to invoke virtual method 'void java.io.RandomAccessFile.close()' on a null object reference
        at com.tencent.mm.vfs.RefCountedFileSystem$d.close(SourceFile:669)
        at com.tencent.mm.vfs.RefCountedFileSystem$d.finalize(SourceFile:700)
        at java.lang.Daemons$FinalizerDaemon.doFinalize(Daemons.java:222)
        at java.lang.Daemons$FinalizerDaemon.run(Daemons.java:209)
        at java.lang.Thread.run(Thread.java:761)
2021-07-15 10:48:17.147 2628-2639/? E/System: Uncaught exception thrown by finalizer
2021-07-15 10:48:17.147 2628-2639/? E/System: java.lang.NullPointerException: Attempt to invoke virtual method 'void java.io.RandomAccessFile.close()' on a null object reference
        at com.tencent.mm.vfs.RefCountedFileSystem$d.close(SourceFile:669)
        at com.tencent.mm.vfs.RefCountedFileSystem$d.finalize(SourceFile:700)
        at java.lang.Daemons$FinalizerDaemon.doFinalize(Daemons.java:222)
        at java.lang.Daemons$FinalizerDaemon.run(Daemons.java:209)
        at java.lang.Thread.run(Thread.java:761)
2021-07-15 10:48:17.147 2628-2639/? E/System: Uncaught exception thrown by finalizer
2021-07-15 10:48:17.147 2628-2639/? E/System: java.lang.NullPointerException: Attempt to invoke virtual method 'void java.io.RandomAccessFile.close()' on a null object reference
        at com.tencent.mm.vfs.RefCountedFileSystem$d.close(SourceFile:669)
        at com.tencent.mm.vfs.RefCountedFileSystem$d.finalize(SourceFile:700)
        at java.lang.Daemons$FinalizerDaemon.doFinalize(Daemons.java:222)
        at java.lang.Daemons$FinalizerDaemon.run(Daemons.java:209)
        at java.lang.Thread.run(Thread.java:761)
2021-07-15 10:48:17.147 2628-2639/? E/System: Uncaught exception thrown by finalizer
2021-07-15 10:48:17.147 2628-2639/? E/System: java.lang.NullPointerException: Attempt to invoke virtual method 'void java.io.RandomAccessFile.close()' on a null object reference
        at com.tencent.mm.vfs.RefCountedFileSystem$d.close(SourceFile:669)
        at com.tencent.mm.vfs.RefCountedFileSystem$d.finalize(SourceFile:700)
        at java.lang.Daemons$FinalizerDaemon.doFinalize(Daemons.java:222)
        at java.lang.Daemons$FinalizerDaemon.run(Daemons.java:209)
        at java.lang.Thread.run(Thread.java:761)
2021-07-15 10:48:18.473 2166-4623/? I/ActivityManager: START u0 {flg=0x18000000 cmp=com.eyp.app/.wxapi.WXEntryActivity (has extras)} from uid 10040 on display 0
2021-07-15 10:48:18.492 2166-2288/? W/InputMethodManagerService: Focus gain on non-focused client com.android.internal.view.IInputMethodClient$Stub$Proxy[@cfbcdfc](/user/cfbcdfc) (uid=10040 pid=2628)
2021-07-15 10:48:18.493 2628-9704/? V/FA: Recording user engagement, ms: 6746
2021-07-15 10:48:18.493 2628-9704/? V/FA: Using local app measurement service
2021-07-15 10:48:18.506 1869-1869/? E/EGL_emulation: tid 1869: eglCreateSyncKHR(1585): error 0x3004 (EGL_BAD_ATTRIBUTE)
2021-07-15 10:48:18.575 2628-9704/? V/FA: Activity paused, time: 4138905
2021-07-15 10:48:18.577 2628-9704/? D/FA: Event not sent since app measurement is disabled
2021-07-15 10:48:18.655 2628-2628/? V/FA: Local AppMeasurementService is starting up
2021-07-15 10:48:18.738 2628-2628/? V/FA: Bound to IMeasurementService interface
回到顶部