This method is used to log in to the HurreeSDK.

We recommend this method is called in the GCMRegistration service - where users get the GCM token from the GCM server - as it will update the login time and updated details on the server.

Method Signature

void sendLoginDetails(CallBack callBack)

To add the method

  1. Open your project.
  2. Open app > src > main > java > package name > MyGCMRegistrationService.
  3. Add the method code: Method Code


These are the arguments that define the method.

Name Type Mandatory Description
CallBack Class Mandatory CallBack is a promise to the caller who initiated that method, to get an event after that task gets completed.

Sample Code

Analytics.getInstance(this).sendLoginDetails(new CallBack() {
    public void onSuccess(String response) {
        // Action when call successful

    public void onFailure(String error) {
        // Action when call fails

results matching ""

    No results matching ""