Get Started for Android
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.
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.
For the newer version, add below to settings.gradle file-
Update your app-level build.gradle with the following changes to install the Cooee SDK.
Replace x.y.z with the latest release of the SDK
Add the following in AndroidManifest.xml inside the application tag:
Replace MY_COOEE_APP_ID with the App ID which is present at Cooee Portal.
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:
In the onCreate() method of your application’s main activity, add the below line. This will initialize the Cooee SDK.
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.