This articles explains how to use the Offline Token to access the EloViewHome SDK in EloView 3
In order to use the EloViewHome SDK with your Android application, an offline token is required. If you do not have an offline token, please contact the Elo Support team (support@elotouch.com) and include your application's Package name. Based on the package name provided, we will generate a properties file for you containing the token.
To use the offline token, please refer to the Test App (with source code) provided with the SDK. Specifically, review the AccountManagerActivity.java in the SDK. In summary, to use the offline token, copy the token file into the assets folder of your application and use the code snippet below to read the token:
Properties credentials = new Properties();
try {
credentials.load(getApplicationContext().getAssets().open("com.eloview.homesdk.testapp_jwt.prop"));
} catch (Exception e) {
e.printStackTrace();
}
String accessToken = credentials.getProperty("jwt");
Please report any broken links by emailing support@elotouch.com and include a link to the knowledge article