RemBase documentationpricingpricingContact ↗Contact ↗ (opens in a new tab)
GitHubGitHub (opens in a new tab)DiscordDiscord (opens in a new tab)
  • Introduction
  • RemBase features
    • Cloud functions
    • Endpoints
    • Application values and secrets
    • Add Dependencies
  • SDKs
    • android-sdk
      • Initialize
    • flutter-sdk
      • Getting started
      • Initialize
      • Authentication
      • Call backend functions
      • Best Practices
    • ios-sdk
      • Initialize
    • web-sdk
      • Getting started
      • Initialize
      • Authentication
      • Call backend functions
      • Best Practices
  • Best Practices
    • Self Host
    • Testing
    • Web
      • Server Side Compatibility
  • Pricing
  • help
    • Context
  • Introduction
  • pricing
  • Contact ↗ (opens in a new tab)
  • RemBase features
    • Cloud functions
    • Endpoints
    • Application values and secrets
    • Add Dependencies
  • SDKs
    • android-sdk
      • Initialize
    • flutter-sdk
      • Getting started
      • Initialize
      • Authentication
      • Call backend functions
        • Prerequisite
        • code snippet
      • Best Practices
    • ios-sdk
      • Initialize
    • web-sdk
      • Getting started
      • Initialize
      • Authentication
      • Call backend functions
      • Best Practices
  • Best Practices
    • Self Host
    • Testing
    • Web
      • Server Side Compatibility
  • Pricing
  • help
    • Context

On This Page

  • Prerequisite
  • code snippet
Question? Give us feedback → (opens in a new tab)Edit this page
SDKs
flutter-sdk
Call backend functions

Function Calls

Prerequisite

The app must be initialized see here and user must be logged in authenticate

code snippet

// Ensure app is initialized and user is authenticated before calling the function

final response = await RemBaseUser.callFunction(
    functionName, listOfArguments, context);
 
response
    .onSuccess((data) {
      // Use data in your app (e.g., update UI or store data)
    })
    .onError((error) {
      // Handle error (e.g., show error message to the user)
    });
AuthenticationBest Practices

MIT 2025 © Nextra.