Realtime communication

If your app has a chat module (group, 1-on-1, video, audio, text), there’s a ton of useful data that you can attach automatically and would come in handy later when you try to debug the problem.

App.kt
val serverURL: String = getServerURL()
val user: User = getCurrentUser()
val phoneNumber: PhoneNumber = user.getPhoneNumber()
val isServerAvailable: Boolean = getServerStatus()
Shake.setMetadata("serverURL", serverURL);
Shake.setMetadata("phoneNumber", phoneNumber);
Shake.setMetadata("serverStatus", isServerAvailable);