Android SDK
Instructions to set up Appflow.ai SDK for your Android app
Last updated
Instructions to set up Appflow.ai SDK for your Android app
Last updated
Warning!
Please note! We will be not able to receive and show your data without this step!
To connect your Android app to Appflow.ai console you need to follow 3 steps during onboarding or using Settings=>Applications=>New Application
First step is to download app token. Download and put it into the assets folder.
Second step is Install SDK. Install via Gradle
a. If your project doesn't have dependencyResolutionManagement in your settings.gradle, add the following to your top-level build.gradle at the end of repositories:
Otherwise add the following to your settings.gradle in repositories of dependencyResolutionManagement section:
b. add the dependency to your module-level build.gradle at the end of dependencies
3. The step 3 is the most important - Initialize SDK
Add configuration file
Download the appflow-app-token.json file in the dash.appflow.ai and add the file to the app\src\main\assets folder of the project
Initialize
Add the following to your Application class
If you want to know if the SDK is initialized, you can do the following
Set user id (optional)
You can set the user id in the following way
Enable SDK log (optional)
You can enable SDK log output before initializing the SDK
Please, also follow the next step - adding keys for the RTDN access
Can't find topic name?
Make sure you switched on Google Pub/Sub for your project
Find the Settings tab on your project.
Click on "Stores"
Then click "Connect to Google" in Google Developer Notification settings.