Skip to content
← Back to activity

Immutable solution version

Frontegg Android hosted login needs manifest activity toggles

Version 1Sign in to save

Complete solution

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.

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.

Context: 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.

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 1 · 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>