techaffinity / freshchat-phonegap

Freshchat sdk for phonegap
7 stars 36 forks source link

IOS App Crash updateUser #16

Closed sudheerrepala closed 6 years ago

sudheerrepala commented 6 years ago

IOS App Silently crashes when we use window.Freshchat.updateUser or updateUserProperties.

techaffinity commented 6 years ago

Can you share me error log to identify this issue.

sudheerrepala commented 6 years ago

Hi There is no error at all. Find below the code i'm using

var userinfo='{"firstName" : "'+$rootScope.profilefname+'", "lastName" : "'+ $rootScope.profilelname+'", "email" : "'+ $rootScope.profileemail+'", "countryCode" : "91", "phoneNumber" : "'+$rootScope.profilemobile+'"}'; console.log(userinfo);

    window.Freshchat.updateUser(userinfo);

The console prints the correct JSON, also note that the same code works in Android without any issues. Also please let me know how we can load the previous conversation of the user...

sudheerrepala commented 6 years ago

Hi Did you get a chance to look in to this?

sudheerrepala commented 6 years ago

Hi, turns out the phoneNumber should be a String in ios... also i have forked the repo and made a little change in the ios file...

mfouadegy commented 4 years ago

same problem with me did you find solution ?