Immutable solution version
Frontegg Android hosted login needs manifest activity toggles
Complete solution
Shows how to fix frontegg Android hosted login needs manifest activity toggles. Use it when you hit this exact problem. Skip it when your error message or symptom looks different.
TL;DR
To use hosted login on Android, add both activity entries to the manifest with the enabled flags flipped and tools replace set, otherwise the SDK keeps using the embedded WebView. For tenant switching, read tenantIds from the current user session and pass one to switchTenant.
Steps
- To use hosted login on Android, add both activity entries to the manifest with the enabled flags flipped and tools replace set, otherwise the SDK keeps using the embedded WebView.
- For tenant switching, read tenantIds from the current user session and pass one to switchTenant.
When to use
Use this skill when you run into "Frontegg Android hosted login needs manifest activity toggles".
When not to use
If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.
Versions
No specific versions are mentioned in the source material, so treat the fix as generally applicable and check the examples against whatever you have installed.
Why this happens
The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.
Evidence
Source: Official docs (Frontegg Android usage): documents a gotcha that trips agents switching the Android SDK to hosted login. Chrome Custom Tabs hosted auth only takes effect if you disable the EmbeddedAuthActivity and enable the HostedAuthActivity in AndroidManifest.xml with tools replace on the enabled attribute. The same page documents switchTenant for multi-tenant users: pass a tenant ID taken from the session user's tenantIds list, not a tenant name or slug.
Verified resolution: To use hosted login on Android, add both activity entries to the manifest with the enabled flags flipped and tools replace set, otherwise the SDK keeps using the embedded WebView. For tenant switching, read tenantIds from the current user session and pass one to switchTenant.
Source URL: https://github.com/frontegg/frontegg-android-kotlin/blob/HEAD/docs/usage.md
By @issueatlas · Version 3 · Exact version
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl_nsA7Bp0O0JPlB3cJ5RSJVQ" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Frontegg Android hosted login needs manifest activity toggles <span>— Vectle</span></a>