Presentation is loading. Please wait.

Presentation is loading. Please wait.

Hybrid or Native?! Doncho Minkov Telerik Software Academy Senior Technical Trainer

Similar presentations


Presentation on theme: "Hybrid or Native?! Doncho Minkov Telerik Software Academy Senior Technical Trainer"— Presentation transcript:

1 Hybrid or Native?! Doncho Minkov Telerik Software Academy http://academy.telerik.com Senior Technical Trainer http://minkov.it

2 Mobile applications overview Mobile applications overview Devices and platforms Devices and platforms Android, iOS, Windows Phone, Firefox OS and more Android, iOS, Windows Phone, Firefox OS and more Types of mobile applications Types of mobile applications Web, Native and Hybrid applications Overview Web, Native and Hybrid applications Overview Means for Hybrid applications development Means for Hybrid applications development

3

4 Mobile applications are software applications running on mobile devices Mobile applications are software applications running on mobile devices i.e. tablets, smartphones and other mobile devices i.e. tablets, smartphones and other mobile devices Mobile applications are often available through app distribution platforms (stores) Mobile applications are often available through app distribution platforms (stores) Apple App Store, Google Play, Windows Phone Store, BlackBerry App World, etc… Apple App Store, Google Play, Windows Phone Store, BlackBerry App World, etc…

5 The most prominent platforms are as follows: The most prominent platforms are as follows: Apple iOS Apple iOS Microsoft Windows Phone 8 and Windows 8 Microsoft Windows Phone 8 and Windows 8 Google Android Google Android Firefox OS (yet to come) Firefox OS (yet to come) BlackBerry OS BlackBerry OS webOS by LG (formally product of HP) webOS by LG (formally product of HP) Nokia Symbian OS Nokia Symbian OS Samsung Bada (stopped from development) Samsung Bada (stopped from development) Tizen by Intel and Samsung Tizen by Intel and Samsung

6 As for Q 2 2013 (August 2013 ) the market share of mobile platforms is as follows: As for Q 2 2013 (August 2013 ) the market share of mobile platforms is as follows: Operating System Market Share by IDC Market Share by Garthner Android~79.3%~79.0% iOS~13.2%~14.2% Windows Phone ~3.7%~3.3% BlackBerry~2.9%~2.7% Symbian~0.2%~0.3% Other~0.8%~0.6% Gartner numbers: http://www.gartner.com/newsroom/id/2573415 Gartner numbers: http://www.gartner.com/newsroom/id/2573415http://www.gartner.com/newsroom/id/2573415 IDC numbers: http://www.idc.com/getdoc.jsp?containerId=prUS24257413 IDC numbers: http://www.idc.com/getdoc.jsp?containerId=prUS24257413http://www.idc.com/getdoc.jsp?containerId=prUS24257413

7

8 Each platform has its own development platform and tools Each platform has its own development platform and tools Windows Phone/Windows 8 – Visual Studio Windows Phone/Windows 8 – Visual Studio Skills: C#, VB.NET or C++ Skills: C#, VB.NET or C++ Android – Eclipse and Android Dev tools Android – Eclipse and Android Dev tools Skills: Java and/or C++ Skills: Java and/or C++ iOS and iOS mobile – xCode iOS and iOS mobile – xCode Skills: Objective-C Skills: Objective-C

9 Each platform has its own development platform and tools Each platform has its own development platform and tools Firefox OS – Any text editor Firefox OS – Any text editor Skills: Web, HTML and JavaScript Skills: Web, HTML and JavaScript BlackBerry OS – QNX Momentics IDE BlackBerry OS – QNX Momentics IDE Java and/or C++ Java and/or C++ Symbian OS – Carbide.c++ or Eclipse Pulsar Symbian OS – Carbide.c++ or Eclipse Pulsar Skills: C++ or Java Skills: C++ or Java

10 Operating System ToolsSkillsAndroid Eclipse and ADT Java or C++ iOSxCodeObjective-C Windows Phone Windows 8 Visual Studio C#/VB or C++ BlackBerry OS QNX Momentics Java Firefox OS Text Editor HTML/JavaScript Symbian Carbide.c++ or Eclipse Pulsar C++ or Java

11

12 As the technology evolves, so does the power of Mobile apps As the technology evolves, so does the power of Mobile apps More and more companies introduce their own mobile apps More and more companies introduce their own mobile apps Three common types of applications Three common types of applications Web mobile applications Web mobile applications Native mobile applications Native mobile applications Hybrid mobile applications Hybrid mobile applications

13

14 Web mobile apps are not real applications Web mobile apps are not real applications They are web sites that has the look and feel of a mobile app They are web sites that has the look and feel of a mobile app Developed in any Web technology Developed in any Web technology ASP.NET, SPA application, PHP, Java, etc… ASP.NET, SPA application, PHP, Java, etc… Web mobile apps run in the browser Web mobile apps run in the browser Installed from an URL Installed from an URL They are actually a web site/application, working in chromeless browser They are actually a web site/application, working in chromeless browser

15 For security reasons web mobile apps cannot use the full power of the mobile OS For security reasons web mobile apps cannot use the full power of the mobile OS APIs like Geolocation, File System and Camera are inaccessible APIs like Geolocation, File System and Camera are inaccessible The users must explicitly confirm the access to some of the APIs, every time s/he opens the app The users must explicitly confirm the access to some of the APIs, every time s/he opens the app Web mobile application are most suitable for information applications and apps not using mobile functionality Web mobile application are most suitable for information applications and apps not using mobile functionality Like a RSS application, news app Like a RSS application, news app

16

17 Native applications are applications developed for running on a specific Operating Native applications are applications developed for running on a specific Operating They run only on its operating system They run only on its operating system Native apps must be installed either using an Application Store (Google Play, App Store) or through an external app installer Native apps must be installed either using an Application Store (Google Play, App Store) or through an external app installer

18 Native apps have full access to resources of OS Native apps have full access to resources of OS Geolocation, File System, Accelerometer, etc. Geolocation, File System, Accelerometer, etc. The user must confirm the access to device APIs The user must confirm the access to device APIs Yet, only once, at the installation of the app Yet, only once, at the installation of the app Native apps are developed on the platform and are hard to be ported to other platforms Native apps are developed on the platform and are hard to be ported to other platforms iPhone apps with Objective-C iPhone apps with Objective-C Android apps with Java Android apps with Java Windows Phone apps with C# Windows Phone apps with C#

19 Native apps are suitable when developing: Native apps are suitable when developing: Games Games The developer can use the devices GPU The developer can use the devices GPU Apps with complex processing Apps with complex processing The app must do a work of processing The app must do a work of processing Apps where 10 milliseconds slowdown is crucial Apps where 10 milliseconds slowdown is crucial

20 Learning all Objective-C, Java and C# is not good enough?

21 Hybrid apps are part native, part web apps Hybrid apps are part native, part web apps Yet they are neither Yet they are neither Also called cross-platform Also called cross-platform Hybrid apps are like native apps Hybrid apps are like native apps They can be published to an application store They can be published to an application store They can be installed on the device They can be installed on the device They can use the power of the device They can use the power of the device Hybrid apps are like web apps Hybrid apps are like web apps Coded in web technologies like HTML and JS Coded in web technologies like HTML and JS

22 Hybrid applications leverage the engine of the default browsers for the platform Hybrid applications leverage the engine of the default browsers for the platform Safari mobile for iOS Safari mobile for iOS Android browser for Android Android browser for Android IE 9 mobile for Windows Phone 7 IE 9 mobile for Windows Phone 7 IE 10 mobile for Windows Phone 8 IE 10 mobile for Windows Phone 8 The browser engine renders the HTML and process the JavaScript locally to the device The browser engine renders the HTML and process the JavaScript locally to the device There is an abstraction layer, enabling the app to access device capabilities There is an abstraction layer, enabling the app to access device capabilities

