Join Sahil Malik for an in-depth discussion in this video An introduction to Cordova, part of Developing Cordova Apps with Visual Studio Code and Typescript.
- [Instructor] Let's start with a basic introduction to what is Cordova? Development today is quite different. If you want to hit the market with any reasonable product, you need to target web, desktop and mobile, simultaneously. And within web, you have multiple browsers. On desktop, you have at least three. Mobile, you have iOS, Android, maybe even more. This creates an enormous challenge for both organizations and developers, and the challenge is that we have immense number of skills that we need to master very, very quickly.
All of these underlying platforms are also changing at the speed of the internet. And we are also building a lot more complicated applications that need to be secure. Now historically speaking, we've had a way to deliver cross-platform applications and that's web-based technologies. Wouldn't it be nice if we could just write our applications using these web-based technologies and somehow magically package them as native? And that's exactly what Cordova does.
It takes your web-based application and hosts it inside a frame which is hosted inside a native app. So to the operating system, it is a native app. And using Cordova, you can also use plugins to access native capabilities. So no way you are a second-rate citizen on the native platform. You can access every native capability and the operating system considers you as a native app, and yes, those apps also work in app stores.
In fact, there are plenty of them already in app stores.
- Setting up your environment
- Adding the browser platform
- Adding and debugging the Android and iOS platforms
- Interacting with Native using plugins
- Why use plugins?
- Using TypeScript with Cordova
- Converting your code to TypeScript