Android SDK¶
The PlingBuddy Android SDK registers your app's devices with PlingBuddy, keeps them in sync, shows the service's push notifications, and reports what happens to them. It's written in Kotlin, uses Firebase Cloud Messaging (FCM), and works from Java too.
It needs Android 7.0 (API 24) or later.
Before you install it, create your app's application in the PlingBuddy dashboard and add its Firebase connection; Getting started walks through it.
Install¶
The SDK isn't published yet, so the app builds it from a checkout of the plingbuddy-sdks repository. Include its android/ directory as a composite build and depend on dk.zaur:plingbuddy-android:
Kotlin
// settings.gradle.kts
includeBuild("path/to/plingbuddy-sdks/android")
// app/build.gradle.kts
dependencies {
implementation("dk.zaur:plingbuddy-android")
}
The SDK's manifest declares INTERNET and POST_NOTIFICATIONS, so the app needs no permission entries of its own.
Next steps¶
- Setup: Firebase, starting the SDK and asking for permission.
- Users and data: signing users in and out, and the data you can send about them.
- Notifications: how the SDK shows notifications, and the channel, icon and colour.
- Privacy: what the SDK collects, for your Google Play Data safety form.