-
Notifications
You must be signed in to change notification settings - Fork 71
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
Send message from web containers to the parent app #66
Comments
WebView sending "Jason" to parent app, could probably trigger new view and same flow; Doing a data messaging back and forth would need a different approach. |
@copongcopong great point, I was thinking about just starting out with implementing actions. It's still just idea stage though. Trying to think of some critical use cases. |
I will be watching this issue, as I mentioned this is pretty useful for me - but I agree that use cases should be critical, will let you know if I know some very specific ones (too late at night to think about that right now :)). Checking out the other issues now to see if there is something that I can help out with over the weekend. |
This feature is coming soon. Just updating here with a bit of more info on how it's implemented so we can document it: This feature allows a web container to reach outside of its own sandbox and call its parent Jasonette native app's JASON actions, simply by calling:
from its javascript. You just need to pass the same action JSON as an argument. Here's an example:
Another example:
This is part 1 of the full IPC architecture as it addresses only the The part 2, which is the opposite direction (
Part 1 is already useful for many cases and it looks like Part 2 will take some time to figure out, which is why it's broken down into two parts. The part 2 will be a separate PR. |
Currently web containers are a one way thing. You cannot call a Jasonette action from inside web container, for example.
Making this two-way could be helpful.
The text was updated successfully, but these errors were encountered: