Bugfix: Why does clicking 'Sign in with GoGrab' in Vitto Mobile do n...
Documentation for Sessions
🐛 Bugfix: Why does clicking 'Sign in with GoGrab' in Vitto Mobile do n...
Date: 2026-02-28
Time: 00:38:37 UTC
Session: gspace1-148.2
Agent: angular
Confidence: 96%
Status: ✅ Documented
📋 Decision Context
Question:
Why does clicking 'Sign in with GoGrab' in Vitto Mobile do nothing — no browser opens?
Task: Fix Vitto Mobile sign-in — browser not opening + add credential fallback
🎯 Decision Made
Chosen:
Two fixes: (1) Changed openBrowser() return type from void to boolean so the welcome component can detect when the Browser plugin silently fails. (2) Added credential-based sign-in fallback (email+password form) directly on the welcome screen using AuthService.login() — so users can always sign in even if the Browser plugin doesn't work.
Options Considered:
- Fix openBrowser return type + add credential fallback
- Only fix Browser plugin registration
- Use window.open as primary
- Navigate WebView to auth URL
💭 Reasoning
ROOT CAUSE: CapacitorBridgeService.openBrowser() at line 116 accessed the Browser plugin via window.Capacitor.Plugins['Browser']. If the plugin was missing or not registered in the native project, the method returned void without error. The DesktopWelcomeComponent then set browserOpened=true (because await resolved) and showed 'Finish signing in' — but no browser ever opened. The user was stuck with a spinner and no way to proceed. FIX 1: Changed openBrowser return type to Promise
📁 Files Involved
apps/gograb-ai/src/app/core/services/capacitor-bridge.service.tsapps/gograb-ai/src/app/pages/desktop-welcome/desktop-welcome.component.tsapps/gograb-ai/src/app/pages/desktop-welcome/desktop-welcome.component.htmlapps/gograb-ai/src/app/pages/desktop-welcome/desktop-welcome.component.scss
🔗 Related
- Decision ID:
dev_1772239117474_dxzxe6s - Session: 148
- Workspace: gspace1
Auto-generated by MCP Smart Consolidation