SDK Installation
Android Native

Get Started for Android

8min

Cooee's Android SDK enables app developers to track and retain their customers with template-less in-apps. This guide will walk you through the easy steps of installing the Cooee SDK, configuring it, and verifying the data within Cooee's dashboard while you finish your coffee.

Configure Repository

This step is not required for v1.4.1 and above.

If you use an older Gradle (<v7.0), add the below maven link to your project-level build.gradle file.

Groovy


For the newer version, add below to settings.gradle file-

Groovy


Install Dependency

Update your app-level build.gradle with the following changes to install the Cooee SDK.

Groovy


Replace x.y.z with the latest release of the SDK

Document image


Configure Credentials

Add the following in AndroidManifest.xml inside the application tag:

XML


Replace MY_COOEE_APP_ID with the App ID which is present at Cooee Portal.

Permissions Setup (Optional)

Cooee SDK supports prompting the following permissions via engagement. To make it work, you need to add the following to the app's AndroidManifest.xml file:

XML


Initialize the Cooee SDK

In the onCreate() method of your application’s main activity, add the below line. This will initialize the Cooee SDK.

Java
Kotlin


Android 13 and above needs permission to be granted to Post a Notification. You will need to add the below code once you initialize CooeeSDK.

Java
Kotlin