Skip to content

chat connection ends if i have users set on the chat initialization #113

Open
@ijuliie

Description

@ijuliie

Screenshot 2021-05-05 at 10 49 03 AM

const chatSupport = () => {
    Auth.currentAuthenticatedUser().then((user) => {
        ZendeskChat.startChat({
            name: user.attributes.given_name,
            email: user.attributes.email,
            number: "",
            tags: [],
            // The behaviorFlags are optional, and each default to 'true' if omitted
            behaviorFlags: {
                showAgentAvailability: true,
                showChatTranscriptPrompt: true,
                showPreChatForm: false,
                showOfflineForm: true,
            },
            // The preChatFormOptions are optional & each defaults to "optional" if omitted
            preChatFormOptions: {
                name:  "optional",
                email: "required",
                number: "required"
            },
            localizedDismissButtonTitle: "Dismiss",
        })
    })
}

the chat connections end when zendesk agents are offline and i have the end users set. after that last reply from the bot, nothing happens but i still end up getting the messages in zendesk. this is only happening in IOS and seems like a bad user experience. can someone please help? thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    upstream-issueIssue is caused by bugs or behavior differences in Zendesk Libraries - Please report to them!

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions