Use a mobile SDK when Link should run inside your native or cross-platform mobile application. Argyle supports iOS, Android, React Native, and Flutter.Documentation Index
Fetch the complete documentation index at: https://docs.argyle.com/llms.txt
Use this file to discover all available pages before exploring further.
If you are not using a mobile SDK, prefer either a client-hosted Web SDK implementation in a secure webview, or Hosted Link in a secure browser context such as
ASWebAuthenticationSession or Android Custom Tabs.User tokens and session links both expire after one hour. Create a fresh user token before initializing Link with
userToken, or create a new session link for an active verification before initializing Link with connectUrl.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:
Initialize Link
- userToken
- connectUrl
Create a user token:
- New users: create the user via
POST /v2/usersand use the returneduser_token. - Returning users: create a new token via
POST /v2/user-tokensand use the returneduser_token.
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:Initialize Link
- userToken
- connectUrl
Create a user token:
- New users: create the user via
POST /v2/usersand use the returneduser_token. - Returning users: create a new token via
POST /v2/user-tokensand use the returneduser_token.
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
- ProGuard-like tools
- okhttp3 runtime issues
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.
Initialize Link
- userToken
- connectUrl
Create a user token:
- New users: create the user via
POST /v2/usersand use the returneduser_token. - Returning users: create a new token via
POST /v2/user-tokensand use the returneduser_token.
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:Initialize Link
- userToken
- connectUrl
Create a user token:
- New users: create the user via
POST /v2/usersand use the returneduser_token. - Returning users: create a new token via
POST /v2/user-tokensand use the returneduser_token.