Shipping
Your server address
Builds point at your server in full, over HTTPS: Android refuses plain HTTP from API 28. While you develop, the emulator reaches your computer at 10.0.2.2 (or at localhost after adb reverse tcp:3000 tcp:3000). Allow it in a network security config for debug builds only:
<!-- res/xml/network_security_config.xml, named by android:networkSecurityConfig in a debug manifest -->
<network-security-config>
<domain-config cleartextTrafficPermitted="true">
<domain includeSubdomains="false">10.0.2.2</domain>
<domain includeSubdomains="false">localhost</domain>
</domain-config>
</network-security-config>
Your app in WordPlus Cloud needs no address for the app: a native app is let in by itself. The key and secret stay on your server. The app gets what it needs from your server config() at sign-in.
Permissions
The library manifests declare what they use, and Gradle merges them into the manifest of your app:
| Library | Permissions |
|---|---|
realtime | INTERNET (yours to declare: a plain Kotlin library has no manifest) |
realtime-calls | INTERNET, ACCESS_NETWORK_STATE, ACCESS_WIFI_STATE, RECORD_AUDIO, CAMERA, MODIFY_AUDIO_SETTINGS, and for SystemCalls MANAGE_OWN_CALLS, POST_NOTIFICATIONS, USE_FULL_SCREEN_INTENT, WAKE_LOCK, FOREGROUND_SERVICE with its PHONE_CALL, MICROPHONE, CAMERA and MEDIA_PROJECTION types, the foreground services of a call and of a shared screen, the receiver of Decline and Hang up, and the ring screen |
realtime-ui | the call screen activity, which shows on the lock screen and supports picture in picture |
RECORD_AUDIO and CAMERA are asked for at run time: the call screen asks when a call is answered, and an app of its own screens asks before a call (calls). POST_NOTIFICATIONS too, from Android 13: without it a call rings only with the app open. The emulator camera is a test pattern: try video calls on a device.
In the background
- Rooms: Android may stop the app network soon after it leaves the screen, and ends its process when it needs the memory. Coming back, the SDK connects again and each room gets what it missed from its history, so nothing your rooms keep is lost.
- A call going on stays on while its screen is in picture in picture. With
SystemCallsstarted, it goes on with the app off the screen too: the SDK runs a foreground service of thephoneCalltype while a call is on. WithoutSystemCalls, run one of your own, of typemicrophone(andcamerafor video), withFOREGROUND_SERVICE_MICROPHONEandFOREGROUND_SERVICE_CAMERAfrom Android 14. - Calls ring a closed app with
SystemCalls, through a high-priority Firebase message (below).