Page History
Last Updated:
Lastupdatedate |
---|
Livesearch | ||||
---|---|---|---|---|
|
This is an Android SDK for handling push integration with the Vibes Platform APIs.
The compiled Android repository SDK is available on the Vibes GitHub Repository.
Note |
---|
Note: You can reference the Android SDK code here. |
Table of Contents |
---|
Installing the Android SDK
Click Add Firebase and follow the instructions on the Firebase website. This will include setting up the Google Services plugin and downloading the
google-services.json
into your App folder.Click Add Firebase Cloud Messaging and follow the instructions. This will include adding two services to your app to handle app token refresh and incoming push notifications.
Add the Vibes SDK by doing the following:
Add the following to your project-level
build.gradle
file:Code Block maven { url url "https://raw.githubusercontent.com/vibes/android-sdk-repository/releases/" }
Add the following to your app-level
build.gradle
file:Code Block dependencies { // other dependencies here implementation compile "com.vibes.vibes:vibes:14.4.+3" }
- Sync your project in Android Studio.
Configuring Multiple Environments
Build Variants
To support a separate test build from your production build in android, we recommend creating build variants for your different environments. Follow this documentation to learn more and configure build variants.
Once you have the build variants created, you can edit your build.gradle file to include your global constants for Vibes app ID and Vibes API URL.
Panel | ||
---|---|---|
| ||
FCM Setup
Vibes uses Firebase Cloud Messaging (FCM) as the push transport method for Android devices that have access to the Google Play store.
CreatingFCM Server Key
- Log in to the Firebase console.
- Either create a new project or open an existing project that you want to configure with Vibes.
In the left side menu, click on the gear icon and select Project settings.
Panel borderWidth 0 Select Cloud Messaging tab from the the top of the screen, then copy the Server keywhich you will provide to Vibes for configuration of your application. You may also add a new server key if it is not automatically created for you or if you wish to use a different one.
Panel