First steps with Capacitor… in the real world Horacio Gonzalez @LostInBrittany #capacitor
@LostInBrittany
Slide 2
Who am I? Introducing myself and introducing OVH
#capacitor
@LostInBrittany
Slide 3
Horacio Gonzalez @LostInBrittany Spaniard lost in Brittany, developer, dreamer and all-around geek
#capacitor
@LostInBrittany
Slide 4
OVH : Key Figures 1.3M Customers worldwide in 138 Countries 1.5 Billions euros investment over five years 30 Datacenters (growing) 350k Dedicated Servers 200k Private cloud VMs running 650k Public cloud Instances created in a month 15TB bandwidth capacity
2 500 Employees in 19 countries 18 Years of Innovation
35 Points of presence 4TB Anti DDoS capacity Hosting capacity : 1.3M Physical Servers
#capacitor
@LostInBrittany
Slide 5
OVH: A Global Leader on Cloud 200k Private cloud VMs running
1
Dedicated IaaS Europe
2018 27 Datacenters Own 15 Tbps
Hosting capacity : 1.3M Physical Servers 360k Servers already deployed
2020 50 Datacenters
Netwok with 35 PoPs
1.3M Customers in 138 Countries #capacitor
@LostInBrittany
Slide 6
Ranking & Recognition
1st European Cloud Provider* 1st Hosting provider in Europe 1st Provider Microsoft Exchange Certified vCloud Datacenter Certified Kubernetes platform (CNCF) Vmware Global Service Provider 2013-2016 Veeam Best Cloud Partner of the year (2018) #capacitor
@LostInBrittany
Netcraft 2017 -
Slide 7
OVH: Our solutions
Cloud
Web Hosting
Mobile Hosting
Telecom
VPS
Containers ▪ Dedicated Server
Domain names
VoIP
Public Cloud
Compute ▪ Data Storage
Email
SMS/Fax
Private Cloud
▪ Network and Database
CDN
Virtual desktop
Serveur dédié
Security Object Storage
Web hosting
Cloud HubiC Over theBox
▪ Licences
Cloud Desktop
Securities
MS Office
Hybrid Cloud
Messaging
MS solutions
#capacitor
@LostInBrittany
Slide 8
Capacitor The Native Bridge for Cross-Platform Web Apps
#capacitor
@LostInBrittany
Slide 9
What's Capacitor? Cross-platform app runtime making it easy to build web apps that run natively on iOS, Android and web
#capacitor
@LostInBrittany
Slide 10
Spiritual heir to Apache Cordova
Evolution, not revolution #capacitor
@LostInBrittany
Slide 11
Spiritual heir to Apache Cordova
Support for many Cordova plugins #capacitor
@LostInBrittany
Slide 12
Extensible and evolutif ● Close to web-standards ● Plugin API ○ Swift on iOS ○ Java on Android ○ JavaScript for the web
#capacitor
@LostInBrittany
Slide 13
Developer Friendly
Easy to get started Works on any framework #capacitor
@LostInBrittany
Slide 14
You still need the platform tools
Android Studio and/or Xcode to build the native packages #capacitor
@LostInBrittany
Slide 15
Weren't you a PWA advocate? And you are also championing Flutter! Where is the coherence, guy?
#capacitor
@LostInBrittany
Slide 16
Well, I am a PWA advocate indeed
I rooted for PWA before it was fancy... #capacitor
@LostInBrittany
Slide 17
And I know the numbers...
Apps drive engagement, web drive visitors...
20 biggest apps account for 80% of user time #capacitor
@LostInBrittany
Slide 18
An engineer role is to choose
The right tool for the right problem #capacitor
@LostInBrittany
Slide 19
If you need super fancy UX 60 FPS, slick animations, an experience more than an app
Then go full native
And BTW, do it in Flutter
believe me, you will thank me!
#capacitor
@LostInBrittany
Slide 20
For more normal needs
A well done PWA is simply enough #capacitor
@LostInBrittany
Slide 21
But if you need to be in the store?
For many reasons, not all objective... #capacitor
@LostInBrittany
Slide 22
Hybrid PWA apps
The best of two worlds #capacitor
@LostInBrittany
Slide 23
Capacitor take your PWA to the store
In a simple, quick and painless way #capacitor
@LostInBrittany
Slide 24
First steps testing Capacitor Adding Capacitor to an existing app
#capacitor
@LostInBrittany
Slide 25
From web to native
Giving superpowers to you webapp #capacitor
@LostInBrittany
Slide 26
Testing with a real webapp
Warp 10 Photon - IDE for Warp 10 #capacitor
@LostInBrittany
Slide 27
Step 1 - Add Capacitor to the app Install Capacitor cd my-app npm install --save @capacitor/core @capacitor/cli Init Capacitor npx cap init Add Android and/or iOS and/or Electron support npx cap add android #capacitor
@LostInBrittany
Slide 28
Step 2 - Copy to Android Edit capacitor.config.json Copy the built resources to Android npx cap copy Launch Android Studio and navigate to the project
#capacitor
@LostInBrittany
Slide 29
Step 3 - Test
And our webapp is now a native app #capacitor
@LostInBrittany
Slide 30
First test: successful!
Capacitor 1 - Scepticism 0 #capacitor
@LostInBrittany
Slide 31
The Capacitor example app Nice to explore Capacitor
#capacitor
@LostInBrittany
Slide 32
Made by the Ionic team To replace Cordova in next Ionic
#capacitor
@LostInBrittany
Slide 33
Official example built on Ionic
Showcasing the upcoming Ionic 4 #capacitor
@LostInBrittany
Slide 34
Let's try the official example
#capacitor
@LostInBrittany
Slide 35
Using directly the Capacitor repository
Custom built project, not a production app ● @capacitor/core and native libs loaded from local directory #capacitor
@LostInBrittany
Slide 36
Let's build the Android version
Some pre-building and building needed... #capacitor
@LostInBrittany
Slide 37
We now have an Android project
#capacitor
@LostInBrittany
Slide 38
Easy and painless Android app
#capacitor
@LostInBrittany
Slide 39
And in PWA mode?
Some elements haven't web implementation (yet?) #capacitor @LostInBrittany
Slide 40
But it still works!
It fails gracefully for unsupported plugins #capacitor
@LostInBrittany
Slide 41
Second test: successful!
Capacitor 2 - Scepticism 0 #capacitor
@LostInBrittany