Slide 1

Slide 1 text

Angular goes Mobile iOS und Android Apps mit dem Capacitor Framework Daniel Sogl @sogldaniel Consultant

Slide 2

Slide 2 text

Daniel Sogl • Consultant @ Thinktecture AG • Angular Developer since 2015 • Maintainer of Awesome Cordova Plugins (aka @ionic- native) About me

Slide 3

Slide 3 text

• App Types – Hybrid VS Native • Ionic Framework – a short overview • Capacitor Framework • Live Coding • Q&A Agenda

Slide 4

Slide 4 text

Hybrid Apps VS Native Apps Pros & Cons Daniel Sogl @sogldaniel Consultant iOS und Android Apps mit dem Capacitor Framework

Slide 5

Slide 5 text

•Native Apps •Cross-Platform Apps •Hybrid-Apps •Web-Apps App Types

Slide 6

Slide 6 text

•Native Apps •Cross-Platform Apps •Hybrid-Apps •Web-Apps App Types

Slide 7

Slide 7 text

No content

Slide 8

Slide 8 text

Pros & Cons Native Apps + build on top of the latest platform APIs + best possible performance - Can only be executed on the targeted platforms - Higher development costs - Longer time to market Hybrid Apps + Faster development speed + Lower costs and faster time to market - Lower performance - Limited access to native features - Limited UI/UX based on the native design systems Hybrid Apps

Slide 9

Slide 9 text

Ionic Framework Write Once – Beautiful everywhere Daniel Sogl @sogldaniel Consultant

Slide 10

Slide 10 text

(And its history) • Open-Source cross platform mobile UI SDK • Provides components for Material Design & Human Design System (Android & iOS) • Built on top of web components with Stencil.js • Supports Angular, React, Vue and Vanilla JS • Enterprise plugins & CI/CD-systems • Micro frontends with Ionic-Portal for native apps What is the Ionic Framework

Slide 11

Slide 11 text

Build native looking UIs with Ionic One code base to rule them all Daniel Sogl @sogldaniel Consultant

Slide 12

Slide 12 text

No content

Slide 13

Slide 13 text

Capacitor Bring your web apps to native devices Daniel Sogl @sogldaniel Consultant

Slide 14

Slide 14 text

• 2008 – Apple releases the App Store • 2009 – Apache Cordova (aka PhoneGap) was introduced • … • 2019 – Capacitor 1.0 was released to the public A short look back

Slide 15

Slide 15 text

• Open-Source Cross Platform Mobile Runtime SDK • Web-Framework agnostic • Plugin Ecosystem for all relevant core functionalities • APIs for native & web Possibility to write your own capacitor Plugins without deep native platform knowledge • Native project integration thanks to Xcode and Android Studio Project files • Backwards compatible with Cordova What is the Capacitor framework

Slide 16

Slide 16 text

„There's an app plugin for that“ • The Capacitor team provides core plugins (camera, storage, HTTP, keyboard, etc.) • Developers can contribute to the official Capacitor community project • Custom plugins can be published individually • Existing Cordova plugins can be used Capacitor Plugin Eco-System

Slide 17

Slide 17 text

System Requirements 1. Node.js LTS 2. iOS 1. Xcode 2. Homebrew 3. CocoaPods 3. Android 1. Android Studio 2. Android SDK Bring existing apps to native devices

Slide 18

Slide 18 text

You only must run four commands (more or less) • Every existing web app can be used thanks to the framework agnostic API 1. Add the Capacitor-CLI to the existing web app 2. Run the - npx cap init - command 3. Add platforms - npx cap add ios | android - command 4. Run the - npx cap sync - command 5. … 6. Profit! Bring existing apps to native devices

Slide 19

Slide 19 text

Capacitor Live Demo Daniel Sogl @sogldaniel Consultant

Slide 20

Slide 20 text

Writing your own capacitor plugins Native APIs without a native App Daniel Sogl @sogldaniel Consultant

Slide 21

Slide 21 text

Access custom native APIs or even native views • Plugins can be added thanks to capacitors TypeScript based API • Target any native API • Even native Views can be displayed and integrated • Plugins can be published on npm or added into the project itself Writing your own capacitor plugins

Slide 22

Slide 22 text

• Capacitor allows developers to bring any web app to native devices • Easy-to-use core plugins • Community-driven plugin ecosystem that is backward compatible with Cordova plugins • Custom plugins can be created using the easy-to-use Capacitor plugin API • Even native views can be displayed • More details? Expert 1:1 Summary

Slide 23

Slide 23 text

Thank you For your attention and questions! Daniel Sogl @sogldaniel Consultant