Adding a Worklight app to an already existing Native app
-
03-07-2021 - |
Вопрос
First of all, I want to know if it is indeed possible to embed a Worklight application into an already existing Native app. I know that you can add a webview and feed content to a native app from the web, but how would I do that from a Worklight app? Is it possible? Are there any examples of such? I'm racking my brain and to be honest, I have no idea!
Thanks!
Решение
If I understand you correctly, you already have a native app and want to add WL hybrid (WebView) container to it, right?
I don't think it's an out-of-the-box option.
The work around that comes to mind is to :
- Create blank WL app using WL studio
- Add, let's say, Android environment
- Build the app to get native project
- Copy worklight.jar, cordova.jar, assets and main activity class to your native app
- Open WL activity from #4 when you want it
I didn't test it, but it might work:)
Не связан с StackOverflow