Docs Menu

Docs HomeRealm

Connect to an Atlas App Services backend - Swift SDK

On this page

  • Overview
  • Access the App Client
  • Configuration

The App client is the interface to the App Services backend. It provides access to the authentication functionality, functions, and sync management.

Pass the App ID for your App, which you can find in the App Services UI.

let app = App(id: YOUR_APP_SERVICES_APP_ID) // replace YOUR_APP_SERVICES_APP_ID with your App ID

You can pass a configuration object to App:

let configuration = AppConfiguration(
baseURL: "https://realm.mongodb.com", // Custom base URL
transport: nil, // Custom RLMNetworkTransportProtocol
localAppName: "My App",
localAppVersion: "3.14.159",
defaultRequestTimeoutMS: 30000
)
let app = App(id: "my-app-services-app-id", configuration: configuration)
←  Application Services - Swift SDKCall a Function - Swift SDK →
Share Feedback
© 2023 MongoDB, Inc.

About

  • Careers
  • Investor Relations
  • Legal Notices
  • Privacy Notices
  • Security Information
  • Trust Center
© 2023 MongoDB, Inc.