I got this working now. I had to add a call to subscribe. For those facing similar issues in the future here is the necessary code to add.
queue.subscribe({
queueIds: [{
type: ININ.Addins.IC.Queues.queueTypes.system,
name: ININ.Addins.IC.sessionInfo.userId
}],
attributeNames: [
"CUSTOM_ATTRIBUTE",
ININ.Addins.IC.Interactions.attributeNames.interactionType
]
});
------------------------------
Jonathan Knop
Senior Market Sales, Inc.
------------------------------
Original Message:
Sent: 05-01-2019 10:09
From: Jonathan Knop
Subject: Watching a Queue for Interactions Example Code not working
Using Interaction Connect Add-ins, I am trying to get the Queue listen example to work. Below is my main.js code. The ININ.Addins.version and ININ.Addins.environmentType console.log calls are working. However when I place a call from my cell phone to my dev phone, the interactionAdded is not being fired. Am I doing something wrong. . I have attached my main.js file.
#Unsure/Other #InteractionConnectAdd-ins
------------------------------
Jonathan Knop
Senior Market Sales, Inc.
------------------------------