Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Having an issue #38

Open
bryanu opened this issue Jul 29, 2020 · 1 comment
Open

Having an issue #38

bryanu opened this issue Jul 29, 2020 · 1 comment

Comments

@bryanu
Copy link

bryanu commented Jul 29, 2020

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

@dhemutton
Copy link

@bryanu Hi, so sorry but I'm having trouble too...may I know how you got your message from parent to child? When I console.log my parent.getAllTabs() i get a response of all children tabs but child.getTabInfo() gives me null for some reason.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants