https://github.com/messagebird/android-sdk
Android SDK repository.
https://github.com/messagebird/android-sdk
Last synced: 5 months ago
JSON representation
Android SDK repository.
- Host: GitHub
- URL: https://github.com/messagebird/android-sdk
- Owner: messagebird
- Created: 2024-01-17T09:18:26.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-07-31T07:50:29.000Z (almost 2 years ago)
- Last Synced: 2024-07-31T09:08:08.903Z (almost 2 years ago)
- Size: 111 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Bird Android SDK
Bird Android SDK is a single integration point to bring the power of BirdCRM in building connected user experience to your application.
Using Bird Android SDK, you get access to:
- Collect Contacts
- Send Push Notifications
- Event Tracking
## How to
You can find full documentation [here](https://docs.bird.com/api/client-sdks/sdk-integration/android-sdk).
### Step 1: Add Bird Android SDK dependency
Add the `com.bird:android-sdk` dependency to your app’s `build.gradle`.
```gradle
dependencies {
implementation("com.bird:android-sdk:+")
}
```
Make sure to run Gradle Sync to build your project using the newly added dependency.
### Step 2: Set Application Key
Add a new string to your app's `strings.xml` with the name `com_bird_application_key`. You can get the value of this application key from **Bird Dashboard / Preferences / Applications**.
```xml
YOUR_APPLICATION_KEY
```
### Step 3: Add permissions
No additional permissions need to be set in AndroindManifest.xml. The user will be asked to give Push Notification permissions in runtime."
### Step 4: Push Notifications
#### Firebase
**Add Firebase credentials file**
Get `google-service.json` file from your Firebase project and add it to your android application. See more information here
And add the `com.google.gms.google-services` plugin to both your top-level build.gradle and your app’s build.gradle.
```gradle
// Inside the top-level build.gradle
plugins {
id("com.google.gms.google-services") version "4.4.0" apply false
}
```
```gradle
// Inside app's build.gradle
plugins {
id("com.google.gms.google-services")
}
```
Make sure to run Gradle Sync to build your project using the newly added plugin.
**Add BirdFirebaseMessagingService**
Add the following `com.bird.BirdFirebaseMessagingService` as a service inside `AndroindManifest.xml`.
```xml
```
## Examples:
- [Push Notifications](/examples/pushnotifications/)