Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

flutter 渠道包 微信验证拉起后获取不到 code #622

Open
luckyboy0306 opened this issue Jun 26, 2024 · 7 comments
Open

flutter 渠道包 微信验证拉起后获取不到 code #622

luckyboy0306 opened this issue Jun 26, 2024 · 7 comments

Comments

@luckyboy0306
Copy link

flutter 渠道包 拉起微信验证 获取不到code,闪屏之后App 重启

 productFlavors{

        huawei_flavor{
            flavorDimensions "market"
            versionCode 1
            versionName "huawei_1.0.1"
        }
        oppo_flavor{
            flavorDimensions "market"
            versionCode 1
            versionName "oppo_1.0.0"

        }
    }

这是渠道包配置 包名都是没有变的

如果用本身的 release/debug 包是没有问题的

**日志如下:**

D/MicroMsg.SDK.WXMsgImplComm(  552): check signature:308202eb30820254a00302010202044d36f7a4300d06092a864886f70d01010505003081b9310b300906035504061302383631123010060355040813094775616e67646f6e673111300f060355040713085368656e7a68656e31353033060355040a132c54656e63656e7420546563686e6f6c6f6779285368656e7a68656e2920436f6d70616e79204c696d69746564313a3038060355040b133154656e63656e74204775616e677a686f7520526573656172636820616e6420446576656c6f706d656e742043656e7465723110300e0603550403130754656e63656e74301e170d3131303131393134333933325a170d3431303131313134333933325a3081b9310b300906035504061302383631123010060355040813094775616e67646f6e673111300f060355040713085368656e7a68656e31353033060355040a132c54656e63656e7420546563686e6f6c6f6779285368656e7a68656e2920436f6d70616e79204c696d69746564313a3038060355040b133154656e63656e74204775616e677a686f7520526573656172636820616e6420446576656c6f706d656e742043656e7465723110300e0603550403130754656e63656e7430819f300d06092a864886f70d010101050003818d0030818902818100c05f34b231b083fb1323670bfbe7bdab40c0c0a6efc87ef2072a1ff0d60cc67c8edb0d0847f210bea6cbfaa241be70c86daf56be08b723c859e52428a064555d80db448cdcacc1aea2501eba06f8bad12a4fa49d85cacd7abeb68945a5cb5e061629b52e3254c373550ee4e40cb7c8ae6f7a8151ccd8df582d446f39ae0c5e930203010001300d06092a864886f70d0101050500038181009c8d9d7f2f908c42081b4c764c377109a8b2c70582422125ce545842d5f520aea69550b6bd8bfd94e987b75a3077eb04ad341f481aac266e89d3864456e69fba13df018acdc168b9a19dfd7ad9d9cc6f6ace57c746515f71234df3a053e33ba93ece5cd0fc15f3e389a3f365588a9fcb439e069d3629cd7732a13fff7b891499
D/MicroMsg.SDK.WXMsgImplComm(  552): pass
I/MicroMsg.SDK.WXApiImplV10(  552): sendReq, req type = 1
I/MicroMsg.SDK.WXApiImplV10(  552): getTokenFromWX token is wxa04a4d1dcd33a119--1739479960-1204947064484885-685
I/MicroMsg.SDK.MMessageAct(  552): send, targetPkgName = com.tencent.mm, targetClassName = com.tencent.mm.plugin.base.stub.WXEntryActivity, launchMode = 2
I/MicroMsg.SDK.MMessageAct(  552): sendUsingPendingIntent
D/MicroMsg.SDK.MMessageAct(  552): send mm message, intent=Intent { flg=0x18000000 cmp=com.tencent.mm/.plugin.base.stub.WXEntryActivity (has extras) }
I/TopResumedActivityChangeItem(  552): execute start, ActivityClientRecord = ActivityRecord{ece7b4 token=android.os.BinderProxy@70c7673 {com.包名/包名.MainActivity}}
I/HwViewRootImpl(  552): remove sceneId 10 topId: 0
D/JIGUANG-JOperate(  552): [JOperateEventDispatch] onEvent:activity_lifecycle,bundle:Bundle[{lifecycle_name=onActivityPaused, activity_hash=207071536, activity_name=包名.MainActivity, activity_intent=Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x14000000 pkg=包名cmp=包名/.MainActivity (has extras) }}]
I/MicroMsg.SDK.MMessageAct(  552): sendUsingPendingIntent onSendFinished resultCode: 0, resultData: null

之后就是 App 的重启

@luckyboy0306
Copy link
Author

luckyboy0306 commented Jun 26, 2024

渠道是 huawei_flavor
手机型号是 huawei P40 pro
系统版本 HarmonyOS 4.0.0

