Having an issue
bryanu opened this issue · comments
I have been able to get the 2 tabs to communicate from Parent to Child, but using child.sendMessageToParent("Hey Parent- Done with my work."), is never received by the parent.
I can send a message from the Parent to the Child using: parent.broadCastTo(tab, 'Yo! Message from parent!!'); and parent.broadCastAll('Yo! Broadcasted Message from parent to ALL!');
I can also detect when the Child tab is closed, but using the following, I never get a message from the Child:
var config = {
// onPollingCallback : function (c) { console.log("called: onPollingCallback", c); },
removeClosedTabs : true,
onHandshakeCallback : function (h) { console.log("called: onHandshakeCallback", h); },
onChildDisconnect: function (m) { console.log("called: onChildDisconnect", m); },
onChildCommunication: function () { console.log("called: onChildCommunication"); },
}
Any suggestions?
Bryan