Overview
The platform-specific guides below discuss how to initialize Link for first time implementations, or adjust your existing implementation to add new functionalities. For steps on how to update an existing Link implementation to a newer version, visit our Upgrade Guide instead.For iOS, Android, and React Native implementations, Link SDK’s are maintained and updated through Argyle’s public Github repository. For Flutter implementations, follow the steps in our Flutter initialization guide below.
Required initialization parameters
| Parameter | Type | Description |
|---|---|---|
sandbox | boolean | Determines Link’s environment — true for Sandbox, false for Production. |
userToken | string | Argyle utilizes user tokens to identify and authenticate users. See our dedicated User Tokens Guide for more information. |
Optional initialization parameters
| Parameter | Type | Description |
|---|---|---|
flowId | string | ID used to customize the Link flow. Saved IDs can be found in the Flows section of Console. Flow IDs are not environment-specific. The same Flow ID will apply consistent behavior across both Sandbox and Production. |
ddsConfig | string | Used to initialize a deposit switch. |
items | array of strings | Limits Link search to the provided list of Items. Providing a single Item in the array will skip Link search and take the user directly to that Item’s login screen. |
accountId | string | Used for direct logins to an account that the user has previously connected or attempted to connect. |
<Callback Name> | string | Callbacks are activated by specific events in Link. |
language | string | Specifies the display language in Link.
Possible values: EN (English), ES (Spanish), RU (Russian), ZH (Chinese).*Flutter uses lowercase en, es, ru, zh. |
Web
Before you start
- When using a webview component, make sure
localStorageis always enabled, and setdomStorageEnabledtotrueandincognitotofalse. - If your security policy limits outgoing traffic, allow API calls by whitelisting outgoing traffic from Link by including these two content sources at minimum:
Implementing Link for web
Create a user token:- New users
- Returning users
- Create a new user by sending a POST request to the API’s
/usersendpoint. - The response payload will include an
idanduser_token. - Save the
idfor quickly creating user tokens for this user in the future. - Pass the
user_tokenas the value for theuserTokenparameter in your Link initialization.
- Web
iOS
Argyle’s iOS Link SDK provides a way to integrate Link into your iOS app. First-time installation instructions are below. To update versions, visit our iOS Link upgrade guide.Requirements - iOS SDK
iOS 14.0+, Xcode 14.0+, Swift 5.5+Installing the iOS SDK
- CocoaPods
- Swift Package Manager
If using Cocoapods:
- In the
Podfileof your Xcode project, addpod 'Argyle', '<Version Number>' - Run
pod installto install the Argyle pod - Run
pod updateto ensure the most recent Argyle pod is installed
Directly opening email clients
To enhance the multi-factor authentication (MFA) experience of users, the iOS Link SDK supports directly opening the user’s email client. To enable this feature, add the following property to yourInfo.plist file:
Implementing Link for iOS
Create a user token:- New users
- Returning users
- Create a new user by sending a POST request to the API’s
/usersendpoint. - The response payload will include an
idanduser_token. - Save the
idfor quickly creating user tokens for this user in the future. - Pass the
user_tokenas the value for theuserTokenparameter in your Link initialization.
- iOS
Android
Argyle’s Android Link SDK provides a way to integrate Link into your Android app. First-time installation instructions are below. To update versions, visit our Android Link upgrade guide.Requirements - Android SDK
- Android 8.0 (minSdk/API level 26) and above
- compileSdk 34 and above
Installing the Android SDK
- Add the line below within the dependencies of your
build.gradleconfiguration file. - Sync your Android project to import the build configuration changes.
If you are using tools like ProGuard to obfuscate your code...
If you are using tools like ProGuard to obfuscate your code...
Make sure to exclude the Link SDK package
com.argyle.*. For example, add the following line to the proguard-rules.pro file of your ProGuard configuration:Implementing Link for Android
Create a user token:- New users
- Returning users
- Create a new user by sending a POST request to the API’s
/usersendpoint. - The response payload will include an
idanduser_token. - Save the
idfor quickly creating user tokens for this user in the future. - Pass the
user_tokenas the value for theuserTokenparameter in your Link initialization.
- Android
React Native
Argyle’s React Native Link SDK provides a way to integrate Link into your React Native application. First-time installation instructions are below. To update versions, visit our React Native Link upgrade guide.Requirements - React Native SDK
- React Native version 0.73.0 or higher
- iOS-specific — iOS 14.0+
- Android-specific:
- Android 8.0 (minSdk/API level 26) and above
- compileSdk 34 and above
- If using ProGuard-like tools to obfuscate code...
If you are using tools like ProGuard to obfuscate your code...
If you are using tools like ProGuard to obfuscate your code...
Make sure to exclude the Link SDK package
com.argyle.*. For example, add the following line to the bottom of your ProGuard configuration:Installing the React Native SDK
- Navigate to the directory for your React Native project.
- Install the packages from your terminal:
- NPM
- Yarn
- Run
cd iosto navigate to theiosfolder. - Run
pod installto install the Argyle pod. - Run
pod updateto ensure the most recent Argyle pod is installed.
Implementing Link for React Native
Create a user token:- New users
- Returning users
- Create a new user by sending a POST request to the API’s
/usersendpoint. - The response payload will include an
idanduser_token. - Save the
idfor quickly creating user tokens for this user in the future. - Pass the
user_tokenas the value for theuserTokenparameter in your Link initialization.
- React Native
Flutter
Argyle’s Flutter SDK provides a way to integrate Link into your mobile applications. First-time installation instructions are below. To update versions, visit our Flutter upgrade guide.Requirements - Flutter SDK
- Android
- iOS
- Android 8.0 (minSdk/API level 26) and above
- compileSdk 34 and above
minSdkVersion in your android/app/build.gradle file to:Installing the Flutter SDK
Addargyle_link_flutter as a dependency in your pubspec.yaml file.
Example installation:
Example installation:
Using Flutter, run the command:This will add a line to your You can now import the package into your Dart code using:
pubspec.yaml file with the latest SDK version:Implementing Link for Flutter
Create a user token:- New users
- Returning users
- Create a new user by sending a POST request to the API’s
/usersendpoint. - The response payload will include an
idanduser_token. - Save the
idfor quickly creating user tokens for this user in the future. - Pass the
user_tokenas the value for theuserTokenparameter in your Link initialization.
- Flutter