intercom_flutter icon indicating copy to clipboard operation
intercom_flutter copied to clipboard

PlatformException(0, The operation couldn’t be completed.)

Open Flutter-Devl opened this issue 2 years ago • 10 comments

PlatformException(0, The operation couldn’t be completed.)

Flutter-Devl avatar Jul 07 '23 14:07 Flutter-Devl

@Flutter-Devl Please share the code which is giving you this exception.

deepak786 avatar Jul 07 '23 17:07 deepak786

Intercom.instance.loginIdentifiedUser(userId: userId); Intercom.instance.updateUser(userId: userId); these 2 functions gives this error

Flutter-Devl avatar Jul 07 '23 17:07 Flutter-Devl

@Flutter-Devl On which platform do you have this issue?

deepak786 avatar Jul 12 '23 18:07 deepak786

on IOS devices

Flutter-Devl avatar Jul 13 '23 13:07 Flutter-Devl

Can you share the reproducible sample?

deepak786 avatar Jul 13 '23 15:07 deepak786

if (isLogin) await Intercom.instance.loginIdentifiedUser(userId: userId); await Intercom.instance.updateUser(userId: userId, phone: phone, name: name, customAttributes: customAttributes);

using this code without even login it shows error anywhere in app

Flutter-Devl avatar Jul 14 '23 05:07 Flutter-Devl

@Flutter-Devl You can't update the user without login first. From the above code, you are just updating the user if isLogin is false. So in this case, there is no user session, and the update API is giving the error.

That's what I understood.

deepak786 avatar Jul 14 '23 08:07 deepak786

even when i login it still gives error also only open app this error appeared without login

Flutter-Devl avatar Jul 14 '23 09:07 Flutter-Devl

@Flutter-Devl I need the working sample to analyze this issue. So please share the reproducible sample.

deepak786 avatar Jul 14 '23 09:07 deepak786

same implementation for android but it only appear in IOS no specific flow which cause this error randomly produce this error anywhere in app

Flutter-Devl avatar Jul 14 '23 12:07 Flutter-Devl