flutter run args 是 -- flavor huawei_flavor

@JarvanMo
Copy link
Member

JarvanMo commented Jul 2, 2024

HarmonyOS 4.0.0 更从无知晓了

@wubaibin
Copy link

flutter 渠道包 拉起微信验证 获取不到code,闪屏之后App 重启

 productFlavors{

        huawei_flavor{
            flavorDimensions "market"
            versionCode 1
            versionName "huawei_1.0.1"
        }
        oppo_flavor{
            flavorDimensions "market"
            versionCode 1
            versionName "oppo_1.0.0"

        }
    }

这是渠道包配置 包名都是没有变的

如果用本身的 release/debug 包是没有问题的

**日志如下:**

D/MicroMsg.SDK.WXMsgImplComm(  552): check signature:308202eb30820254a00302010202044d36f7a4300d06092a864886f70d01010505003081b9310b300906035504061302383631123010060355040813094775616e67646f6e673111300f060355040713085368656e7a68656e31353033060355040a132c54656e63656e7420546563686e6f6c6f6779285368656e7a68656e2920436f6d70616e79204c696d69746564313a3038060355040b133154656e63656e74204775616e677a686f7520526573656172636820616e6420446576656c6f706d656e742043656e7465723110300e0603550403130754656e63656e74301e170d3131303131393134333933325a170d3431303131313134333933325a3081b9310b300906035504061302383631123010060355040813094775616e67646f6e673111300f060355040713085368656e7a68656e31353033060355040a132c54656e63656e7420546563686e6f6c6f6779285368656e7a68656e2920436f6d70616e79204c696d69746564313a3038060355040b133154656e63656e74204775616e677a686f7520526573656172636820616e6420446576656c6f706d656e742043656e7465723110300e0603550403130754656e63656e7430819f300d06092a864886f70d010101050003818d0030818902818100c05f34b231b083fb1323670bfbe7bdab40c0c0a6efc87ef2072a1ff0d60cc67c8edb0d0847f210bea6cbfaa241be70c86daf56be08b723c859e52428a064555d80db448cdcacc1aea2501eba06f8bad12a4fa49d85cacd7abeb68945a5cb5e061629b52e3254c373550ee4e40cb7c8ae6f7a8151ccd8df582d446f39ae0c5e930203010001300d06092a864886f70d0101050500038181009c8d9d7f2f908c42081b4c764c377109a8b2c70582422125ce545842d5f520aea69550b6bd8bfd94e987b75a3077eb04ad341f481aac266e89d3864456e69fba13df018acdc168b9a19dfd7ad9d9cc6f6ace57c746515f71234df3a053e33ba93ece5cd0fc15f3e389a3f365588a9fcb439e069d3629cd7732a13fff7b891499
D/MicroMsg.SDK.WXMsgImplComm(  552): pass
I/MicroMsg.SDK.WXApiImplV10(  552): sendReq, req type = 1
I/MicroMsg.SDK.WXApiImplV10(  552): getTokenFromWX token is wxa04a4d1dcd33a119--1739479960-1204947064484885-685
I/MicroMsg.SDK.MMessageAct(  552): send, targetPkgName = com.tencent.mm, targetClassName = com.tencent.mm.plugin.base.stub.WXEntryActivity, launchMode = 2
I/MicroMsg.SDK.MMessageAct(  552): sendUsingPendingIntent
D/MicroMsg.SDK.MMessageAct(  552): send mm message, intent=Intent { flg=0x18000000 cmp=com.tencent.mm/.plugin.base.stub.WXEntryActivity (has extras) }
I/TopResumedActivityChangeItem(  552): execute start, ActivityClientRecord = ActivityRecord{ece7b4 token=android.os.BinderProxy@70c7673 {com.包名/包名.MainActivity}}
I/HwViewRootImpl(  552): remove sceneId 10 topId: 0
D/JIGUANG-JOperate(  552): [JOperateEventDispatch] onEvent:activity_lifecycle,bundle:Bundle[{lifecycle_name=onActivityPaused, activity_hash=207071536, activity_name=包名.MainActivity, activity_intent=Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x14000000 pkg=包名cmp=包名/.MainActivity (has extras) }}]
I/MicroMsg.SDK.MMessageAct(  552): sendUsingPendingIntent onSendFinished resultCode: 0, resultData: null

之后就是 App 的重启

我也遇到这个问题了,但是我是第一次获取不到code,app会再次创建一个一模一样的线程出来。然后再次点击登录会成功
请问你的这个问题解决了吗

@wubaibin
Copy link

