Prerequisites
To use Para, you need an API key. This key authenticates your requests to Para services and is essential for integration.Dependency Installation
Install the required packages for Para SDK integration:Project Setup
iOS Setup
Install CocoaPods for native dependencies:Remember to run
pod install after adding new dependencies to your project.Getting ready for App Review? See for Para-specific review tips.
If you plan to use native passkeys, additional platform configuration is required. See for iOS and Android setup.
Configure Metro Bundler
Create or updatemetro.config.js in your project root:
metro.config.js
Add Para Shim
Import the Para shim as the FIRST import in your application’s entry file (typicallyindex.js):
Initialize the SDK
Set up the Para client singleton to enable SDK interactions:para.ts
index.js
Beta Testing Credentials In the
BETA Environment, you can use any email ending in @test.getpara.com (like
dev@test.getpara.com) or US phone numbers (+1) in the format (area code)-555-xxxx (like (425)-555-1234). Any OTP
code will work for verification with these test credentials. These credentials are for beta testing only. You can
delete test users anytime in the beta developer console to free up user slots.If you’re using a legacy API key (one without an environment prefix) you must provide the
Environment as the first argument to the ParaMobile constructor. You can retrieve your updated API key from the Para Developer Portal at https://developer.getpara.com/Examples
Troubleshooting
Para SDK initialization fails
Para SDK initialization fails
If you’re having trouble initializing the Para SDK:
- Ensure that you’ve called
para.init()after creating the Para instance. - Verify that you’re using the correct API key and environment.
- Check that all necessary dependencies are installed and linked properly.
- Look for any JavaScript errors in your Metro bundler console.
Native modules are not found or linked
Native modules are not found or linked
If you’re seeing errors about missing native modules:
- Run
pod installin theiosdirectory to ensure all CocoaPods dependencies are installed. - For Android, make sure your
android/app/build.gradlefile includes the necessary dependencies. - Rebuild your app after adding new native dependencies.
Crypto-related errors or undefined functions
Crypto-related errors or undefined functions
"Cannot create URL for blob" errors
"Cannot create URL for blob" errors
If you’re encountering blob URL creation errors:
- Ensure you’re using
{ disableWorkers: true }in the ParaMobile constructor - Verify the Para SDK shim is imported first in your
index.jsfile - This error occurs when Web Workers are enabled in React Native environments
Authentication fails or API requests are rejected
Authentication fails or API requests are rejected
If you’re experiencing authentication issues:
- Double-check that your API key is correct and properly set in your environment variables.
- Verify you’re using the correct environment (
BETAorPRODUCTION) that matches your API key. - Ensure your account has the necessary permissions for the operations you’re attempting.
- Check your network requests for any failed API calls and examine the error messages.