-
Notifications
You must be signed in to change notification settings - Fork 68
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
Mobile extensions #59
Comments
This is a very interesting feature. At the moment I'm trying to load a native extension from the node server side of my application. Is this the right approach to do this?
(where the trigger does something like cordova.exec(...);)
(after this step I move to another index.html, that is served by express.js:
But this snippet doesn't work, because it seems, that cordova.js isn't present, after I get on to another page. Do you have Any Idea, how to fix this? |
That |
Hi, there is'nt any initalization logic in the backend/index.html, because it is served by express.js. I can't reach cordova.js, which is located in my www directory. The Express.js is serving only www/jx/client/ directory. I tried to reach window.cordova, but it's undefined. But I can reach this._cordovaNative. Does this help at all? Thx for your help! |
@tillmannheigel The reason is probably cross-domain security (or same-origin policy) between the two windows. The There may be available workarounds though. You may try to implement Cross-window messaging with postMessage. Probably the logic would be: window B sends postMessage to window A, and from there you may call |
We need an interface triggered by JXcore JavaScript to set the details for native extensions used by mobile application.
This item is under development and the expected usage is as shared below;
class (String): Name of the class
method_name (String): sub method name
options: (Object) list of platform specific options
Important: This will be a breaking change for the applications using their own extension.
The text was updated successfully, but these errors were encountered: