Ionic2 as front end, ios custom app without cordova as backend


#1

Is possible to create an app and then use Ionic2 just for front end, without the cordova wrapper?
I saw some discussion and examples around the web, but they don’t make clear how i can call Ionic2 from swift3, and vice-versa without it. My ideia is to use the “WebViewJavascriptBridge” (https://github.com/marcuswestin/WebViewJavascriptBridge) to build a simple bridge. I just need a way to navigate views passing data, or just update data on the screen, and be notified back and the ui is clicked.
If it’s possible, where do i find the relevant documentation? Some have tried this yet?

Any guidance will be appreciated :slight_smile:


#2

And why would you do that?
Ionic (on iOS and Android) is unusable without Cordova


#3

Why use Ionic?

If your only going to support iOS why not do all your development in Objective-C/Swift?

-> Is possible to create an app and then use Ionic2 just for front end, without the cordova wrapper?

Yes, you just won’t have access to any devices features (e.g., camera, etc.).

-> My idea is to use the “WebViewJavascriptBridge” (https://github.com/marcuswestin/WebViewJavascriptBridge) to build a simple bridge. I just need a way to navigate views passing data, or just update data on the screen, and be notified back and the ui is clicked.

Sure, take a look at some other projects that use WebViewJavascriptBridge:


#4

Ionic components are high quality, well documented and got all features that i need. But, i also needs a tighter integration with the OS. Specially media, i need to sync media over network, and this needs to be on the native side. I need the cordova app to be trasparent so the media shows through it.