To use this function when you are integration just the Location SDK
/**
* Create empty customer with default policies.
*
* @param onSuccess - invoked if customer was created successfully
* @param onError - invoked if exception occurred
*
*/
@TargetApi(Build.VERSION_CODES.JELLY_BEAN_MR2)
public Future<CustomerCreateResponse> setupCustomer(Callback<CustomerCreateResponse> onSuccess, Callback<MobileSDKException> onError)
Calling this function It is equivalent to a make a login. The success of this function opens a session with the customer returned. To close the session use logout() method.