boosik
June 18, 2024, 2:45am
1
I am failed to login with my twitter id.
But I success in my android emulator, and fail in my own smart phone. (Both are android)
When asking for help in this category, please make sure to provide the following details:
SDK Version => web3auth_flutter: ^4.0.0
Platform: Flutter (Tested in android)
Browser Console Screenshots:
Track id : 7b16d7f0fdbb829b3801
Also, kindly provide the Web3Auth initialization and login code snippet below. This will help us better understand your issue and provide you with the necessary assistance.
Ayush
June 18, 2024, 4:48am
2
Hey @boosik , thanks for reporting the issue. I’ll create a sample, and try out. Meanwhile, is this issue reproducible, or it happens randomly?
boosik
June 18, 2024, 5:50am
3
@Ayush Always failed in my phone.
Ayush
June 18, 2024, 6:08am
4
Can you share the device details?
boosik
June 18, 2024, 9:22am
5
@Ayush I am using galaxy S23(SM-S911N), using Android 13. And if you need more information please let me know.
boosik
June 19, 2024, 2:56am
6
@Ayush any update? how can I get logs or something to help you?
Ayush
June 19, 2024, 3:42am
7
Unfortunately I’m not able to reproduce the issue on my end. Can you please try to get these logs?
Network logs, and Console logs? Once you have connected the device and ran your application, you can open chrome://inspect/#devices
in chrome browser and get the network and console logs.
boosik
June 19, 2024, 7:24am
8
@Ayush in browser log, there is a log that “Failed to load resource: the server responded with a status of 404 ()”
Ayush
June 19, 2024, 12:01pm
9
Can you share screenshot, and please share the network logs.
Also, please share you Web3AuthFlutter initialisation code, and the login function code.
boosik
June 24, 2024, 3:27am
10
@Ayush hi, sorry for late replying!
actually I can’t get any logs because my flutter app didn’t make logs about web3auth.
but after I try twitter login, it redirct to /account/locked and login failed.
I attach my web3auth init code.
late final Uri redirectUrl;
if (Platform.isAndroid) {
redirectUrl = Uri.parse(ANDROID_APP_LiNK);
} else {
redirectUrl = Uri.parse(IOS_APP_LINK);
}
await Web3AuthFlutter.init(Web3AuthOptions(
clientId: MY_CLIENT_ID,
network: Network.sapphire_devnet,
redirectUrl: redirectUrl,
));
await Web3AuthFlutter.initialize();
Ayush
June 24, 2024, 4:14am
11
Okay, maybe we can set up a call so I can go through code and also get the relevant logs. I’ll share you my calendly link in DM.
boosik
June 24, 2024, 11:22am
12
@Ayush thanks! Please share calendly to boosik@riverbank.world ! I will check it
boosik
June 26, 2024, 5:24am
13
@Ayush
my login snippet :
final Web3AuthResponse response =
await Web3AuthFlutter.login(
LoginParams(
loginProvider: Provider.twitter,
curve: web3_auth_enum.Curve.ed25519),
);
web3 flutter version v4.0.0
boosik
July 1, 2024, 4:24am
14
@Ayush hello any other progress now? I tried with my custom auth0 config but it also failed. But what I am wondering is that I can login with twitter in my android emulator.
boosik
July 1, 2024, 11:38am
15
now I can enter my id and pw to login webpage, and it ask mfa(my google-authenticator), but next that it just goes to twitter main feed page, not auth page. I think it maybe a issue in twitter.
boosik
July 1, 2024, 12:26pm
16
I got some log from twiiter application, filtered by word “deeplink”
2024-07-01 21:25:25.929 21598-21598 TopTaskTracker com.sec.android.app.launcher I getCachedTopTask : tasks = [TaskInfo{userId=0 taskId=10903 displayId=0 isRunning=true baseIntent=Intent { act=android.intent.action.VIEW cat=[android.intent.category.BROWSABLE] dat=https://x.com/ … flg=0x14000000 cmp=com.twitter.android/com.twitter.deeplink.implementation.UrlInterpreterActivity } baseActivity=ComponentInfo{com.twitter.android/com.twitter.deeplink.implementation.UrlInterpreterActivity} topActivity=ComponentInfo{com.twitter.android/com.twitter.deeplink.implementation.UrlInterpreterActivity} origActivity=null realActivity=ComponentInfo{com.twitter.android/com.twitter.deeplink.implementation.UrlInterpreterActivity} numActivities=1 lastActiveTime=3926343145 supportsSplitScreenMultiWindow=true supportsMultiWindow=true resizeMode=2 isResizeable=true minWidth=-1 minHeight=-1 defaultMinSize=220 token=WCT{android.window.IWindowContainerToken$Stub$Proxy@fe0783e} topActivityType=1 pictureInPictureParams=null shouldDockBigOverlays=false launchIntoPipHostTaskId=0 displayCutoutSafeInsets=Rect(0, 81 - 0, 0) topActivityInfo=ActivityInfo{52a469f com.twitter.deeplink.implementation.UrlInterpreterActivity} launchCookies=[] positionInParent=Point(0, 0) parentTaskId=-1 isFocused=false isVisible=false isSleeping=false topActivityInSizeCompat=false topActivityEligibleForLetterboxEducation= false locusId=null displayAreaFeatureId=1 cameraCompatControlState=hidden originallySupportedSplitScreen=true hasWallpaper=false isTopTransparentActivity=false topActivityInFixedAspectRatio=false topActivityInDisplayCompat=false topActivityInBoundsCompat=false topActivityBounds=null}, TaskInfo{userId=0 taskId=10899 displayId=0 isRunning=true baseIntent=Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x30000000 cmp=com.example.surfy_mobile_app/.MainActivity } baseActivity=ComponentInfo{com.example.surfy_mobile_app/com.example.surfy_mobile_app.MainActivity} topActivity=ComponentInfo{com.android.chrome/org.chromium.chrome.browser.customtabs.CustomTabActivity} origActivity=null realActivity=ComponentInfo{com.example.surfy_mobile_app/com.example.surfy_mobile_app.MainActivity} numActivities=2 lastActiveTime=3926334817 supportsSplitScreenMultiWindow=true supportsMultiWindow=true resizeMode=1 isResizeable=true minWidth=-1 minHeight=-1 defaultMinSize=220 token=WCT{android.window.IWindowContainerToken$Stub$Proxy@27eb3ec} topActivityType=1 pictureInPictureParams=null shouldDockBigOverlays=false launchIntoPipHostTaskId=0 displayCutoutSafeInsets=Rect(0, 81 - 0, 0) topActivityInfo=ActivityInfo{f4cb3b5 org.chromium.chrome.browser.customtabs.CustomTabActivity} launchCookies=[com.android.launcher3.util.ObjectWrapper@e62bcdd] positionInParent=Point(0, 0) parentTaskId=-1 isFocused=false isVisible=false isSleeping=false topActivityInSizeCompat=false topActivityEligibleForLetterboxEducation= false locusId=null displayAreaFeatureId=1 cameraCompatControlState=hidden originallySupportedSplitScreen=true hasWallpaper=false isTopTransparentActivity=false topActivityInFixedAspectRatio=false topActivityInDisplayCompat=false topActivityInBoundsCompat=false topActivityBounds=null}, TaskInfo{userId=0 taskId=8300 displayId=0 isRunning=true baseIntent=Intent { act=android.intent.action.MAIN cat=[android.intent.category.HOME] flg=0x10000100 cmp=com.sec.android.app.launcher/.activities.LauncherActivity } baseActivity=ComponentInfo{com.sec.android.app.launcher/com.sec.android.app.launcher.activities.LauncherActivity} topActivity=ComponentInfo{com.sec.android.app.launcher/com.android.launcher3.uioverrides.QuickstepLauncher} origActivity=ComponentInfo{com.sec.android.app.launcher/com.sec.android.app.launcher.activities.LauncherActivity} realActivity=ComponentInfo{com.sec.android.app.launcher/com.android.launcher3.uioverrides.QuickstepLauncher} numActivities=1 lastActiveTime=3926270737 supportsSplitScreenMultiWindow=true supportsMultiWindow=true resizeMode=2 isResizeable=true minWidth=-1 minHeight=-1 defaultMinSize=220 token=WCT{android.window.IWindowContainerToken$Stub$Proxy@583f052} topActivityType=2
2024-07-01 21:25:25.947 21598-21598 ApplyLoadP…rationImpl com.sec.android.app.launcher I taskId = 10899, ComponentInfo{com.example.surfy_mobile_app/com.example.surfy_mobile_app.MainActivity}
taskId = 10903, ComponentInfo{com.twitter.android/com.twitter.deeplink.implementation.UrlInterpreterActivity} ]
2024-07-01 21:25:28.370 2683-5729 ActivityTaskManager system_server I START u0 {act=android.intent.action.VIEW cat=[android.intent.category.BROWSABLE] dat=https://x.com/ … flg=0x14000000 cmp=com.twitter.android/com.twitter.deeplink.implementation.UrlInterpreterActivity (has extras)} from uid 10246
2024-07-01 21:25:28.371 2683-5729 ActivityTaskManager system_server D TaskLaunchParamsModifier:task=null activity=ActivityRecord{109a756 u0 com.twitter.android/com.twitter.deeplink.implementation.UrlInterpreterActivity} display-area-from-source=DefaultTaskDisplayArea@216563616 display-id=0 display-windowing-mode=1 suggested-display-area=DefaultTaskDisplayArea@216563616
2024-07-01 21:25:28.371 2683-5729 ActivityTaskManager system_server D TaskLaunchParamsModifier:task=Task{482d4e7 #10903 type=standard A=10514:com.twitter.android U=0 visible=false visibleRequested=false mode=fullscreen translucent=true sz=1} activity=ActivityRecord{109a756 u0 com.twitter.android/com.twitter.deeplink.implementation.UrlInterpreterActivity} t-1} display-area-from-source=DefaultTaskDisplayArea@216563616 display-id=0 display-windowing-mode=1 suggested-display-area=DefaultTaskDisplayArea@216563616 inherit-from-source=fullscreen activity-options-fullscreen=Rect(0, 0 - 0, 0) non-freeform-display display-area=DefaultTaskDisplayArea@216563616 maximized-bounds
2024-07-01 21:25:28.375 1697-4403 SurfaceFlinger surfaceflinger I id=681142 createSurf, flag=80004, ActivityRecord{109a756 u0 com.twitter.android/com.twitter.deeplink.implementation.UrlInterpreterActivity} t10903}#681142
2024-07-01 21:25:28.379 2683-5729 WindowManager system_server V Added starting ActivityRecord{109a756 u0 com.twitter.android/com.twitter.deeplink.implementation.UrlInterpreterActivity} t10903}: startingWindow=null startingView=com.android.server.wm.StartingSurfaceController$StartingSurface@210e2e2
2024-07-01 21:25:28.384 2683-6351 WindowManager system_server V addWindow: ActivityRecord{109a756 u0 com.twitter.android/com.twitter.deeplink.implementation.UrlInterpreterActivity} t10903} startingWindow=Window{c491930 u0 SnapshotStartingWindow for taskId=10903}
2024-07-01 21:25:28.388 2683-7155 WindowManagerServiceExt system_server D notifyOccludeChangeNotice: cn=ComponentInfo{com.twitter.android/com.twitter.deeplink.implementation.UrlInterpreterActivity} occludesParent=true inMultiWindow=false styleFloating=false caller=com.android.server.wm.WindowManagerServiceExt.updateOccludeTargetIfNeeded:1402 com.android.server.wm.DisplayContent.ensureActivitiesVisible:7532 com.android.server.wm.RootWindowContainer.ensureActivitiesVisible:2248 com.android.server.wm.RootWindowContainer.ensureVisibilityAndConfig:2126 com.android.server.wm.ActivityTaskSupervisor.realStartActivityLocked:913
2024-07-01 21:25:28.389 2683-7155 WindowManager system_server D rotationForOrientation, orientationSource=ActivityRecord{109a756 u0 com.twitter.android/com.twitter.deeplink.implementation.UrlInterpreterActivity} t10903}
2024-07-01 21:25:28.389 2683-7155 WindowManager system_server D rotationForOrientation, orientationSource=ActivityRecord{109a756 u0 com.twitter.android/com.twitter.deeplink.implementation.UrlInterpreterActivity} t10903}
2024-07-01 21:25:28.389 2683-7155 WindowManager system_server D rotationForOrientation, orientationSource=ActivityRecord{109a756 u0 com.twitter.android/com.twitter.deeplink.implementation.UrlInterpreterActivity} t10903}
2024-07-01 21:25:28.391 2683-7155 ActivityTaskManager system_server D scheduleTopResumedActivityChanged, onTop=true r=ActivityRecord{109a756 u0 com.twitter.android/com.twitter.deeplink.implementation.UrlInterpreterActivity} t10903} caller=com.android.server.wm.ActivityTaskSupervisor.scheduleTopResumedActivityStateIfNeeded:2535 com.android.server.wm.ActivityTaskSupervisor.updateTopResumedActivityIfNeeded:2527 com.android.server.wm.TaskFragment.setResumedActivity:493 com.android.server.wm.TaskFragment.onActivityStateChanged:805 com.android.server.wm.ActivityRecord.setState:6406 com.android.server.wm.Task.minimalResumeActivityLocked:6155
2024-07-01 21:25:28.391 2683-7155 InputDispatcher system_server D Focused application(0): ActivityRecord{109a756 u0 com.twitter.android/com.twitter.deeplink.implementation.UrlInterpreterActivity} t10903}
2024-07-01 21:25:28.414 1697-1956 SurfaceFlinger surfaceflinger I id=681148 createSurf, flag=80000, 3089d71 ActivityRecordInputSink com.twitter.android/com.twitter.deeplink.implementation.UrlInterpreterActivity#681148
2024-07-01 21:25:28.447 2683-6283 WindowManager system_server V Moving existing starting Window{c491930 u0 SnapshotStartingWindow for taskId=10903} from ActivityRecord{109a756 u0 com.twitter.android/com.twitter.deeplink.implementation.UrlInterpreterActivity} t10903} to ActivityRecord{455934a u0 com.twitter.android/com.twitter.app.main.MainActivity} t10903}
2024-07-01 21:25:28.448 2683-6283 ActivityTaskManager system_server D scheduleTopResumedActivityChanged, onTop=false r=ActivityRecord{109a756 u0 com.twitter.android/com.twitter.deeplink.implementation.UrlInterpreterActivity} t10903} caller=com.android.server.wm.ActivityTaskSupervisor.updateTopResumedActivityIfNeeded:2510 com.android.server.wm.TaskFragment.setResumedActivity:493 com.android.server.wm.TaskFragment.onActivityStateChanged:790 com.android.server.wm.ActivityRecord.setState:6406 com.android.server.wm.TaskFragment.startPausing:1880 com.android.server.wm.TaskFragment.startPausing:1817
2024-07-01 21:25:28.839 1697-1957 SurfaceFlinger surfaceflinger I id=681148 Removed 3089d71 ActivityRecordInputSink com.twitter.android/com.twitter.deeplink.implementation.UrlInterpreterActivity#681148 (273)
2024-07-01 21:25:28.849 1697-1697 Layer surfaceflinger I id=681142 removedFromDrawingState ActivityRecord{109a756 u0 com.twitter.android/com.twitter.deeplink.implementation.UrlInterpreterActivity} t10903}#681142 (267)
2024-07-01 21:25:28.849 1697-1697 Layer surfaceflinger I id=681148 removedFromDrawingState 3089d71 ActivityRecordInputSink com.twitter.android/com.twitter.deeplink.implementation.UrlInterpreterActivity#681148 (267)
2024-07-01 21:25:28.849 1697-1697 SurfaceFlinger surfaceflinger I id=681142 Removed ActivityRecord{109a756 u0 com.twitter.android/com.twitter.deeplink.implementation.UrlInterpreterActivity} t10903}#681142 (267)
2024-07-01 21:25:28.849 1697-1697 Layer surfaceflinger I id=681142 Destroyed ActivityRecord{109a756 u0 com.twitter.android/com.twitter.deeplink.implementation.UrlInterpreterActivity} t10903}#681142
2024-07-01 21:25:28.849 1697-1697 Layer surfaceflinger I id=681148 Destroyed 3089d71 ActivityRecordInputSink com.twitter.android/com.twitter.deeplink.implementation.UrlInterpreterActivity#681148
boosik
July 1, 2024, 12:49pm
17
I success login after deleting my X app, and login in twitter on web browser. I think it is twitter application lssue ;(
Ayush
July 1, 2024, 2:08pm
18
yes, it could be twitter application. I tried on browser, and it gave me any error. Let me try with application installed.
1 Like