You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the Intercom JavaScript SDK, it is possible to pass additional properties to the boot method, not just the appId, as is currently done in intercom_flutter_web. This could allow developers to initialize Intercom with more user-specific data.
For reference, here’s an example of how the boot method can accept additional properties:
Would it be possible to add support for passing additional properties to the boot method? While I know it’s possible to inject these properties using window.intercomSettings, I’d prefer to handle this within Flutter for consistency.
The text was updated successfully, but these errors were encountered:
You can use the updateUser API to pass the additional data and custom attributes.
Yes, I’m aware of the updateUser option. However, in our use case, some data is already available during the application's bootstrap, so it would be beneficial to submit this information directly during the initialization of Intercom. This would avoid an additional ping request to Intercom, making the initialization more efficient.
I’ve tried calling updateUser immediately after awaiting the initialize method, but unfortunately, the updateUser call does not seem to send a ping request in that case. I'm still investigating the cause—it could be due to Intercom not being fully initialized at that point, or perhaps the call is being debounced.
Would you be open to a PR that adds this functionality, allowing properties to be passed during the initial boot as described in the feature request?
If we allow passing some additional data only from the web during the initialization then it will be inconsistent with other platforms (Android and iOS). So I don't recommend this.
The ideal way is to chain the updateUser call after the initialize.
If we allow passing some additional data only from the web during the initialization then it will be inconsistent with other platforms (Android and iOS). So I don't recommend this.
The ideal way is to chain the updateUser call after the initialize.
Thanks for your answer. I understand. I'll try to debug why the immediate updateUser does not fire.
Description
In the Intercom JavaScript SDK, it is possible to pass additional properties to the
boot
method, not just theappId
, as is currently done inintercom_flutter_web
. This could allow developers to initialize Intercom with more user-specific data.For reference, here’s an example of how the
boot
method can accept additional properties:Source: Intercom SDK Documentation:
boot
MethodCurrently, the
intercom_flutter_web
package only passes theappId
during boot, as shown here:intercom_flutter/intercom_flutter_web/lib/intercom_flutter_web.dart
Lines 62 to 66 in 6e332b7
Feature Request
Would it be possible to add support for passing additional properties to the
boot
method? While I know it’s possible to inject these properties usingwindow.intercomSettings
, I’d prefer to handle this within Flutter for consistency.The text was updated successfully, but these errors were encountered: