The alpha version has been live in the App Store for a while now, and after much updating and testing, we are confident it is ready to become a useful part of your Ionic development toolchain. We wanted to get View out to people as soon as possible, so it may feel somewhat spare at first, but there are still many exciting features in the pipeline!
What is Ionic View? How Does it Fit into My Workflow?
Ionic View functions like your own mobile app portfolio. It allows you to easily view, share, and test the Ionic apps you are developing across devices – your own, a client’s, or the person in the cubicle next to you (and by cubicle, we mean the pool chair at your beachside resort).
Ionic View integrates with the Ionic command line to populate your app portfolio. Once you’ve made sure to update your ionic-cli version to at least 1.3.2, starting and uploading an app is as easy as:
$ ionic start myApp $ cd myApp $ ionic upload
You’ll be prompted to login with your Ionic account, and upon doing so, your app will be visible in Ionic View.
How it Works
View uses the Cordova inAppBrowser plugin to launch your apps in their own separate WebView, so you can preview and test them. Normally, inAppBrowser only displays web content, but we might have hacked it a little to give apps access to the Cordova API and plugins. Ionic apps are hybrid apps for a reason, and a preview is not the same without plugin support! At the moment, plugin access is restricted to a specific subset of plugins, including GeoLocation, Keyboard, StatusBar, and BarcodeScanner, and we will be testing and adding many more in the coming weeks and months.
Best of all, View is an Ionic app! We hope it sets a good example of the native-quality mobile apps that are possible with Ionic.
We’ll continue to add support for new plugins as we review and test them. We’ll also be fixing some known “quirks” (you mean you didn’t want your app links to expire after five minutes of having the app open?) in the next few weeks, and we’re looking forward to adding features like auto updating and the ability to sync with a livereload server in the near future, too.