Skip to content
This repository has been archived by the owner on Jun 2, 2022. It is now read-only.

How to generate restoreId in flutter fresh chat(getting empty string)? #25

Closed
chaitanya-y opened this issue Feb 4, 2020 · 2 comments
Closed
Labels
duplicate This issue or pull request already exists

Comments

@chaitanya-y
Copy link

chaitanya-y commented Feb 4, 2020

I checked some issues online.someone mentioned that restoreId will get generated only after first was sent.I tried to call send message function and then did identify user .Still, I am getting restoreId as empty string.

  FreshchatUser user = FreshchatUser.initail();
  user.email = email;
  user.firstName = firstName;
  user.lastName = lastName;
  user.phoneCountryCode = '91';
  user.phone = phone;
  bool result = await FlutterFreshchat.updateUserInfo(user: user);
  bool sendMessageSuccess =await FlutterFreshchat.send(message: 'Hello',tag: 'test');
  if(sendMessageSuccess){
  freshChatId = await FlutterFreshchat.identifyUser(externalID: phone, restoreID: null);
  print('freshChatId');
   }

and
2)Is there any way to trigger an event on the click of back button in the flutter chat screen.

@chaitanya-y chaitanya-y changed the title How to generate restoreId in flutter fresh chat? How to generate restoreId in flutter fresh chat(getting empty string)? Feb 4, 2020
@fayeed
Copy link
Owner

fayeed commented Feb 10, 2020

@chaitanya-y I have not been able to reproduce this issue I don't know what the reason is, there is already an open issue #11 you can try there also if this package doesn't work for you there is also one more package freshchat Its a forked repository of this repository.

Also one more thing please don't spam other issues if you don't receive a reply.

@fayeed
Copy link
Owner

fayeed commented Feb 10, 2020

@chaitanya-y you can also check this issue

@fayeed fayeed added the duplicate This issue or pull request already exists label Feb 10, 2020
@fayeed fayeed closed this as completed May 15, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants