SlideShare une entreprise Scribd logo
1  sur  23
Télécharger pour lire hors ligne
Capacitor 1.0 Launch:
A new way to build native mobile apps with Ionic
May 2019
Housekeeping Items
➔ This webinar is being recorded
➔ All registrants will receive a link to the on-demand
recording and slides following the event
➔ The presentation will be about 30 minutes
➔ You can submit questions to the speakers during the
live event using the Q&A panel
Who am I?
Matt Netkow
Head of Developer Relations
twitter.com/dotNetkow
github.com/dotNetkow
matt.netkow@ionicframework.com
Today’s Agenda
➔ Ionic and Hybrid App Background
➔ Cordova: Brief History
➔ Introducing Capacitor
➔ Differences Between Cordova and Capacitor
➔ Live Demo!
➔ Cordova Migration Strategy
➔ Getting Started, Resources
➔ Q&A
A Personal Note: Why I’m Excited
2009: Professional .NET developer
2012: “I should learn JavaScript…” 🤔
2013 - 2018: Built Cordova apps 👨‍💻
Saw the potential despite challenges
Built several successful cross-platform apps
Earned thousands from app store sales 💰
2018: Joined Ionic 🥳
2019: Capacitor 1.0 🤩
Ionic Framework
Mobile-ready UI library that works
everywhere: any platform, any device,
any framework.
➔ Build for iOS, Android, Electron, PWAs, Web
➔ One codebase across all platforms
➔ Use basic web skills: HTML, JS, CSS
➔ Full access to Native APIs and Plugins
What is a Hybrid App?
HTML, CSS, JavaScript
Runs in “browser” WebView
Wrapped in native app shell
Access device capabilities via plugins
Drop into native code any time
Embed into existing native apps
In sum: A native app!
Cordova/
PhoneGap
Cordova:
A Brief History
“Write Once, Run Everywhere”
Created: 2008
CLI: 2013
2019: Ongoing, minor updates
Native Platforms Move Fast
iOS, Android constantly undergoing change:
➔ Typically, new OS and hardware every year
➔ Modern plugin system with CocoaPods and Gradle
➔ Modern Languages: Swift & Kotlin
What if we created a spiritual
successor to Cordova that used
these modern native tools?
E N T E R :
What is Capacitor?
Cross-platform runtime: iOS, Android, Desktop, and the Web
Backward-compatibility: Support for Cordova
#UseThePlatform: Web-focused APIs that stay close to Standards
“Code Once, Configure Everywhere”: Modern Native tooling for easy
native project maintenance
Inspiration: Cordova, React Native, and Turbolinks
Differences Between Cordova & Capacitor
Native Project Management
C H A N G E B E N E F I T
Source assets (vs. build time assets) Native mobile teams can work alongside web teams
Add custom native code without creating a new plugin
No custom configuration (i.e. config.xml) More visibility into native project changes & better app
maintainability
Easier to troubleshoot native issues
Easier upgrades via step-by-step upgrade instructions
Use Platform-specific IDEs Faster, more typical app dev experience for each
platform
Differences Between Cordova & Capacitor
Plugin & CLI Management
C H AN G E B E N E F I T
Built as Frameworks (iOS) & Libraries (Android)
Installed via lead dependency management tools
(CocoaPods & Gradle/Maven)
No copying of plugin files directly into the project. Develop
plugins outside of an app!
“Generate plugin” command for complete plugin
scaffolding
Less error-prone and makes it easier to find help in the
community for each specific platform
Registers and exports all JavaScript for each plugin
based on the methods it detects at runtime
All methods available at runtime. No more need for
“deviceready” event!
Capacitor CLI installed locally into each project Easier to manage versions of Capacitor across apps
D E M O T I M E !
Add to Existing Ionic App &
Demoing Capacitor APIs
Cordova Migration Strategy
W H Y M I G R A T E ?
Long-term stability and peace of mind
Cordova backward-compatibility
Ionic to continue to invest in Cordova ecosystem
The Future = Ionic + Capacitor
Cordova Migration Strategy
M I G R A T I O N P R O C E S S
Audit, then migrate existing cordova plugins
Capacitor Core and Community APIs
See “Incompatible Plugins” list in Capacitor Docs
Continue to use Cordova or Ionic Native if Needed
The Ionic Stack
A world-class app building experience.
Fully integrated from top to bottom:
➔ Your Framework of choice—Angular, Vue,
React, etc...
➔ Ionic 4 UI toolkit and components
➔ Capacitor native runtime to reach iOS,
Android, PWA, and Desktop
➔ Your backend of choice—AWS, Azure,
Google Cloud, Firebase…
🎉 V E R S I O N 1 . 0 🎉
Changes From
Capacitor Beta to 1.0
➔ Native project scaffolding tweaks
➔ Stability: Bug fixes, community PRs
➔ Better Integration with Ionic Stack
➔ Core APIs: More platforms supported
➔ Complete documentation refresh
Getting Started
W E B
cd my-app
npm install @capacitor/core @capacitor/cli
npx cap init
I O N I C
cd my-app
ionic integrations enable capacitor
➔ Site: capacitor.ionicframework.com
◆ See “Migrating from Cordova to Capacitor” in docs
➔ Source: github.com/ionic-team/capacitor
➔ Capacitor “Kitchen Sink” API app: github.com/ionic-team/capacitor-plugin-demo
➔ Recording + links emailed after webinar!
Enterprise support packages for Cordova and Capacitor available
Resources
</presentation>
Questions?

Contenu connexe

Tendances

Why Docker
Why DockerWhy Docker
Why Docker
dotCloud
 
Docker Tutorial For Beginners | What Is Docker And How It Works? | Docker Tut...
Docker Tutorial For Beginners | What Is Docker And How It Works? | Docker Tut...Docker Tutorial For Beginners | What Is Docker And How It Works? | Docker Tut...
Docker Tutorial For Beginners | What Is Docker And How It Works? | Docker Tut...
Simplilearn
 

Tendances (20)

Your Journey to Cloud-Native Begins with DevOps, Microservices, and Containers
Your Journey to Cloud-Native Begins with DevOps, Microservices, and ContainersYour Journey to Cloud-Native Begins with DevOps, Microservices, and Containers
Your Journey to Cloud-Native Begins with DevOps, Microservices, and Containers
 
Docker introduction &amp; benefits
Docker introduction &amp; benefitsDocker introduction &amp; benefits
Docker introduction &amp; benefits
 
.NET Core, ASP.NET Core Course, Session 1
.NET Core, ASP.NET Core Course, Session 1.NET Core, ASP.NET Core Course, Session 1
.NET Core, ASP.NET Core Course, Session 1
 
Why Docker
Why DockerWhy Docker
Why Docker
 
(Declarative) Jenkins Pipelines
(Declarative) Jenkins Pipelines(Declarative) Jenkins Pipelines
(Declarative) Jenkins Pipelines
 
CICD with Jenkins
CICD with JenkinsCICD with Jenkins
CICD with Jenkins
 
DevOps
DevOps DevOps
DevOps
 
DevOps vs Agile | DevOps Tutorial For Beginners | DevOps Training | Edureka
DevOps vs Agile | DevOps Tutorial For Beginners | DevOps Training | EdurekaDevOps vs Agile | DevOps Tutorial For Beginners | DevOps Training | Edureka
DevOps vs Agile | DevOps Tutorial For Beginners | DevOps Training | Edureka
 
Docker Tutorial For Beginners | What Is Docker And How It Works? | Docker Tut...
Docker Tutorial For Beginners | What Is Docker And How It Works? | Docker Tut...Docker Tutorial For Beginners | What Is Docker And How It Works? | Docker Tut...
Docker Tutorial For Beginners | What Is Docker And How It Works? | Docker Tut...
 
DEVOPS 에 대한 전반적인 소개 및 자동화툴 소개
DEVOPS 에 대한 전반적인 소개 및 자동화툴 소개DEVOPS 에 대한 전반적인 소개 및 자동화툴 소개
DEVOPS 에 대한 전반적인 소개 및 자동화툴 소개
 
Docker
DockerDocker
Docker
 
Introduction of Progressive Web App
Introduction of Progressive Web AppIntroduction of Progressive Web App
Introduction of Progressive Web App
 
Docker Basics
Docker BasicsDocker Basics
Docker Basics
 
Introduction to DevOps
Introduction to DevOpsIntroduction to DevOps
Introduction to DevOps
 
Maven
MavenMaven
Maven
 
Introduction to Docker
Introduction to DockerIntroduction to Docker
Introduction to Docker
 
Building mobile app with Ionic Framework
Building mobile app with Ionic FrameworkBuilding mobile app with Ionic Framework
Building mobile app with Ionic Framework
 
프로그레시브 웹앱이란? - Progressive Web Apps
프로그레시브 웹앱이란? - Progressive Web Apps프로그레시브 웹앱이란? - Progressive Web Apps
프로그레시브 웹앱이란? - Progressive Web Apps
 
What is Docker
What is DockerWhat is Docker
What is Docker
 
What is Jenkins | Jenkins Tutorial for Beginners | Edureka
What is Jenkins | Jenkins Tutorial for Beginners | EdurekaWhat is Jenkins | Jenkins Tutorial for Beginners | Edureka
What is Jenkins | Jenkins Tutorial for Beginners | Edureka
 

Similaire à Capacitor 1.0 launch

Hybrid Mobile Apps - Meetup
Hybrid Mobile Apps - MeetupHybrid Mobile Apps - Meetup
Hybrid Mobile Apps - Meetup
Sanjay Patel
 

Similaire à Capacitor 1.0 launch (20)

Reimagining Cordova: Building Cross-Platform Web Apps with Capacitor
Reimagining Cordova: Building Cross-Platform Web Apps with CapacitorReimagining Cordova: Building Cross-Platform Web Apps with Capacitor
Reimagining Cordova: Building Cross-Platform Web Apps with Capacitor
 
Hybrid App Development, Redefined
Hybrid App Development, RedefinedHybrid App Development, Redefined
Hybrid App Development, Redefined
 
Ionic App Platform Overview
Ionic App Platform Overview Ionic App Platform Overview
Ionic App Platform Overview
 
An overview of Ionic
An overview of IonicAn overview of Ionic
An overview of Ionic
 
Talk for DevFest 2021 - GDG Bénin
Talk for DevFest 2021 - GDG BéninTalk for DevFest 2021 - GDG Bénin
Talk for DevFest 2021 - GDG Bénin
 
Introduction to React Native
Introduction to React NativeIntroduction to React Native
Introduction to React Native
 
Introduction to React Native
Introduction to React NativeIntroduction to React Native
Introduction to React Native
 
Building capacitor apps in appflow webinar
Building capacitor apps in appflow webinarBuilding capacitor apps in appflow webinar
Building capacitor apps in appflow webinar
 
NCDevCon 2017 - Cross Platform Mobile Apps
NCDevCon 2017 - Cross Platform Mobile AppsNCDevCon 2017 - Cross Platform Mobile Apps
NCDevCon 2017 - Cross Platform Mobile Apps
 
Workshop on Hybrid App Development with Ionic Framework
Workshop on Hybrid App Development with Ionic FrameworkWorkshop on Hybrid App Development with Ionic Framework
Workshop on Hybrid App Development with Ionic Framework
 
6 Best JavaScript Framework for Mobile Apps Trending in 2023.pdf
6 Best JavaScript Framework for Mobile Apps Trending in 2023.pdf6 Best JavaScript Framework for Mobile Apps Trending in 2023.pdf
6 Best JavaScript Framework for Mobile Apps Trending in 2023.pdf
 
The Best Alternatives To The Ionic Framework.pdf
The Best Alternatives To The Ionic Framework.pdfThe Best Alternatives To The Ionic Framework.pdf
The Best Alternatives To The Ionic Framework.pdf
 
Ionic best practices
Ionic best practicesIonic best practices
Ionic best practices
 
Ionic best practices
Ionic best practicesIonic best practices
Ionic best practices
 
Enterprise DevOps Series: Using VS Code & Zowe
Enterprise DevOps Series: Using VS Code & ZoweEnterprise DevOps Series: Using VS Code & Zowe
Enterprise DevOps Series: Using VS Code & Zowe
 
