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

customer name is null until the user type something #15

Open
feraswfares opened this issue Sep 27, 2022 · 0 comments
Open

customer name is null until the user type something #15

feraswfares opened this issue Sep 27, 2022 · 0 comments

Comments

@feraswfares
Copy link

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();

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant