Capacitor - Five Apps in Five Minutes

Поделиться
HTML-код
  • Опубликовано: 8 сен 2024

Комментарии • 125

  • @magne6049
    @magne6049 Год назад +116

    Would be fun if you would take a re-view on CapacitorJS now to see how far you could get to native performance with a PWA in 2022.

  • @Fireship
    @Fireship  6 лет назад +81

    Capacitor is a very refreshing take on hybrid app development. Looking forward to seeing this tool evolve in the future.

    • @tonyfung99hk852
      @tonyfung99hk852 6 лет назад

      So for the mobile platform is it still contained in web view? or it is rendered like react native? Thanks.

    • @jeremaine
      @jeremaine 6 лет назад +2

      Capacitor wraps the web app in a so-called “WebView” that can display web apps inside the native app. It injects a “bridge” into the app running in the webview, that connects the code of the web app and the code of the native part so these can interact.
      ionic.zone/capacitor/overview

    • @pilearn1266
      @pilearn1266 3 года назад

      Have a different today,? I

    • @2BluntsLater
      @2BluntsLater 2 года назад +1

      What do you think today tho?

    • @shateq
      @shateq Год назад

      The future is now!

  • @Bersling
    @Bersling Год назад +21

    Using capacitor in 2023, so far it's been perfect. Easy to get set up & works out of the box (not naming alternatives i've tried here...), lets me use my web app skills to build mobile apps...

    • @kyonas6047
      @kyonas6047 Год назад +3

      I got my brain fried trying to understand how to make a PWA lol all tutorials be like "oh ofc you have already done kwhwjwhsi and jwhskwusbs now let's start the first step" lol

    • @mixxxer
      @mixxxer Год назад

      Going to try it soon - converting a Vue 3 MVP. Looking promising so far.

    • @developerninja619
      @developerninja619 5 месяцев назад

      Or this
      ruclips.net/video/WbbAPfDVqfY/видео.htmlsi=z3DGlpl81iwbia67

    • @developerninja619
      @developerninja619 5 месяцев назад

      Learning Django rn. I know html, css, js after learning Django well enough will learn Vue.js and start using Capacitor.
      I'm hyped for the Capacitor. Just knowing that you can write frontend using web stack and run it on every device is truly amazing!

    • @developerninja619
      @developerninja619 5 месяцев назад

      Your comment hyped me up even more =)

  • @razakadam74
    @razakadam74 6 лет назад +45

    Jeff :) is the only tutor that can make you get interested in a tool in less than 5 mins. I love this

  • @jesselima_dev
    @jesselima_dev 6 лет назад +17

    Outstanding! The capacitor shows like a really powerful tool.

    • @Fireship
      @Fireship  6 лет назад +4

      It's def much more intuitive than apache cordova, but still needs time to mature.

    • @developerninja619
      @developerninja619 5 месяцев назад

      I bet it has 💪🏻💪🏻

  • @starllama2149
    @starllama2149 6 лет назад +8

    This is honestly amazing

  • @dailydev4994
    @dailydev4994 6 лет назад +1

    I really like the fact that you just basically just use adapters and let capacitor worry about the rest. Kinda like angular's render, nice and simple, this is an awesome dev ux!

  • @felixo9234
    @felixo9234 5 лет назад +1

    Another game changer. I need to take a leap of faith and look into these new tech sooner.

  • @AdrianDucao
    @AdrianDucao 2 года назад +1

    this, has so much potential

  • @RogerBurke
    @RogerBurke 6 лет назад +7

    Very good...started with Sencha to build hybrid apps...then turned to Ionic...went to Angular as Ionic couldn't cover the web...but now..back to Ionic because it's the future...covering 5 different OS's with 1 code-base is brilliant...I thought it was good covering 2 (IOS & Android) with maybe 3 (Windows) but capacitor includes the PWA basics as well...all from code base...what more do you want !!!

  • @mehdituts7607
    @mehdituts7607 4 года назад +7

    Hi, how do you do to paste code snippets in series like that?

  • @sleeplessforawhile
    @sleeplessforawhile Год назад +1

    I´ve just arrive to this video (which it don´t say nothing good about my skills I´m affraid 😅) but ... let me ask you... are still cordova or capacitor a good option to build hybrid apps?. Thank you so much for yor work.

  • @augmentos
    @augmentos 4 года назад +2

    would love to see a revisit now

  •  4 года назад +4

    You can avoid polluting your global installations with electron-packager if you 'npm i --save-dev electron-packager' and run 'npx electron-packager . --platform=win32'.

  • @MercyFromOverwatch2
    @MercyFromOverwatch2 2 года назад

    Jeff is my favourite tech youtuber!

  • @hrefamid9563
    @hrefamid9563 2 года назад +2

    Please update this showcase for the latest capacitor version! A lot has changed 😎

  • @GaetanLeGac
    @GaetanLeGac 2 года назад

    I'm glad i found this video to begin playing with this (apparently) fabulous tool

  • @mikes2521
    @mikes2521 6 лет назад +3

    Electron support contributor here: Just want to shed some light as to why the Geolocation plugin returned "undefined". Did you set the Enviromental Var for GOOGLE_API_KEY? If not this can be done in the /electron/index.js by adding: process.env.GOOGLE_API_KEY = 'YOUR_KEY'; If you did all that I'd be interested in seeing any error logs for it in a Github issue so we can get to the bottom of the issue. :) Really good video!

    • @Fireship
      @Fireship  6 лет назад +2

      Hi Mike, thanks for posting this. I made zero effort to fix that issue because I mostly wanted to prove the build process worked on all platforms, but this will be helpful to someone working with geolocation on desktop.

  • @bstrnx
    @bstrnx 6 лет назад +1

    Awesome! I know you just did a video about push notifications on Ionic, but I would like to see how this works on capacitor, it would be awesome if you did a video about it!

  • @rodrigorubio3498
    @rodrigorubio3498 6 лет назад +1

    WOW! Thanks for the demo.

  • @dukeselwood
    @dukeselwood Год назад +1

    Svelte + Capacitor is the one

  • @mfahadshah
    @mfahadshah 2 года назад +2

    Can you please do a remake of this with new updates..

  • @anazi
    @anazi Год назад

    I came here to make sure I made the right decision by using Expo React-Native.
    Thank God.

  • @adrvent2
    @adrvent2 6 лет назад +1

    What tha fuck, best notice ever, that video save my weekend of work, i can rest now, one week searching how build my angular app in android now i can

  • @danilocecilia7831
    @danilocecilia7831 6 лет назад

    im super stuck about this capacitor lib!! Thank you so much for the vid !

  • @deepakbawa1367
    @deepakbawa1367 3 года назад +1

    It's 3 years now plz use capacitor 3 and re make the new video 👍

  • @chrischappell7643
    @chrischappell7643 6 лет назад +5

    write once, build all plalform, that's great way should apply all when software developing .

    • @Fireship
      @Fireship  6 лет назад

      I wish real life was that easy :)

  • @AbhishekSharma-mt1rd
    @AbhishekSharma-mt1rd 6 лет назад

    Looks great. Hope it works great!

  • @paolofragomeni2147
    @paolofragomeni2147 8 месяцев назад +1

    These days it's the Socket runtime 😎

  • @mycloudvip
    @mycloudvip 4 года назад

    every single video you create is a piece of artwork. What is your website's url?

  • @AdarshMadrecha
    @AdarshMadrecha 3 года назад +2

    It's time to create a new updated video, since we have Capacitor v3 BETA

  • @zoecarlibur
    @zoecarlibur 6 лет назад +2

    This is really exciting technology, I wonder how it's gonna play with web-assembly. BTW Awesome job explaining this!

    • @jp46614
      @jp46614 2 года назад +1

      it wont

  • @taharchibane5762
    @taharchibane5762 6 лет назад

    Awesome stuff !

  • @mescalito2
    @mescalito2 3 года назад +1

    Hi Max, do you know how can I share a file from an Android App to an Ionic/Capacitor App? the PWA option is called "share target" but I'm looking to do the same for a native Android-Ionic-Capacitor app, by any chance do you know how to do that?

  • @chirayumishra1185
    @chirayumishra1185 3 года назад

    @fireship Can you please shed some light on pros and cons with Quasar ?

  • @loganwalsh
    @loganwalsh 6 лет назад +3

    Wow this seems very interesting!!

    • @Fireship
      @Fireship  6 лет назад +1

      capacitor === potential

  • @rahulvanmali1406
    @rahulvanmali1406 6 лет назад

    thank you brother for educating us! Will ionic capacitor compete react native and flutter? whats your thoughts? sorry forgot to wish you! happy easter to you and your family

    • @Fireship
      @Fireship  6 лет назад +1

      Yes, in way. React native, flutter, and Ionic are all solving similar problems in different ways. Best choice depends on a whole variety of factors.

  • @musicforthesoul5808
    @musicforthesoul5808 10 месяцев назад

    npx cap serve no longer works with the new version of capacitor. Any pointers ?

  • @muhannadshubita392
    @muhannadshubita392 6 лет назад

    Very promising!

  • @Moys23
    @Moys23 Год назад

    What's the title of the intro song, it's beautiful

  • @salalba4723
    @salalba4723 6 лет назад

    good job !!!

  • @peacedove9038
    @peacedove9038 6 лет назад

    Sir what's the difference between ionic 4 and capacitor? can they no do the something like deploying electron app?
    thank you

  • @andresm9051
    @andresm9051 4 года назад

    Capacitor does it include all community and premier plugins availiable on ionic framework docs ?

  • @ubaidmurudkar439
    @ubaidmurudkar439 3 месяца назад

    How can we build ios while on windows

  • @_juniorcoder
    @_juniorcoder 3 года назад

    I have a little Problem with electron.
    When I create the electron app via electron-packager, the app contains nothing. That´s strange, because it works on Android, the Web, but not as a program.

  • @AwgustRushOfficial
    @AwgustRushOfficial 5 лет назад

    Why did the windows version lat and lng vars return undefined? Was the win pc not connected to Wi-Fi?

  • @habibleila405
    @habibleila405 3 года назад

    how can we make the backend works with our capacitor app Crud methods!

  • @rabeehta222
    @rabeehta222 5 лет назад

    is it possible to build the app using bootstrap? without the angular part

  • @triciastritzinger8660
    @triciastritzinger8660 3 месяца назад

    Ok this video is a bit older... and I am running Node JS v20... and a newer capacitor and the imports from this video dont work... {map} from 'rxjs/operators/map'; can you update those at least in the links below?

    • @triciastritzinger8660
      @triciastritzinger8660 3 месяца назад

      Also for the Angular Server... can you comment on how to move the directory structure to Apache?

  • @amit.deshmukh
    @amit.deshmukh 3 года назад

    Fireships feels like I am watching documentaries

  • @rignaldgiterson4271
    @rignaldgiterson4271 6 лет назад

    Hi! I really like your contents. Can you do a fun video where you're building an instant messaging app like whatsapp for example! that would be great.

  • @tharunrajoptimus5229
    @tharunrajoptimus5229 2 года назад

    But it's a nice video Jeff

  • @blue7nagi
    @blue7nagi 6 лет назад

    'npx cap add ios ' never finished ... loop in Updating iOS native dependencies .. :/

  • @unnhao
    @unnhao 4 года назад

    I use local notification, it can't popup, I according to official doc, I don't know why

  • @sachinmishra7692
    @sachinmishra7692 6 лет назад

    Will it all existing Cordova plugin work with capacitor ?

    • @Fireship
      @Fireship  6 лет назад

      Yep, it's fully compatible with cordova capacitor.ionicframework.com/docs/basics/cordova

  • @anb1142
    @anb1142 2 года назад +1

    you should do an update

  • @EdwardNdiranguEddie
    @EdwardNdiranguEddie 5 лет назад

    There an error at
    return watch.pipe(map(pos => pos.coords));
    The error in vscode reads... Property 'coords' does not exist on type '[GeolocationPosition, any]'.ts(2339)
    How do I fix this? Pls help.

    • @davidh3141
      @davidh3141 5 лет назад +1

      Hey Edward, you can just do something like this to get around that:
      ngOnInit(): void {
      this.watchPosition().subscribe(pos => {
      this.coords = pos.coords;
      });
      }
      watchPosition(): Observable {
      return bindCallback(Geolocation.watchPosition)({});
      }

  • @LumbreraEnMiCamino
    @LumbreraEnMiCamino 6 лет назад

    im lost when you said play button and open the emulator, how do i config my emulator to see the result on windows? and how do i create the apk after that? please help

    • @Fireship
      @Fireship  6 лет назад +2

      Open the /android folder with AndroidStudio. You'll see a play button on the top right corner that will run an emulator. No need to create the APK manually.

    • @LumbreraEnMiCamino
      @LumbreraEnMiCamino 6 лет назад

      thanks! it works for me and im very amazed!!

  • @sanportmx
    @sanportmx 6 лет назад

    HELP!
    Failed to compile.
    ./src/app/app.component.ts
    Module not found: Error: Can't resolve 'rxjs/observable/bindCallback' in '/Library/WebServer/Documents/otros/capacitor/hello-world/src/app'

    • @codeconcept
      @codeconcept 5 лет назад

      import { bindCallback } from 'rxjs';

  • @anirudhhramesh4900
    @anirudhhramesh4900 6 лет назад

    Sorry I'm currently facing a problem, where after running npx cap serve, I only see a webpage load with the root directory name ~/ and the file name of my project. Is there something I might have missed? On the localhost:3333 site it says "listing directory /.../" in the tab.

    • @gerb0n
      @gerb0n 5 лет назад

      In the video he is using an older @angular/cli which outputs the build-output directly in /dist. Nowadays with the later versions of @angular/cli it outputs in dist/[projectname]. To fix it just change the webDir to 'dist/[projectname]' inside the capacitor.config.json.

  • @bhaskarkaushal8553
    @bhaskarkaushal8553 6 лет назад

    Why does it shows undefined in windows alert box

    • @Fireship
      @Fireship  6 лет назад +1

      Desktop just needs an ENV variable to access geo coord data. github.com/electron/electron/blob/master/docs/api/environment-variables.md

  • @aashishjangra
    @aashishjangra 6 лет назад

    What editor u using?

  • @pilearn1266
    @pilearn1266 3 года назад

    Today how even think about it

  • @RageBasterd
    @RageBasterd 6 лет назад

    definitly on my radar but ill wait for a beta release before i actualy make something with it.

    • @Fireship
      @Fireship  6 лет назад

      That's smart, it's not quite ready for production yet.

  • @bigbriggy
    @bigbriggy 6 лет назад

    Anyone else getting issues following this, I get the following;
    app.component.ts (27,38): Property 'coords' does not exist on type '{}'.
    Running angular version 4.2.4

    • @nicolashenao3029
      @nicolashenao3029 6 лет назад +2

      I got that error too, try replacing pos.coords with pos['coords'] and TS won't complain

  • @bf-xi3om
    @bf-xi3om 4 года назад

    Is This video still valid in 2020 ?

  • @sirjohndestro8245
    @sirjohndestro8245 6 лет назад

    This shit is dope

  • @tharunrajoptimus5229
    @tharunrajoptimus5229 2 года назад

    I was happy until I saw
    Lat: undefined; Lng: undefined on windows 💀☠️👽

  • @manishmunjal-jeenasikho
    @manishmunjal-jeenasikho Год назад

    I am using external self created angular library in my project. In project when I do "ionic/npx cap add android" it works fine, and when I do "ionic/npx cap sync android" it gives an error project/android/src/main not found. Why it is finding assets in android/src/main rather /android/app/src/main

  • @tanoryjakaperdana1419
    @tanoryjakaperdana1419 3 года назад

    As far as i know, every single digital eletcronic device has Capacitor inside it..

  • @MrOnizukakira
    @MrOnizukakira 6 лет назад +1

    what about angularFire2 push notifications with angular 5 SwPush() is there any update one that ?

    • @Fireship
      @Fireship  6 лет назад +1

      That's on my list. I've done a bunch of push notification work recently and have some snippets to share.

    • @MrOnizukakira
      @MrOnizukakira 6 лет назад +1

      thank you very much! looking forward to see them

  • @mr_don_key
    @mr_don_key 5 лет назад

    callback is OLD! use async await! :) Much easier....

  • @MrOnizukakira
    @MrOnizukakira 6 лет назад +1

    first one to see the video !! thank you

    • @Fireship
      @Fireship  6 лет назад

      Nice work, thanks for watching :)

    • @razakadam74
      @razakadam74 6 лет назад

      you beat me to it, lets see next video :)

  • @AmxCsifier
    @AmxCsifier 2 года назад

    You missed the opportunity to call the app capp haha

  • @Somens8Dworld
    @Somens8Dworld Месяц назад

    fuck everything use flutter

  • @Rundik
    @Rundik 5 лет назад

    just a simple advice to those who want to make native apps with web technologies
    don't

  • @peacedove9038
    @peacedove9038 6 лет назад

    Sir what's the difference between ionic 4 and capacitor? can they no do the something like deploying electron app?
    thank you