Docs Menu

Connect to an Atlas App Services backend - Kotlin SDK

On this page

  • Access the App
  • Configuration

The App class is the interface to App Services. This class provides access to authentication and Atlas Device Sync.

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

val app = App.create(YOUR_APP_ID)

You can create multiple App instances to connect to multiple Apps or to the same App with different configurations. All App instances that share the same App ID use the same underlying connection.

For more granular control of the details of your app connection, such as custom timeouts for connections and keys for local encryption, use the AppConfiguration.Builder to control details of your App:


For most use cases, you only need your application's App ID to connect to Realm. The other settings demonstrated here are optional.

←  Application Services Overview - Kotlin SDKRegister Users - Kotlin SDK →
Give Feedback
© 2022 MongoDB, Inc.


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