Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding launchMode to embedded acitivty and splitting intent filters #41

Merged
merged 1 commit into from
Jun 26, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 37 additions & 13 deletions android/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,29 +7,53 @@

<application>


<activity
android:name="com.frontegg.android.EmbeddedAuthActivity"
android:launchMode="singleTop"
android:exported="true">
<!-- DONT NOT COMBINE THE FOLLOWING LINES INTO ONE LINE-->

<intent-filter android:autoVerify="true">
<action android:name="android.intent.action.VIEW" />

<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />

<data android:scheme="https" />
<!-- DONT NOT COMBINE THE FOLLOWING LINES INTO ONE LINE-->
<data
android:host="${frontegg_domain}"
android:pathPrefix="/oauth/account/activate" />
<data
android:host="${frontegg_domain}"
android:pathPrefix="/oauth/account/invitation/accept" />
<data
android:host="${frontegg_domain}"
android:pathPrefix="/oauth/account/reset-password" />
<data
android:host="${frontegg_domain}"
android:pathPrefix="/oauth/account/login/magic-link" />
<data android:host="${frontegg_domain}" />
<data android:pathPrefix="/oauth/account/activate" />

</intent-filter>
<intent-filter android:autoVerify="true">
<action android:name="android.intent.action.VIEW" />

<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />

<data android:scheme="https" />
<data android:host="${frontegg_domain}" />
<data android:pathPrefix="/oauth/account/invitation/accept" />
</intent-filter>
<intent-filter android:autoVerify="true">
<action android:name="android.intent.action.VIEW" />

<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />

<data android:scheme="https" />
<data android:host="${frontegg_domain}" />
<data android:pathPrefix="/oauth/account/reset-password" />
</intent-filter>
<intent-filter android:autoVerify="true">
<action android:name="android.intent.action.VIEW" />

<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />

<data android:scheme="https" />
<data android:host="${frontegg_domain}" />
<data android:pathPrefix="/oauth/account/login/magic-link" />
</intent-filter>
</activity>

Expand Down
Loading