Top Banner
I knew there had to be a be.er way to build mobile app Alius Petraška, Senior Mobile Developer
58
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: I knew there had to be a better way to build mobile apps

I  knew  there  had  to  be  a  be.er  way  to  build  mobile  app  Alius  Petraška,  Senior  Mobile  Developer  

Page 2: I knew there had to be a better way to build mobile apps
Page 3: I knew there had to be a better way to build mobile apps

This talk will go on for!12 hours *

* not really

Page 4: I knew there had to be a better way to build mobile apps

You want to make mobile app because

•  The world is moving

•  Everybody's making mobile apps these days

•  It makes million dollars

•  For your business

•  ...

Page 5: I knew there had to be a better way to build mobile apps
Page 6: I knew there had to be a better way to build mobile apps
Page 7: I knew there had to be a better way to build mobile apps
Page 8: I knew there had to be a better way to build mobile apps
Page 9: I knew there had to be a better way to build mobile apps
Page 10: I knew there had to be a better way to build mobile apps
Page 11: I knew there had to be a better way to build mobile apps
Page 12: I knew there had to be a better way to build mobile apps

Native Apps

•  Proficiency in each platform required

•  Entirely separate code bases

•  Timely & expensive development

•  Diminishing returns

•  More Platforms. More Problems.

•  Why are we still coding for multiple platforms?

Page 13: I knew there had to be a better way to build mobile apps

But…

•  You're not mobile app developer?

•  You don't know Java, Objective-C?

•  You want to build app that runs !everywhere

•  Other ten thousand reasons...

Page 14: I knew there had to be a better way to build mobile apps

you want to go with !cool web technologies…

Page 15: I knew there had to be a better way to build mobile apps

Hybrid Apps

•  Hybrid Apps: HTML5 that acts like Native

•  Web wrapped in native layer

•  Direct access to native APIs

•  Familiar web dev environment

•  Develop a single code base (web platform)

Page 16: I knew there had to be a better way to build mobile apps
Page 17: I knew there had to be a better way to build mobile apps

!Let’s try Hybrid!

Page 18: I knew there had to be a better way to build mobile apps

write-once-run-everywhere

Page 19: I knew there had to be a better way to build mobile apps
Page 20: I knew there had to be a better way to build mobile apps

History

2009: PhoneGap started at Nitobi 2011: PhoneGap purchased by Adobe 2012: PhoneGap donated from Adobe to Apache 2012: renamed as Cordova Today: PhoneGap is a distribution of Cordova

Page 21: I knew there had to be a better way to build mobile apps
Page 22: I knew there had to be a better way to build mobile apps

Under the hood

The UI layer is a web browser view

•  100% width •  100% height

Headless web browser •  No URL bar •  No decorations •  No zooming •  No text selection

Page 23: I knew there had to be a better way to build mobile apps

How does Cordova work?

Page 24: I knew there had to be a better way to build mobile apps
Page 25: I knew there had to be a better way to build mobile apps
Page 26: I knew there had to be a better way to build mobile apps
Page 27: I knew there had to be a better way to build mobile apps
Page 28: I knew there had to be a better way to build mobile apps

index.html

Page 29: I knew there had to be a better way to build mobile apps

index.js

Page 30: I knew there had to be a better way to build mobile apps

camera usage examle

Page 31: I knew there had to be a better way to build mobile apps
Page 32: I knew there had to be a better way to build mobile apps
Page 33: I knew there had to be a better way to build mobile apps
Page 34: I knew there had to be a better way to build mobile apps

Angular JS •  Awesome MVC framework

•  Developed by Google and the community

•  Features

•  Live data binding •  Two-way binding •  Attaching code-behind to DOM element •  Directives •  Repeating DOM elements •  Templates •  Dependencies Injection

•  Best Single Page Application Framework

Page 35: I knew there had to be a better way to build mobile apps

Angular JS •  Awesome MVC framework

•  Developed by Google and the community

•  Features

•  Live data binding •  Two-way binding •  Attaching code-behind to DOM element •  Directives •  Repeating DOM elements •  Templates •  Dependencies Injection

•  Best Single Page Application Framework

Page 36: I knew there had to be a better way to build mobile apps

h.p://www.appgyver.com/  

Page 37: I knew there had to be a better way to build mobile apps

h.p://goratchet.com/  

Page 38: I knew there had to be a better way to build mobile apps

h.p://ionicframework.com/  

Page 39: I knew there had to be a better way to build mobile apps

http://ionicframework.com/

•  Started in 2014

•  13700 stars on Github

•  Top 50 most popular open source projects in the world

•  Over 320,000 apps created 2014 (Every month, over 50,000 new apps)

•  Based on Angular JS

•  Set of tools to create hybrid apps

Page 40: I knew there had to be a better way to build mobile apps

Ionic Framework

•  A Front-end framework for mobile apps

•  Contains a lot of mobile-optimized HTML, CSS and JS components

•  Uses Angular JS to power up your mobile apps

•  Uses Cordova to create, build, run, deploy mobile apps

Page 41: I knew there had to be a better way to build mobile apps

Ionic solves screen size issues

Page 42: I knew there had to be a better way to build mobile apps

Example #1

Page 43: I knew there had to be a better way to build mobile apps

Example #2

Page 44: I knew there had to be a better way to build mobile apps

Example #3

Page 45: I knew there had to be a better way to build mobile apps

Ionic Creator

https://creator.ionic.io  

Page 46: I knew there had to be a better way to build mobile apps

Intel XDK

Page 47: I knew there had to be a better way to build mobile apps

but I’m Windows guy…

Page 48: I knew there had to be a better way to build mobile apps

WinJS

Page 49: I knew there had to be a better way to build mobile apps

http://try.buildwinjs.com/

Page 50: I knew there had to be a better way to build mobile apps

C# The best language for Windows development

Modern Features • Advanced Tools • Proven Libraries • Large Community

Page 51: I knew there had to be a better way to build mobile apps
Page 52: I knew there had to be a better way to build mobile apps

Intro

Page 53: I knew there had to be a better way to build mobile apps

Xamarin’s Unique Approach

Page 54: I knew there had to be a better way to build mobile apps

Xamarin Studio

Page 55: I knew there had to be a better way to build mobile apps

Anything you can do in Objective-C, Swift or Java can be done in C# with Xamarin!

Page 56: I knew there had to be a better way to build mobile apps

Emerging Technologies & Devices

Android Wear Google Glass Amazon Fire Phone Amazon Fire TV

Page 57: I knew there had to be a better way to build mobile apps

a

C# runs on ~2.6 Billion Devices

Page 58: I knew there had to be a better way to build mobile apps

@aliuspetraska