flutter 渠道包 拉起微信验证 获取不到code,闪屏之后App 重启

 productFlavors{

        huawei_flavor{
            flavorDimensions "market"
            versionCode 1
            versionName "huawei_1.0.1"
        }
        oppo_flavor{
            flavorDimensions "market"
            versionCode 1
            versionName "oppo_1.0.0"

        }
    }

这是渠道包配置 包名都是没有变的

如果用本身的 release/debug 包是没有问题的

**日志如下:**

D/MicroMsg.SDK.WXMsgImplComm(  552): check signature:308202eb30820254a00302010202044d36f7a4300d06092a864886f70d01010505003081b9310b300906035504061302383631123010060355040813094775616e67646f6e673111300f060355040713085368656e7a68656e31353033060355040a132c54656e63656e7420546563686e6f6c6f6779285368656e7a68656e2920436f6d70616e79204c696d69746564313a3038060355040b133154656e63656e74204775616e677a686f7520526573656172636820616e6420446576656c6f706d656e742043656e7465723110300e0603550403130754656e63656e74301e170d3131303131393134333933325a170d3431303131313134333933325a3081b9310b300906035504061302383631123010060355040813094775616e67646f6e673111300f060355040713085368656e7a68656e31353033060355040a132c54656e63656e7420546563686e6f6c6f6779285368656e7a68656e2920436f6d70616e79204c696d69746564313a3038060355040b133154656e63656e74204775616e677a686f7520526573656172636820616e6420446576656c6f706d656e742043656e7465723110300e0603550403130754656e63656e7430819f300d06092a864886f70d010101050003818d0030818902818100c05f34b231b083fb1323670bfbe7bdab40c0c0a6efc87ef2072a1ff0d60cc67c8edb0d0847f210bea6cbfaa241be70c86daf56be08b723c859e52428a064555d80db448cdcacc1aea2501eba06f8bad12a4fa49d85cacd7abeb68945a5cb5e061629b52e3254c373550ee4e40cb7c8ae6f7a8151ccd8df582d446f39ae0c5e930203010001300d06092a864886f70d0101050500038181009c8d9d7f2f908c42081b4c764c377109a8b2c70582422125ce545842d5f520aea69550b6bd8bfd94e987b75a3077eb04ad341f481aac266e89d3864456e69fba13df018acdc168b9a19dfd7ad9d9cc6f6ace57c746515f71234df3a053e33ba93ece5cd0fc15f3e389a3f365588a9fcb439e069d3629cd7732a13fff7b891499
D/MicroMsg.SDK.WXMsgImplComm(  552): pass
I/MicroMsg.SDK.WXApiImplV10(  552): sendReq, req type = 1
I/MicroMsg.SDK.WXApiImplV10(  552): getTokenFromWX token is wxa04a4d1dcd33a119--1739479960-1204947064484885-685
I/MicroMsg.SDK.MMessageAct(  552): send, targetPkgName = com.tencent.mm, targetClassName = com.tencent.mm.plugin.base.stub.WXEntryActivity, launchMode = 2
I/MicroMsg.SDK.MMessageAct(  552): sendUsingPendingIntent
D/MicroMsg.SDK.MMessageAct(  552): send mm message, intent=Intent { flg=0x18000000 cmp=com.tencent.mm/.plugin.base.stub.WXEntryActivity (has extras) }
I/TopResumedActivityChangeItem(  552): execute start, ActivityClientRecord = ActivityRecord{ece7b4 token=android.os.BinderProxy@70c7673 {com.包名/包名.MainActivity}}
I/HwViewRootImpl(  552): remove sceneId 10 topId: 0
D/JIGUANG-JOperate(  552): [JOperateEventDispatch] onEvent:activity_lifecycle,bundle:Bundle[{lifecycle_name=onActivityPaused, activity_hash=207071536, activity_name=包名.MainActivity, activity_intent=Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x14000000 pkg=包名cmp=包名/.MainActivity (has extras) }}]
I/MicroMsg.SDK.MMessageAct(  552): sendUsingPendingIntent onSendFinished resultCode: 0, resultData: null

之后就是 App 的重启

你解决了吗

@wubaibin
Copy link

HarmonyOS 4.0.0 更从无知晓了

我也有这个问题,但不是HarmonyOS。是小米的也是有这个问题

@tankpanv
Copy link

HarmonyOS 4.0.0 更从无知晓了

我也有这个问题,但不是HarmonyOS。是小米的也是有这个问题

我用小米也遇到这个问题了,你是怎么解决的呀

@luckyboy0306
Copy link
Author

可以在 yaml 文件里配置热启动试试
fluwx: android: interrupt_wx_request: true # Defaults to true. flutter_activity: 'MainActivity' # Defaults to app's launcher

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants