Connecting to your backend

After following the steps, your app has all the required elements to connect to the server. We will write code to connect the client app to the server now. You will see the concise, well-written Kotlin code doing its magic. 

AndroidManifest.xml must contain the following two permissions:

<uses-permission android:name="android.permission.INTERNET" /><uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />

Your build.gradle app-level should contain the following dependencies. You might see some library versions not matching exactly. It depends on the SDK level that you have selected. It's advised to select the latest API level:

dependencies {    // Mobile Client for initialising the SDK    implementation( ...

Get Hands-On Serverless Applications with Kotlin now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.