Skip to content

Commit

Permalink
Updated README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
“oleksii-minaiev” committed Jul 22, 2024
1 parent 4d0a46b commit c7dda4c
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ and integrate them into their SaaS portals in up to 5 lines of code.
- [Enabling Chrome Custom Tabs for Social Login](#enabling-chrome-custom-tabs-for-social-login)
- [Embedded Webview vs Custom Chrome Tab](#embedded-webview-vs-custom-chrome-tab)
- [Config Android AssetLinks](#config-android-assetlinks)
- [Multi-apps Support](#multi-apps-support)
- [Multi-Region support](#multi-region-support)
- [Usage](#usage)
- [Login with Frontegg](#login-with-frontegg)
Expand Down Expand Up @@ -283,6 +284,49 @@ In order to use our API’s,
follow [this guide](https://docs.frontegg.com/reference/getting-started-with-your-api) to
generate a vendor token.

## Multi-apps Support

This guide outlines the steps to configure your Android application to support multiple applications.

### Step 1: Modify the Build.gradle file

Add `FRONTEGG_APPLOCATION_ID` buildConfigField into the `build.gradle` file:

```groovy
def fronteggApplicationId = "your-application-id-uuid"
...
android {
...
buildConfigField "String", 'FRONTEGG_APPLOCATION_ID', "\"$fronteggApplicationId\""
}
```

### Step 2: Modify the App File

Add `BuildConfig`.`FRONTEGG_APPLOCATION_ID` to `FronteggApp`.`init`.

Example App.kt code:

```kotlin
class App : Application() {

companion object {
lateinit var instance: App
}

override fun onCreate() {
super.onCreate()
instance = this
FronteggApp.init(
BuildConfig.FRONTEGG_DOMAIN,
BuildConfig.FRONTEGG_CLIENT_ID,
this,
BuildConfig.FRONTEGG_APPLOCATION_ID, // here
)
}
}
```

## Multi-Region Support

This guide outlines the steps to configure your Android application to support multiple regions.
Expand Down

0 comments on commit c7dda4c

Please sign in to comment.