Questions tagged [intercom.js]

Intercom.js is a client-side library that allows one window to broadcast messages to all other open windows / tabs. A socket.io binding is built in—which allows a single socket connection to painlessly propagate messages to all windows. Useful for chat services, notifications, and more.

Intercom.js is a client-side library that allows one window to broadcast messages to all other open windows / tabs. A socket.io binding is built in—which allows a single socket connection to painlessly propagate messages to all windows. Useful for chat services, notifications, and more.

With the socket.io binding it's easy set up the socket connection to broadcast messages it receives to all open windows. It's also effortless to send messages over a single active socket from any open window.

Here are the method used in intercom:

  • emit(name, message): Broadcasts a message to all open windows (including the current window).
  • .on(name, fn): Sets up a listener to be invoked when a message with the given name is received.
  • .once(key, fn, [ttl]): Given a unique unique key to represent the function, fn will be invoked in only one window. The ttl argument represents the number of seconds before the function can be called again.
  • Intercom.destroy(): Removes all data associated with intercom from localStorage.
  • Intercom.getInstance(): Returns an instance of Intercom. If one doesn't exist, it will be instantiated.

Here is the library for the intercom.js.

18 questions
7
votes
3 answers

Sending message on Intercom on user's behalf

does anyone know how to send a message from intercom(https://www.intercom.com/) on user's behalf? I need to set up an event listener that opens intercom chat window and sends a message when a some button is clicked. i am working with react version…
Petro
  • 327
  • 3
  • 17
4
votes
1 answer

Unable to create/send REGISTER: Object is busy (PJSIP_EBUSY)

I'm implementing one calling service which is called TWILIO. By using TWILIO we can make calls, get incoming calls, SMS etc. It has its own SDK which is available on Twilio.com. In SDK, they have their own code for making outgoing calls or incoming…
Anshul Tyagi
  • 446
  • 3
  • 24
4
votes
1 answer

Send Intercom Message every time an event occurs?

Hi im trying to send messages through intercom every time an event is sent. Let's say i have a feature in my product which is submitting intercom events every time the user clicks a certain tab. I would like to send a message on every occur of the…
Poncho1984
  • 225
  • 1
  • 2
  • 7
3
votes
1 answer

Is it possible to place the Intercom Messenger in the bottom left?

By default the Intercom Messenger appears at the bottom right of the page. How do I configure it to sit on the bottom left instead?
Elliot Chance
  • 5,526
  • 10
  • 49
  • 80
2
votes
0 answers

Can I inject intercom.io using a chrome extension?

I can't seem to inject it through a normal injection. The code is the standard script of intercom put in an src/inject/inject.js file Here is my manifest file { "name": "CHANGE THIS : Extension boilerplate", "version": "0.0.1", …
2
votes
1 answer

Enable Intercom push notifications in a Meteor web app

We use Intercom in our Meteor app. We only call Intercom in Javascript like Intercom('boot') for instance (as described in their documentation for single page web apps). This all works fine so far, except the push notifications. The documentation…
Bart S
  • 1,698
  • 1
  • 16
  • 21
1
vote
0 answers

"ng-intercom" does not trigger with custom widget and no errors in console

I'm facing the same issue with ng-intercom: v8.0.2 Angular v12.1 Code inside Component ngOnInit() this.intercom.boot({ app_id: "alphanumeric_code", custom_launcher_selector: "#btnSelector", widget: { …
shubu
  • 11
  • 1
1
vote
1 answer

Use of undeclared identifier 'Intercom' in AppDelegate.m - react-native-intercom

I am using react-native-intercom to manage Intercom in my app. I have installed the Intercom iOS SDK using CocoaPods, and linked the react-native-intercom. But Build failed with error Use of undeclared identifier 'Intercom' in AppDelegate.m -…
Kumar
  • 436
  • 1
  • 4
  • 16
1
vote
1 answer

Uploading image with Intercom API

I am trying to send an image to Intercom using the user reply API. User Reply API doc There is an option to provide the image urls as attachments to the user reply, but is there a method to upload an image from the file system directly as an…
1
vote
2 answers

Communication between browser tabs: page titles must be updated synchronously for all browser tabs

what i have: page title is updating dynamically when new data is retrieving from ajax call; if tab with this page is visited - title is set to default value; if i open the second tab with this page, title of this tab is set to default (i must fix…
ivan_ochc
  • 392
  • 5
  • 22
1
vote
1 answer

trigger function on separate window using intercom.js

When trying to use intercom.js I can print what my message is to the log in line 21 of the index file intercom.on('notice', function (data) { console.log(data); $messages.append($('

').text(data.message)); document.title = '(' +…

1252748
  • 14,597
  • 32
  • 109
  • 229
0
votes
1 answer

Implementing intercom using angular 10

I am working on angular 10 application I want to implement intercom in my application. There is nothing in the console and I have installed ng-intercom for it but its not working. No widget appear on my screen there is nothing in iframe as well.…
0
votes
1 answer

How to create events for a visitor that is already an intercom user?

We use both intercom web library and intercom-java sdk to send events as some events can be sent from client side, but some need to be sent from server side. Here is how we send server side events: When the visitor triggers some action, say a…
Liang Zhou
  • 2,055
  • 19
  • 20
0
votes
1 answer

Intercom API CURL Getting error "code":"400","message":"User email, user_id or anonymous_id must be supplied"

I want to update custom_attributes of Intercom through PHP CURL. I am passing user_id and email as parameter still getting this error. {"code":"400","message":"User email, user_id or anonymous_id must be supplied"} try { $postData…
Avinash Kesari
  • 173
  • 1
  • 7
0
votes
1 answer

Intercommunication between nodejs processes

I'm working with two independent nodejs processes, the first one is an server over TCP, and the second is an express app that listen for HTTP requests. My problem is how can i handle the communication between those two processes?
Hakraf
  • 39
  • 1
  • 6
1
2