intercom_flutter
intercom_flutter copied to clipboard
PlatformException(0, The operation couldn’t be completed.)
PlatformException(0, The operation couldn’t be completed.)
@Flutter-Devl Please share the code which is giving you this exception.
Intercom.instance.loginIdentifiedUser(userId: userId); Intercom.instance.updateUser(userId: userId); these 2 functions gives this error
@Flutter-Devl On which platform do you have this issue?
on IOS devices
Can you share the reproducible sample?
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 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.
even when i login it still gives error also only open app this error appeared without login
@Flutter-Devl I need the working sample to analyze this issue. So please share the reproducible sample.
same implementation for android but it only appear in IOS no specific flow which cause this error randomly produce this error anywhere in app