Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

There are a few potential reasons why communication from child to parent is being obstructed in your cordova iframe. Here are a few things to check:

  1. Make sure that both the parent and child windows are on the same domain. If they are on different domains, then communication between them will not work due to cross-domain security restrictions.
  2. Check whether the child window is being loaded with the correct cordova.js file. If the cordova.js file is not properly loaded in the child window, then communication may fail.
  3. Verify that the necessary plugins are properly installed and configured in your cordova app. Depending on what you are trying to do with the iframe, you may need to install specific cordova plugins to enable communication between parent and child windows.
  4. Try using postMessage() to communicate between the parent and child windows. This method allows for secure cross-domain communication as long as both parties agree on a message format and security checks are in place.

If none of these solutions fix the issue, you may want to try reaching out to the cordova community or seeking assistance from a developer with expertise in cordova and iframe communication.