简体   繁体   English

我们可以将混合应用程序与本机iOS应用程序合并吗?

[英]Can we merge Hybrid app with Native iOS App?

I have one Hybrid app(build on Phonegap) and one iOS App. 我有一个混合应用程序(基于Phonegap构建)和一个iOS应用程序。 The requirement is to merge both app into single app. 要求是将两个应用程序合并为单个应用程序。 some functionality drive from native and some through hybrid, is it possible? 从本地驱动某些功能,通过混合驱动某些功能,这可能吗?

Yes, it's possible. 是的,有可能。 You can embed the phonegap webview in any native app, but as you already have the phonegap app created I recommend you to add the iOS app inside the phonegap app as if you do so, you don't have to manually add and configure phonegap in your native app. 您可以在任何本机应用程序中嵌入phonegap Webview,但是由于已经创建了phonegap应用程序,因此我建议您将iOS应用程序添加到phonegap应用程序中,就像这样做一样,您不必手动在其中添加和配置phonegap您的本机应用程序。

You'll need a native tabbar controller or something like that to switch between the native view/viewcontroller and the phonegap view/viewcontroller 您将需要一个本机的Tabbar控制器或类似的控件在本机的View / ViewController和PhoneGap View / ViewController之间切换

Here you can find the information about phonegap as a component (embeding phonegap webview, also called cleaver) , but I couldn't make it work to add phonegap plugins since phonegap 3.0, that's why I recommended you to start from the phonegap app instead embedding the phonegap webview in your native app 在这里,您可以找到有关phonegap作为组件的信息(嵌入phonegap Webview,也称为cleaver) ,但是自phonegap 3.0起,我无法使其添加phonegap插件,这就是为什么我建议您从phonegap应用程序开始而不是嵌入的原因本机应用程序中的phonegap Webview

是的 ,您可以将可可本机应用程序添加为PhoneGap中的插件,然后使用配置文件对其进行配置。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM