Ask Your Question
4

The cordova iframe functions properly, however communication from child to parent is obstructed.

asked 2023-05-30 11:31:35 +0000

nofretete gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2023-05-30 11:33:02 +0000

woof gravatar image

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.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2023-05-30 11:31:35 +0000

Seen: 9 times

Last updated: May 30 '23