Sencha Tooling - Senchacon Conference
Sencha Tooling  - Senchacon ConferenceSencha Tooling  - Senchacon Conference
Sencha Tooling - Senchacon Conference
 
SenchaCon 2016: Cross-Platform Mobile App Development with Cordova and Visual...
SenchaCon 2016: Cross-Platform Mobile App Development with Cordova and Visual...SenchaCon 2016: Cross-Platform Mobile App Development with Cordova and Visual...
SenchaCon 2016: Cross-Platform Mobile App Development with Cordova and Visual...
 
Native script vs react native for native app development in 2022
Native script vs react native for native app development in 2022Native script vs react native for native app development in 2022
Native script vs react native for native app development in 2022
 
Ionic2 First Lesson of Four
Ionic2 First Lesson of FourIonic2 First Lesson of Four
Ionic2 First Lesson of Four
 
Hybrid Mobile Apps - Meetup
Hybrid Mobile Apps - MeetupHybrid Mobile Apps - Meetup
Hybrid Mobile Apps - Meetup
 

Plus de Ionic Framework

Plus de Ionic Framework (13)

Ionic event: March 2021
Ionic event: March 2021Ionic event: March 2021
Ionic event: March 2021
 
Live Demo: 1-click push to app stores
Live Demo: 1-click push to app storesLive Demo: 1-click push to app stores
Live Demo: 1-click push to app stores
 
Build your first Ionic React app
Build your first Ionic React appBuild your first Ionic React app
Build your first Ionic React app
 
Ionic React
Ionic ReactIonic React
Ionic React
 
Ionic in 30
Ionic in 30Ionic in 30
Ionic in 30
 
Ionic Native: Native-powered apps, without the hassle
Ionic Native: Native-powered apps, without the hassleIonic Native: Native-powered apps, without the hassle
Ionic Native: Native-powered apps, without the hassle
 
Ionic Advisory: Your partner at every stage of development
Ionic Advisory: Your partner at every stage of development Ionic Advisory: Your partner at every stage of development
Ionic Advisory: Your partner at every stage of development
 
Offline Storage: Build secure, offline-first apps
Offline Storage: Build secure, offline-first appsOffline Storage: Build secure, offline-first apps
Offline Storage: Build secure, offline-first apps
 
Ionic Auth Connect: Single Sign-on Made Easy
Ionic Auth Connect: Single Sign-on Made EasyIonic Auth Connect: Single Sign-on Made Easy
Ionic Auth Connect: Single Sign-on Made Easy
 
Submitting ionic apps to app stores
Submitting ionic apps to app storesSubmitting ionic apps to app stores
Submitting ionic apps to app stores
 
Top Cordova Challenges and How to Tackle Them
Top Cordova Challenges and How to Tackle ThemTop Cordova Challenges and How to Tackle Them
Top Cordova Challenges and How to Tackle Them
 
Introducing: Ionic Studio & Appflow A Better Way to Build Apps
Introducing: Ionic Studio & Appflow A Better Way to Build AppsIntroducing: Ionic Studio & Appflow A Better Way to Build Apps
Introducing: Ionic Studio & Appflow A Better Way to Build Apps
 
A Vue from Ionic
A Vue from IonicA Vue from Ionic
A Vue from Ionic
 

Dernier

Abortion Pills In Pretoria ](+27832195400*)[ 🏥 Women's Abortion Clinic In Pre...
Abortion Pills In Pretoria ](+27832195400*)[ 🏥 Women's Abortion Clinic In Pre...Abortion Pills In Pretoria ](+27832195400*)[ 🏥 Women's Abortion Clinic In Pre...
Abortion Pills In Pretoria ](+27832195400*)[ 🏥 Women's Abortion Clinic In Pre...
Medical / Health Care (+971588192166) Mifepristone and Misoprostol tablets 200mg
 
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
VictoriaMetrics
 
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
masabamasaba
 
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
masabamasaba
 

Dernier (20)

%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview
%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview
%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview
 
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
 
Abortion Pills In Pretoria ](+27832195400*)[ 🏥 Women's Abortion Clinic In Pre...
Abortion Pills In Pretoria ](+27832195400*)[ 🏥 Women's Abortion Clinic In Pre...Abortion Pills In Pretoria ](+27832195400*)[ 🏥 Women's Abortion Clinic In Pre...
Abortion Pills In Pretoria ](+27832195400*)[ 🏥 Women's Abortion Clinic In Pre...
 
%in Midrand+277-882-255-28 abortion pills for sale in midrand
%in Midrand+277-882-255-28 abortion pills for sale in midrand%in Midrand+277-882-255-28 abortion pills for sale in midrand
%in Midrand+277-882-255-28 abortion pills for sale in midrand
 
Artyushina_Guest lecture_YorkU CS May 2024.pptx
Artyushina_Guest lecture_YorkU CS May 2024.pptxArtyushina_Guest lecture_YorkU CS May 2024.pptx
Artyushina_Guest lecture_YorkU CS May 2024.pptx
 
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
 
%in Harare+277-882-255-28 abortion pills for sale in Harare
%in Harare+277-882-255-28 abortion pills for sale in Harare%in Harare+277-882-255-28 abortion pills for sale in Harare
%in Harare+277-882-255-28 abortion pills for sale in Harare
 
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
 
%in Rustenburg+277-882-255-28 abortion pills for sale in Rustenburg
%in Rustenburg+277-882-255-28 abortion pills for sale in Rustenburg%in Rustenburg+277-882-255-28 abortion pills for sale in Rustenburg
%in Rustenburg+277-882-255-28 abortion pills for sale in Rustenburg
 
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
 
8257 interfacing 2 in microprocessor for btech students
8257 interfacing 2 in microprocessor for btech students8257 interfacing 2 in microprocessor for btech students
8257 interfacing 2 in microprocessor for btech students
 
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
 
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
 
VTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learnVTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learn
 
tonesoftg
tonesoftgtonesoftg
tonesoftg
 
WSO2CON2024 - It's time to go Platformless
WSO2CON2024 - It's time to go PlatformlessWSO2CON2024 - It's time to go Platformless
WSO2CON2024 - It's time to go Platformless
 
WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...
WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...
WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...
 
Microsoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdfMicrosoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdf
 
Announcing Codolex 2.0 from GDK Software
Announcing Codolex 2.0 from GDK SoftwareAnnouncing Codolex 2.0 from GDK Software
Announcing Codolex 2.0 from GDK Software
 
WSO2CON 2024 - Does Open Source Still Matter?
WSO2CON 2024 - Does Open Source Still Matter?WSO2CON 2024 - Does Open Source Still Matter?
WSO2CON 2024 - Does Open Source Still Matter?
 

Capacitor 1.0 launch

  • 1. Capacitor 1.0 Launch: A new way to build native mobile apps with Ionic May 2019
  • 2. Housekeeping Items ➔ This webinar is being recorded ➔ All registrants will receive a link to the on-demand recording and slides following the event ➔ The presentation will be about 30 minutes ➔ You can submit questions to the speakers during the live event using the Q&A panel
  • 3. Who am I? Matt Netkow Head of Developer Relations twitter.com/dotNetkow github.com/dotNetkow matt.netkow@ionicframework.com
  • 4. Today’s Agenda ➔ Ionic and Hybrid App Background ➔ Cordova: Brief History ➔ Introducing Capacitor ➔ Differences Between Cordova and Capacitor ➔ Live Demo! ➔ Cordova Migration Strategy ➔ Getting Started, Resources ➔ Q&A
  • 5. A Personal Note: Why I’m Excited 2009: Professional .NET developer 2012: “I should learn JavaScript…” 🤔 2013 - 2018: Built Cordova apps 👨‍💻 Saw the potential despite challenges Built several successful cross-platform apps Earned thousands from app store sales 💰 2018: Joined Ionic 🥳 2019: Capacitor 1.0 🤩
  • 6. Ionic Framework Mobile-ready UI library that works everywhere: any platform, any device, any framework. ➔ Build for iOS, Android, Electron, PWAs, Web ➔ One codebase across all platforms ➔ Use basic web skills: HTML, JS, CSS ➔ Full access to Native APIs and Plugins
  • 7. What is a Hybrid App? HTML, CSS, JavaScript Runs in “browser” WebView Wrapped in native app shell Access device capabilities via plugins Drop into native code any time Embed into existing native apps In sum: A native app! Cordova/ PhoneGap
  • 8. Cordova: A Brief History “Write Once, Run Everywhere” Created: 2008 CLI: 2013 2019: Ongoing, minor updates
  • 9. Native Platforms Move Fast iOS, Android constantly undergoing change: ➔ Typically, new OS and hardware every year ➔ Modern plugin system with CocoaPods and Gradle ➔ Modern Languages: Swift & Kotlin
  • 10. What if we created a spiritual successor to Cordova that used these modern native tools?
  • 11. E N T E R :
  • 12. What is Capacitor? Cross-platform runtime: iOS, Android, Desktop, and the Web Backward-compatibility: Support for Cordova #UseThePlatform: Web-focused APIs that stay close to Standards “Code Once, Configure Everywhere”: Modern Native tooling for easy native project maintenance Inspiration: Cordova, React Native, and Turbolinks
  • 13. Differences Between Cordova & Capacitor Native Project Management C H A N G E B E N E F I T Source assets (vs. build time assets) Native mobile teams can work alongside web teams Add custom native code without creating a new plugin No custom configuration (i.e. config.xml) More visibility into native project changes & better app maintainability Easier to troubleshoot native issues Easier upgrades via step-by-step upgrade instructions Use Platform-specific IDEs Faster, more typical app dev experience for each platform
  • 14. Differences Between Cordova & Capacitor Plugin & CLI Management C H AN G E B E N E F I T Built as Frameworks (iOS) & Libraries (Android) Installed via lead dependency management tools (CocoaPods & Gradle/Maven) No copying of plugin files directly into the project. Develop plugins outside of an app! “Generate plugin” command for complete plugin scaffolding Less error-prone and makes it easier to find help in the community for each specific platform Registers and exports all JavaScript for each plugin based on the methods it detects at runtime All methods available at runtime. No more need for “deviceready” event! Capacitor CLI installed locally into each project Easier to manage versions of Capacitor across apps
  • 15. D E M O T I M E ! Add to Existing Ionic App & Demoing Capacitor APIs
  • 16. Cordova Migration Strategy W H Y M I G R A T E ? Long-term stability and peace of mind Cordova backward-compatibility Ionic to continue to invest in Cordova ecosystem The Future = Ionic + Capacitor
  • 17. Cordova Migration Strategy M I G R A T I O N P R O C E S S Audit, then migrate existing cordova plugins Capacitor Core and Community APIs See “Incompatible Plugins” list in Capacitor Docs Continue to use Cordova or Ionic Native if Needed
  • 18. The Ionic Stack A world-class app building experience. Fully integrated from top to bottom: ➔ Your Framework of choice—Angular, Vue, React, etc... ➔ Ionic 4 UI toolkit and components ➔ Capacitor native runtime to reach iOS, Android, PWA, and Desktop ➔ Your backend of choice—AWS, Azure, Google Cloud, Firebase…
  • 19. 🎉 V E R S I O N 1 . 0 🎉
  • 20. Changes From Capacitor Beta to 1.0 ➔ Native project scaffolding tweaks ➔ Stability: Bug fixes, community PRs ➔ Better Integration with Ionic Stack ➔ Core APIs: More platforms supported ➔ Complete documentation refresh
  • 21. Getting Started W E B cd my-app npm install @capacitor/core @capacitor/cli npx cap init I O N I C cd my-app ionic integrations enable capacitor
  • 22. ➔ Site: capacitor.ionicframework.com ◆ See “Migrating from Cordova to Capacitor” in docs ➔ Source: github.com/ionic-team/capacitor ➔ Capacitor “Kitchen Sink” API app: github.com/ionic-team/capacitor-plugin-demo ➔ Recording + links emailed after webinar! Enterprise support packages for Cordova and Capacitor available Resources