Basic Setup
Before you can start communicating with Mitter using the SDK, it needs to be configured with your application ID and user auth token.
The best place to configure a global Mitter
object is inside your AppDelegate.swift
file.
Open up the AppDelegate
file and declare an instance field for the Mitter
object, like this:
After you’ve done that, locate the function with didFinishLaunchingWithOptions
signature and initialise your Mitter
object with your application and user details like this:
The user token is enough to help the SDK figure out the user ID. Therefore, you don’t need to explicitly add the user ID. You can get the application id and token from the mitter.io dashboard.
Using the SDK with containerised Mitter.io
If you're using the Mitter.io docker container, then you need to override the default API endpoint in the SDK, as follows:
Last updated