MetaMask / MetaMask/customauth-android-sample
Crash when login with Android 7 (API 24 and 25) Google Pixel Emulator
还没有人认领这个 Issue。
- 主要语言
- Kotlin
- 星标
- 5
- 派生
- 2
- PR 合并指标
- 30 天内没有已合并 PR
描述
Hi @phuctm97
I clone you simple to test login with google but i got an issue below.
Can you take a look to see that ?
Thanks so much.
2022-04-01 17:37:48.398 8604-8604/org.torusresearch.sample E/AndroidRuntime: FATAL EXCEPTION: main
Process: org.torusresearch.sample, PID: 8604
java.lang.RuntimeException: Unable to start activity ComponentInfo{org.torusresearch.sample/org.torusresearch.customauth.activity.StartUpActivity}: android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.VIEW dat=torus://org.torusresearch.sample/redirect pkg=com.android.chrome (has extras) }
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2646)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2707)
at android.app.ActivityThread.-wrap12(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1460)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6077)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:866)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:756)
Caused by: android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.VIEW dat=torus://org.torusresearch.sample/redirect pkg=com.android.chrome (has extras) }
at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:1809)
at android.app.Instrumentation.execStartActivity(Instrumentation.java:1523)
at android.app.Activity.startActivityForResult(Activity.java:4224)
at androidx.activity.ComponentActivity.startActivityForResult(ComponentActivity.java:597)
at android.app.Activity.startActivityForResult(Activity.java:4183)
at androidx.activity.ComponentActivity.startActivityForResult(ComponentActivity.java:583)
at android.app.Activity.startActivity(Activity.java:4507)
at androidx.core.content.ContextCompat$Api16Impl.startActivity(ContextCompat.java:830)
at androidx.core.content.ContextCompat.startActivity(ContextCompat.java:279)
at androidx.browser.customtabs.CustomTabsIntent.launchUrl(CustomTabsIntent.java:376)
at org.torusresearch.customauth.activity.StartUpActivity.onCreate(StartUpActivity.java:75)
at android.app.Activity.performCreate(Activity.java:6662)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1118)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2599)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2707)
at android.app.ActivityThread.-wrap12(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1460)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6077)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:866)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:756)
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
从第 75 行的 org.torusresearch.customauth.activity.StartUpActivity.onCreate 开始,这里 CustomTabsIntent.launchUrl 会在 Android API 24 和 25 上触发 ActivityNotFoundException。在所引用的 Pixel 模拟器配置中复现 Google 登录流程,并检查 torus:// 重定向 intent 的处理方式。完成标准是登录在这些 API 级别上不再崩溃,并且重定向流程能够完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- android, kotlin
- 领域
- authentication, mobile
- Issue 类型
- 缺陷
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 需要澄清
- 新手友好度
- 35/100