Skip to content
This repository was archived by the owner on May 1, 2023. It is now read-only.
This repository was archived by the owner on May 1, 2023. It is now read-only.

customer name is null until the user type something  #15

@feraswfares

Description

@feraswfares

i have two problem

  1. how to hide the Powered by freshworks word

  2. first time i open the chat the user name will be null like below

MicrosoftTeams-image (33)

when the user type anything
the chat will update with the user name

MicrosoftTeams-image (32)

initial fresh chat 

      var freshchatUser = new FreshchatUser();
      freshchatUser.firstName = dataUser.firstName;
      freshchatUser.lastName = dataUser.lastName;
      freshchatUser.email = dataUser.email;
      freshchatUser.phoneCountryCode = '+966';
      freshchatUser.phone = dataUser.mobile;
      Freshchat.setUser(freshchatUser, (error) => {});

      Freshchat.setUserProperties(
        {
          user_type: userInfo['ChatType'].toString().toLowerCase(),
          plan: userInfo['ChatType'].toString().toLowerCase(),
          client_type: userInfo['ChatType'].toString().toLowerCase(),
        },
        (error) => {},
      );


    freshChatConfig = new FreshchatConfig(
      freshdeskAppKey.appid,
      freshdeskAppKey.appkey,
    );

    freshChatConfig.cameraCaptureEnabled = false;
    freshChatConfig.domain = freshdeskAppKey.appdomain;
    Freshchat.init(freshChatConfig);
show chat 

  Freshchat.showConversations();

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions