initialize changes for analytics
This commit is contained in:
Родитель
c3e50ee843
Коммит
2662f2667e
|
@ -24,14 +24,13 @@ public class LoopHelloApplication extends Application implements ILoopSDKCallbac
|
||||||
editor.putString(LOOP_SDK_STATE, "uninitialized");
|
editor.putString(LOOP_SDK_STATE, "uninitialized");
|
||||||
editor.apply();
|
editor.apply();
|
||||||
|
|
||||||
// initialize the Loop SDK. create an account to get your appId and appToken
|
// create an account to get your appId and appToken
|
||||||
String appId = "YOUR_APP_ID";
|
String appId = "YOUR_APP_ID";
|
||||||
String appToken = "YOUR_APP_TOKEN";
|
String appToken = "YOUR_APP_TOKEN";
|
||||||
|
|
||||||
String userId = "YOUR_USER_ID";
|
// initialize the Loop SDK with your appId and appToken
|
||||||
String deviceId = "YOUR_DEVICE_ID";
|
// the last param enables location analytics
|
||||||
|
LoopSDK.initialize(getApplicationContext(), appId, appToken, true);
|
||||||
LoopSDK.initialize(this, appId, appToken, userId, deviceId);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// called by the Loop SDK on successful initialization
|
// called by the Loop SDK on successful initialization
|
||||||
|
|
Загрузка…
Ссылка в новой задаче