Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Ionicでモバイルアプリ開発のむずかしいを簡単に

puku0x
October 02, 2019

 Ionicでモバイルアプリ開発のむずかしいを簡単に

Re:Build×diffeasy ITのむずかしいを簡単にする会 - LT会 #6
https://diffeasy.connpass.com/event/147217/

puku0x

October 02, 2019
Tweet

More Decks by puku0x

Other Decks in Technology

Transcript

  1. Native Mobile Apps • High performance • Different platforms and

    languages ◦ Android: Kotlin/Java ◦ iOS: Swift/Objective-C ◦ Your code cannot be shared 4
  2. HTML5 Mobile Apps • Multi platform • Built with HTML/CSS/JavaScript

    ◦ You can share your code across platforms ☺ 5
  3. Difficulties • Performance (Note: HTML5 apps are performant in most

    use cases) • Design system ◦ Android: Material design ◦ iOS: Human Interface Guidelines 6
  4. Ionic • Mobile UI framework • Supports both iOS and

    Android • Built with Web Components (v4〜) ◦ Framework agnostic 9
  5. • Better code splitting & rendering performance • Archiving 60fps

    with <ion-virtual-scroll /> • Perceived performance improvement with skeltons Performance 12
  6. 14

  7. Ionic CLI $ npm install -g ionic $ ionic start

    my-app $ cd my-app $ ionic serve $ ionic cordova build android --prod --release 15
  8. • Mobile debugger • Plugins included ◦ Camera, Geolocation, BLE,

    Media, InAppBrowser, AdMob, ... $ ionic serve --devapp Ionic DevApp https://ionicframework.com/docs/appflow/devapp/ 16
  9. import { Camera, CameraOptions } from '@ionic-native/camera/ngx'; constructor(private camera: Camera)

    {} ... const options: CameraOptions = { destinationType: this.camera.DestinationType.FILE_URI, encodingType: this.camera.EncodingType.JPEG, } this.camera.getPicture(options).then(imageData => { let base64Image = 'data:image/jpeg;base64,' + imageData; }); Ionic Native 17
  10. Recap • Ionic makes mobile app development easy ◦ Supports

    famous frameworks ◦ “One code base, any platform” • Join Slack team https://ionic-jp.herokuapp.com/ • Try it now! 20 $ npm -g ionic && ionic start