23 Hybrid applications run in a native container on a mobile device Hybrid applications run in a native container on a mobile device The native container uses the browser engine to run the app The native container uses the browser engine to run the app UIWebView for iOS UIWebView for iOS WebView for Android WebView for Android WebBrowser in Windows Phone 8 WebBrowser in Windows Phone 8 This enables the app to use the device capabilities This enables the app to use the device capabilities

24 Most of the default mobile browsers use WebKit rendering engine Most of the default mobile browsers use WebKit rendering engine That means iOS, Android, Blackberry, etc. That means iOS, Android, Blackberry, etc. Windows Phones IE uses Trident engine Windows Phones IE uses Trident engine That is why most hybrid applications can be tested on simulators, not only on emulators That is why most hybrid applications can be tested on simulators, not only on emulators

25

26 Since the rise of HTML 5 (2010) more and more hybrid application platforms surfaced Since the rise of HTML 5 (2010) more and more hybrid application platforms surfaced Apache Cordova (late PhoneGap) Apache Cordova (late PhoneGap) Appcelerator Titanium Appcelerator Titanium Xamarin Xamarin And more And more Most hybrid app platforms targeted web developers with JavaScript skills Most hybrid app platforms targeted web developers with JavaScript skills Since HTML is supported everywhere Since HTML is supported everywhere

27 Apache Cordova (late PhoneGap) is a platform for creating mobile applications using web technologies Apache Cordova (late PhoneGap) is a platform for creating mobile applications using web technologies The applications run on the most used platforms The applications run on the most used platforms iOS, Android, BlackBerry, Windows Phone, etc… iOS, Android, BlackBerry, Windows Phone, etc… Applications run in a web view Applications run in a web view Apache Cordova was created by Nitobi Software, and was acquired by Adobe Systems in 2011 Apache Cordova was created by Nitobi Software, and was acquired by Adobe Systems in 2011

28 Appcelerator Titanium is a product of Appcelerator Inc. Appcelerator Titanium is a product of Appcelerator Inc. Use web technologies (like HTML and JS) to build cross-platform (hybrid) applications Use web technologies (like HTML and JS) to build cross-platform (hybrid) applications Apps run on most platforms – Android, BlackBerry, iOS and Tizen Apps run on most platforms – Android, BlackBerry, iOS and Tizen Applications run in a web view Applications run in a web view Titanium has its own IDE, called Titatinum Studio and simulators Titanium has its own IDE, called Titatinum Studio and simulators

29 Xamarin is a cross-mobile applications platform Xamarin is a cross-mobile applications platform Yet, it does not use web technologies Yet, it does not use web technologies Xamarin now continues the development of the Mono platform Xamarin now continues the development of the Mono platform Mono, MonoTouch, and Mono for Android Mono, MonoTouch, and Mono for Android Applications are developed using C# and.NET like platform (Mono) Applications are developed using C# and.NET like platform (Mono) Apps run on iOS, Android and Windows Phone Apps run on iOS, Android and Windows Phone

30 форум програмиране, форум уеб дизайн курсове и уроци по програмиране, уеб дизайн – безплатно програмиране за деца – безплатни курсове и уроци безплатен SEO курс - оптимизация за търсачки уроци по уеб дизайн, HTML, CSS, JavaScript, Photoshop уроци по програмиране и уеб дизайн за ученици ASP.NET MVC курс – HTML, SQL, C#,.NET, ASP.NET MVC безплатен курс "Разработка на софтуер в cloud среда" BG Coder - онлайн състезателна система - online judge курсове и уроци по програмиране, книги – безплатно от Наков безплатен курс "Качествен програмен код" алго академия – състезателно програмиране, състезания ASP.NET курс - уеб програмиране, бази данни, C#,.NET, ASP.NET курсове и уроци по програмиране – Телерик академия курс мобилни приложения с iPhone, Android, WP7, PhoneGap free C# book, безплатна книга C#, книга Java, книга C# Николай Костов - блог за програмиране http://academy.telerik.com


Download ppt "Hybrid or Native?! Doncho Minkov Telerik Software Academy Senior Technical Trainer"

Similar presentations


Ads by Google