Posts

Showing posts with the label salesforce-service-cloud

Sales Force live agent status

Image
Clash Royale CLAN TAG #URR8PPP Sales Force live agent status I have implemented agent live availability according to documentation. Problem is according to documentation it would land in OnResult method but every time response is landed in OnCompleted method, where I am unable to retrieve agent status from async variable. Please Guide me if I am missing something or how to get live agent availability from OnCompleted . My code (called within HomeFragment) private void setupChatButton() { try { // Build a configuration object ChatConfiguration chatConfiguration = new ChatConfiguration.Builder(ORG_ID, BUTTON_ID, DEPLOYMENT_ID, LIVE_AGENT_POD) .build(); // Create an agent availability client AgentAvailabilityClient client = ChatCore.configureAgentAvailability(chatConfiguration); // Check agent availability client.check().onResult((a...