This reference app provides an example of how to use the Lithium Community Android SDK. This README assumes that you have Android Studio installed and a working Community instance.
-
Clone li-android-sdk-example.
-
Sign in to your Community and go to Community Admin > System > API Apps.
-
Create an app key and secret for your Community integration app following the steps in the Get Authorization Credentials section of Getting Started with the Community Android SDK.
-
In Android Studio, go to the li-android-sdk-exampe project.
-
Add your credentials and the Community URL to
strings.xml
.<string name="clientId">PLACE YOUR COMMUNITY CLIENT ID HERE</string> <string name="clientSecret">PLACE YOUR COMMUNITY CLIENT SECRET HERE</string> <string name="communityURL">PLACE YOUR COMMUNITY URL HERE</string> <string name="communityTenantId">PLACE COMMUNITY TENANT ID HERE</string> <string name="apiProxyHostname">PLACE API PROXY HOSTNAME HERE</string>
-
If using push notifications, follow the instructions in Connecting Firebase Cloud Messaging to add your push notification server key to Community Admin.
-
In Android Studio, click Run.
Except as otherwise noted, the Community Android SDK and the Lithium Community Reference app are licensed under the Apache 2.0 License.
Copyright 2017 Lithium Technologies
Visit the Developers Discussion forum on the Lithium Community to ask questions and talk with other members of the Lithium Developer community.