Reputation: 1
Our Worklight project uses both hybrid and native screens.
Both work fine independently. Our problem pertains to Native screens calling/embedding the Worklight page.
The structure of the native screen is:
If we try to load the Worklight page in the native WebView, it fails to initialize and load the Worklight framework.
In the native WebView we use the following to call the Worklight page:
[webView loadHTMLString:@"worklight file html content" baseURL:[NSURL
URLWithString:@"Pathtoworklightwwwresoucefolder"]];
Please advise if this is possible in Worklight...
Upvotes: 0
Views: 541
Reputation: 44516
The Worklight framework is loaded into the Worklight-generated WebView and cannot be loaded into other WebViews.
In your case - it cannot be loaded into the native WebView you've created in the native page.
The subject of the question differs from its content, but to answer that as well:
If you are trying to invoke an adapter, you can simply do that - invoke the adapter using the Worklight-provided native API (pages 15-19). Parse the response and display it in your native WebView.
Upvotes: 1