Skip to main content
This guide addresses common issues you might encounter when integrating Para with your Flutter application. It provides solutions and best practices to ensure a smooth integration.
Using an LLM (ChatGPT, Claude) or Coding Assistant (Cursor, Github Copilot)? Here are a few tips:
  1. Include the for the most up-to-date help
  2. Check out the for an interactive LLM using Para Examples Hub

General Troubleshooting Steps

Before diving into specific issues, try these general troubleshooting steps:
  1. Clean the project and get dependencies:
  2. Update Flutter and dependencies:
  3. Ensure Para package is up to date: Check your pubspec.yaml file and update the Para package version if necessary.
  4. Rebuild the project:

Common Issues and Solutions

1. Package Not Found or Version Conflicts

Problem: Dart can’t find the Para package or there are version conflicts with other dependencies. Solution: Ensure your pubspec.yaml file is correctly configured:
After updating pubspec.yaml, run:

2. Platform-Specific Setup Issues

Problem: Para features not working on specific platforms (iOS/Android). Solution: Ensure platform-specific configurations are correct: For iOS (ios/Runner/Info.plist):
For Android (android/app/build.gradle):

3. SDK Initialization Errors

Problem: Para fails to initialize or throws errors on startup. Solution: Ensure proper initialization with required appScheme parameter:
Common Initialization Issues:
  • Missing appScheme parameter
  • Incorrect environment configuration
  • Invalid API key format

4. ParaFuture Handling Errors

Problem: Errors when handling ParaFuture operations. Solution: Ensure proper ParaFuture handling with cancellation support:
Common ParaFuture Issues:
  • Not awaiting the ParaFuture
  • Incorrect cancellation handling
  • Missing error type checking for ParaBridgeException

5. UI Thread Blocking

Problem: Para operations blocking the UI thread. Solution: Use compute function for heavy computations:

6. Platform Channel Errors

Problem: Errors related to platform channel communication. Solution: Ensure the latest version of Para Flutter plugin is used and platform-specific code is correctly implemented. If issues persist, check the plugin’s GitHub repository for any known issues or updates.

SDK-Specific Issues

7. Authentication Flow Errors

Problem: Authentication flow failing or returning unexpected states. Solution: Use the single-call methods, which run the whole sign-in and handle each stage for you:
An error thrown from your verificationCodeProvider is rethrown unchanged rather than as a ParaBridgeException. See Error codes for every code. If you drive the stage-based flow yourself, pass the stage’s AuthState and your web authentication session:

8. OAuth Integration Issues

Problem: OAuth flows failing or not redirecting properly. Solution: Ensure the callbackUrlScheme of your FlutterWebAuthSession and the appScheme you pass to Para.fromConfig match the URL scheme you configured for iOS and Android:

9. Passkey Belongs to a Different Account

Problem: ParaBridgeException with code passkey_account_mismatch: “That passkey belongs to a different account.” Solution: During authenticateWithOAuth or authenticateWithEmailOrPhone, a returning user whose account is protected by a passkey can be handed back to your app to sign in with it. The passkey must belong to the account the user signed in to with the provider, or verified on the code page. The SDK discards that sign-in. Ask the user to pick the passkey for that account and try again.

10. External Wallet Sign-In Fails

Problem: authenticateWithExternalWallet throws after the wallet opens. Solution: Confirm the address and type are correct, and that signMessage signs with that same address. For a Cosmos wallet, pass signCosmosMessage (the call throws missing_cosmos_signer without it). If the user rejects the signature in the wallet, your signMessage callback throws and sign-in is canceled. Make sure your deep link configuration returns the user from the wallet app to yours.

11. Two-Factor Authentication Required

Problem: ParaBridgeException with code two_factor_required: “This account requires two-factor authentication to sign in, which this sign-in flow can’t complete.” Solution: The account must complete login two-factor authentication, which the stage-based sign-in methods and the wallet connectors’ connect() can’t host, so the SDK canceled the sign-in. Catch the code and tell the user. authenticateWithEmailOrPhone and authenticateWithOAuth complete the second factor on a Para-hosted page once Para’s updated authentication flow runs for your app.

12. Extension Methods Not Found

Problem: initiateAuthFlow() or other extension methods not available. Solution: The auth extensions are exported from the main package import:

Error Codes

Most sign-in failures throw a ParaBridgeException whose code tells you what happened:

Best Practices

  1. Use ParaFuture Properly: Await the ParaFuture directly and use its requestId with cancelOperationById() when you need to cancel.
  2. Error Handling: Implement robust error handling with specific exception types:
  3. Session Management: Use session methods for persistence:
  4. State Management: Use proper state management for authentication flows.
  5. Deep Link Security: Validate deep link callbacks to prevent malicious redirects.
  6. Testing: Write unit and integration tests for your Para integration.
  7. Performance Monitoring: Monitor ParaFuture operations for performance.
  8. Keep Updated: Regularly update to the latest SDK changes.

Debugging Tips

  1. Read Debug Logs: In debug builds, the SDK logs its operations (prefixed Para:) to the Flutter console.
  2. Use Flutter DevTools: Utilize Flutter DevTools for performance profiling and debugging.
  3. Platform-Specific Debugging: For platform-specific issues, use Xcode for iOS and Android Studio for Android debugging.

Setup and Integration Issues

If you’re having trouble initializing the Para SDK:
  • Ensure you’re providing the required appScheme parameter
  • Verify that you’re using the correct API key and environment
  • Check that all necessary dependencies are installed properly
  • Look for any Dart errors in your Flutter debug console
  • Verify that your Flutter version is compatible with the Para SDK
If passkey creation, retrieval, or usage isn’t working:
  • Verify that you’ve set up associated domains correctly in your iOS project
  • For Android, check that you’ve configured your build.gradle file with the namespace fix
  • Make sure you’ve provided the correct SHA-256 fingerprint to the Para team for Android
  • Ensure that biometric authentication is enabled on the test device
  • For Android, confirm the test device has a Google account signed in
  • Check that your FlutterWebAuthSession (a ParaWebAuthenticationSession) uses your app’s URL scheme
If you’re experiencing authentication issues:
  • Double-check that your API key is correct and properly set in your Para client initialization
  • Verify you’re using the environment (beta or prod) that matches your API key
  • Ensure your account has the necessary permissions for the operations you’re attempting
  • Check that your deep link scheme matches what’s configured in your app
  • Verify the authentication flow is being followed correctly (verify → signup/login)
If you’re upgrading from an earlier version of the Flutter SDK:
  • Sign users in with authenticateWithEmailOrPhone, authenticateWithOAuth, and authenticateWithExternalWallet. They replace the stage-based calls (initiateAuthFlow, verifyOtp, handleLogin, handleSignup, verifyOAuth, loginExternalWallet), which keep working but don’t use Para’s updated authentication flow
  • Remove calls to init() - it no longer exists
  • Update constructor to use Para.fromConfig() factory method
  • Add the required appScheme parameter (now without ://callback suffix)
By following these troubleshooting steps and best practices, you should be able to resolve most common issues when integrating Para with your Flutter application.

Integration Support

If you’re experiencing issues that aren’t resolved by our troubleshooting resources, please contact our team for assistance. To help us resolve your issue quickly, please include the following information in your request:
  1. 1

    A detailed description of the problem you’re encountering.

  2. 2

    Any relevant error messages or logs.

  3. 3

    Steps to reproduce the issue.

  4. 4

    Details about your system or environment (e.g., device, operating system, software version).

Providing this information will enable our team to address your concerns more efficiently.