SlideShare ist ein Scribd-Unternehmen logo
1 von 30
Downloaden Sie, um offline zu lesen
© 2010 WinWire TechnologiesWinWire Technologies, Inc. Confidential
Best Practices: Hybrid App Implementation
@WinWire
Wired2Win Webinar Series
© 2010 WinWire Technologies
Who We Are
IT solutions company
making information
actionable for the
enterprises in the
mobile-cloud world
Collaborative and
Analytics solutions
leveraging pre-built
solution accelerators
Cloud,
Collaboration &
Analytics Technologies
Mobility,
© 2010 WinWire Technologies
© 2010 WinWire Technologies
Agenda
• Hybrid App: An Introduction
• Comparing Web, Native and Hybrid Development Approach
• Hybrid App Architecture: Web View & Native Wrapper Integration
• Performance Optimization
• Native/Web View Communication
• Benefits and Best Practices of Hybrid Application Development
© 2010 WinWire Technologies
© 2010 WinWire Technologies
Hybrid App: An Introduction
A mobile app that primarily relies on providing
functionality by running web app or displaying Web
content inside of a native app container or wrapper
Hybrid App
© 2010 WinWire Technologies
Hybrid App
Web
Content
HTML5 Web pages
just displaying
information
Interactive
HTML5/JavaScript
web pages that also
include app
functionality
Web
Application
Content & App
functionality can
reside on the local
mobile device or
fetched from a
remote server on an
as-needed basis
Remote
& Local
Content-intensive
apps such as
newspapers,
magazines, support
forums, etc.
Optimal
Usage
© 2010 WinWire Technologies
© 2010 WinWire Technologies
Comparison
Native
App functionality is built around native
device mobile programming languages
100% HTML5 mobile app without any
native components
Mobile Web
Contains no native components and
embeds web & own web extensions
(HTML5/CSS/JavaScript) into a native
shell
Hybrid Framework
(Phone Gap, Sencha Mobile)
Extended Native App to contain Web or
Hybrid Framework components
100% Native?
Objective C Java C#
© 2010 WinWire Technologies
© 2010 WinWire Technologies
Web View
All Web
content/app runs
inside of Web
Views within a
Native
Wrapper/Container
© 2010 WinWire Technologies
Web View
Uniform Web content display within each defined Web View
Uniform Web page display across devices and browsers with no
change to the code base
Responsive Web Design
Optimal viewing experience
Easy reading & navigation
Minimum resizing, panning & scrolling
© 2010 WinWire Technologies
Web View
Multi Platform Support
Leveraging
Hybrid App for
Multi-platform
Support
Container is written in Native mobile language
HTML5 Web components can be reused across platforms without customization
Objective C Container + HTML5 Java Container + HTML5 C# Container + HTML5
Leveraging
Hybrid App for
Cross-platform
Support
Container is written in Cross-platform tool, only ONCE
HTML5 Web components can be reused across platforms without customization
+ +OR
© 2010 WinWire Technologies
Web View
Multi Form Factor Support
iPhone
5: 1136×640
4S: 640×960
1st & 2nd generations:
1024×768
3rd generation:
2048×1536
iPad
1024×768
iPad Mini
For various Screen Sizes:
Small: 426dp x 320dp
Normal: 470dp x 320dp
Large: 640dp x 480dp
Extra-large: 960dp x
720dp
Android
Phones
& Tablets
Responsive Web Design enables support across many form factors without a need to rewrite HTML5 code
© 2010 WinWire Technologies
© 2010 WinWire Technologies
Performance Optimization
Responsive Web Design
Functionality
Graphics
Data Access
Faster performance
Tighter feature integration with the device
Implementation & access to complete set of device-specific functionality
Graphic-intensive pages tend to render slowly in HTML
Require bandwidth to be accessed from remote server
Animation is optimized within native view
Remote content access for dynamically generated HTML pages
Use Local HTML access for static content
Optimize Data Access
© 2010 WinWire Technologies
© 2010 WinWire Technologies
Native/Web View Communication
Web view component is weaved
along with native components
for seamless functioning
Separate functional entity
consisting of HTML, JavaScript
and CSS to send requests, fetch,
and display the response
To-and-fro communication with
native app to allow users to
control the web view from the
native and vice versa.
Native/Web View Communication
Cross platform Web View Functionality
© 2010 WinWire Technologies
Native to Web View
Direct Web View API Invocation
© 2010 WinWire Technologies
Native to Web View: Dos & Don’ts
Dos
Facilitate direct communication for opening URLs
Implement navigation methods using native UI components
Native aspects to be at the top and bottom and the web view to be in
between these
Don’ts
Creating a web view subclass to add an address bar and navigation controls
Placing native controls on top of the web view to perform actions
Using mobile devices for controlling the web view
© 2010 WinWire Technologies
Web View to Native
Direct Web View API Invocation
Web View Event Captures
© 2010 WinWire Technologies
Web View to Native: Dos & Don’ts
Dos
Implement event listeners for commonly used events
Implement events like swipe event, if user is notified of registration of swipe
event
Don’ts
Implementing all event listeners without looking into the effects
Implementing events counter-intuitively
© 2010 WinWire Technologies
JavaScript Injections
© 2010 WinWire Technologies
JavaScript Injections: Dos & Don’ts
Dos
Use ‘evalJS’ carefully to extract content out of the loaded web page in the
web view
Think of using ‘evalJS’ only as a last resort
Don’ts
Injecting JavaScript event listeners for events like scrolling, single tap
Using ‘evalJS’ as the only means to develop the app that requires web view
and native communication
Injecting very long JavaScript; injecting JavaScript into the web view
wherever possible
Exercise caution when trying to inject JavaScript into the web view on
different platforms
© 2010 WinWire Technologies
© 2010 WinWire Technologies
App Store
Discoverability
Single Codebase
Development Cost
Optimization
HTML5 Developer
Ubiquity
Native Mobile Device-
Specific Functionality
Rapid Development
Cycle
Maintenance Cost
Optimization
Benefits
© 2010 WinWire Technologies
Non-Native UI Interface:
Not as Attractive
Native UI Performance
Superior
Platform Variations for
Web View
Implementation
Latency in Fetching
Remote HTML Content
Extensive Native/Web
Data Integration
Non-Streamlined Coding
– Patchwork Under the
Hood
Challenges
© 2010 WinWire Technologies
Best Practices
Color Scheme consistency with Web Content
Avoids a Patchwork on the Presentation Layer
‘Illusion’ of Single App; not an App within App
Color Scheme
Cache Web Content
Minimizes Latency on Server Content
Allows for Offline Content Viewing
Content Search Functionality in Native View
Improves Search Return Performance
Device-specific function integration into Search
Mobile-Specific Features within Native App
Push Notification Settings
Calendar Synchronization Switch
Content
Search Mobility
© 2010 WinWire Technologies
Join us for our Next Webinar on Wired2Win Webinar Series!
Date: 15 May, 2014
Time: 9 am PT
© 2010 WinWire TechnologiesWinWire Technologies, Inc. Confidential
WinWire Technologies, Inc. Confidential
Reach out to us at marketing@winwire.com
Visit us: www.winwire.com
http://www.winwire.com/winwire-blog/
www.twitter.com/winwire
Thank You

Weitere ähnliche Inhalte

Mehr von WinWire Technologies Inc

Accelerate Application Innovation Journey with Azure Kubernetes Service
Accelerate Application Innovation Journey with Azure Kubernetes Service Accelerate Application Innovation Journey with Azure Kubernetes Service
Accelerate Application Innovation Journey with Azure Kubernetes Service WinWire Technologies Inc
 
Azure Arc - Managing Hybrid and Multi-Cloud Platforms
Azure Arc - Managing Hybrid and Multi-Cloud PlatformsAzure Arc - Managing Hybrid and Multi-Cloud Platforms
Azure Arc - Managing Hybrid and Multi-Cloud PlatformsWinWire Technologies Inc
 
Build a Modern Workplace using Microsoft Teams
Build a Modern Workplace using Microsoft TeamsBuild a Modern Workplace using Microsoft Teams
Build a Modern Workplace using Microsoft TeamsWinWire Technologies Inc
 
Build distributed, highly scalable applications in .NET using Microsoft Orleans
Build distributed, highly scalable applications in .NET using Microsoft OrleansBuild distributed, highly scalable applications in .NET using Microsoft Orleans
Build distributed, highly scalable applications in .NET using Microsoft OrleansWinWire Technologies Inc
 
Getting Started with Infrastructure as Code
Getting Started with Infrastructure as CodeGetting Started with Infrastructure as Code
Getting Started with Infrastructure as CodeWinWire Technologies Inc
 
Secure Your Cloud Environment with Azure Active Directory (AD)
Secure Your Cloud Environment with Azure Active Directory (AD)Secure Your Cloud Environment with Azure Active Directory (AD)
Secure Your Cloud Environment with Azure Active Directory (AD)WinWire Technologies Inc
 
Building Hybrid Cloud Apps with Azure and Azure stack
Building Hybrid Cloud Apps with Azure and Azure stackBuilding Hybrid Cloud Apps with Azure and Azure stack
Building Hybrid Cloud Apps with Azure and Azure stackWinWire Technologies Inc
 
Microsoft Teams – The Future of Teamwork in Office 365
Microsoft Teams – The Future of Teamwork in Office 365Microsoft Teams – The Future of Teamwork in Office 365
Microsoft Teams – The Future of Teamwork in Office 365WinWire Technologies Inc
 
Designing Resilient Applications on Microsoft Azure/Disaster Recovery of Appl...
Designing Resilient Applications on Microsoft Azure/Disaster Recovery of Appl...Designing Resilient Applications on Microsoft Azure/Disaster Recovery of Appl...
Designing Resilient Applications on Microsoft Azure/Disaster Recovery of Appl...WinWire Technologies Inc
 
Getting Ready for Hybrid SharePoint – SharePoint On-Premise, Office 365 & Az...
Getting Ready for Hybrid SharePoint –  SharePoint On-Premise, Office 365 & Az...Getting Ready for Hybrid SharePoint –  SharePoint On-Premise, Office 365 & Az...
Getting Ready for Hybrid SharePoint – SharePoint On-Premise, Office 365 & Az...WinWire Technologies Inc
 
Azure Serverless with Functions, Logic Apps, and Event Grid
Azure Serverless with Functions, Logic Apps, and Event Grid  Azure Serverless with Functions, Logic Apps, and Event Grid
Azure Serverless with Functions, Logic Apps, and Event Grid WinWire Technologies Inc
 
Drive Your Digital Transformation with Microsoft Dynamics 365
Drive Your Digital Transformation with Microsoft Dynamics 365 Drive Your Digital Transformation with Microsoft Dynamics 365
Drive Your Digital Transformation with Microsoft Dynamics 365 WinWire Technologies Inc
 
Modernize Your Infrastructure and Apps with Microsoft Azure
Modernize Your Infrastructure and Apps with Microsoft AzureModernize Your Infrastructure and Apps with Microsoft Azure
Modernize Your Infrastructure and Apps with Microsoft AzureWinWire Technologies Inc
 
Modern Data Security for the Enterprises – SQL Server & Azure SQL Database
Modern Data Security for the Enterprises – SQL Server & Azure SQL DatabaseModern Data Security for the Enterprises – SQL Server & Azure SQL Database
Modern Data Security for the Enterprises – SQL Server & Azure SQL DatabaseWinWire Technologies Inc
 
Building Intelligent Cloud with Microsoft Azure
Building Intelligent Cloud with Microsoft AzureBuilding Intelligent Cloud with Microsoft Azure
Building Intelligent Cloud with Microsoft AzureWinWire Technologies Inc
 
ASP.NET Core 1.0: Understanding ASP.NET Core 1.0 (ASP.NET 5)
ASP.NET Core 1.0: Understanding ASP.NET Core 1.0 (ASP.NET 5) ASP.NET Core 1.0: Understanding ASP.NET Core 1.0 (ASP.NET 5)
ASP.NET Core 1.0: Understanding ASP.NET Core 1.0 (ASP.NET 5) WinWire Technologies Inc
 

Mehr von WinWire Technologies Inc (20)

Accelerate Application Innovation Journey with Azure Kubernetes Service
Accelerate Application Innovation Journey with Azure Kubernetes Service Accelerate Application Innovation Journey with Azure Kubernetes Service
Accelerate Application Innovation Journey with Azure Kubernetes Service
 
CRM Technology Trends to Watch in 2020
CRM Technology Trends to Watch in 2020CRM Technology Trends to Watch in 2020
CRM Technology Trends to Watch in 2020
 
Azure Synapse Analytics
Azure Synapse AnalyticsAzure Synapse Analytics
Azure Synapse Analytics
 
Azure Arc - Managing Hybrid and Multi-Cloud Platforms
Azure Arc - Managing Hybrid and Multi-Cloud PlatformsAzure Arc - Managing Hybrid and Multi-Cloud Platforms
Azure Arc - Managing Hybrid and Multi-Cloud Platforms
 
Build a Modern Workplace using Microsoft Teams
Build a Modern Workplace using Microsoft TeamsBuild a Modern Workplace using Microsoft Teams
Build a Modern Workplace using Microsoft Teams
 
Build distributed, highly scalable applications in .NET using Microsoft Orleans
Build distributed, highly scalable applications in .NET using Microsoft OrleansBuild distributed, highly scalable applications in .NET using Microsoft Orleans
Build distributed, highly scalable applications in .NET using Microsoft Orleans
 
Getting Started with Infrastructure as Code
Getting Started with Infrastructure as CodeGetting Started with Infrastructure as Code
Getting Started with Infrastructure as Code
 
Box to OneDrive Migration
Box to OneDrive MigrationBox to OneDrive Migration
Box to OneDrive Migration
 
Secure Your Cloud Environment with Azure Active Directory (AD)
Secure Your Cloud Environment with Azure Active Directory (AD)Secure Your Cloud Environment with Azure Active Directory (AD)
Secure Your Cloud Environment with Azure Active Directory (AD)
 
Building Hybrid Cloud Apps with Azure and Azure stack
Building Hybrid Cloud Apps with Azure and Azure stackBuilding Hybrid Cloud Apps with Azure and Azure stack
Building Hybrid Cloud Apps with Azure and Azure stack
 
Microsoft Teams – The Future of Teamwork in Office 365
Microsoft Teams – The Future of Teamwork in Office 365Microsoft Teams – The Future of Teamwork in Office 365
Microsoft Teams – The Future of Teamwork in Office 365
 
Designing Resilient Applications on Microsoft Azure/Disaster Recovery of Appl...
Designing Resilient Applications on Microsoft Azure/Disaster Recovery of Appl...Designing Resilient Applications on Microsoft Azure/Disaster Recovery of Appl...
Designing Resilient Applications on Microsoft Azure/Disaster Recovery of Appl...
 
Getting Ready for Hybrid SharePoint – SharePoint On-Premise, Office 365 & Az...
Getting Ready for Hybrid SharePoint –  SharePoint On-Premise, Office 365 & Az...Getting Ready for Hybrid SharePoint –  SharePoint On-Premise, Office 365 & Az...
Getting Ready for Hybrid SharePoint – SharePoint On-Premise, Office 365 & Az...
 
Azure Serverless with Functions, Logic Apps, and Event Grid
Azure Serverless with Functions, Logic Apps, and Event Grid  Azure Serverless with Functions, Logic Apps, and Event Grid
Azure Serverless with Functions, Logic Apps, and Event Grid
 
Drive Your Digital Transformation with Microsoft Dynamics 365
Drive Your Digital Transformation with Microsoft Dynamics 365 Drive Your Digital Transformation with Microsoft Dynamics 365
Drive Your Digital Transformation with Microsoft Dynamics 365
 
Modernize Your Infrastructure and Apps with Microsoft Azure
Modernize Your Infrastructure and Apps with Microsoft AzureModernize Your Infrastructure and Apps with Microsoft Azure
Modernize Your Infrastructure and Apps with Microsoft Azure
 
Modern Data Security for the Enterprises – SQL Server & Azure SQL Database
Modern Data Security for the Enterprises – SQL Server & Azure SQL DatabaseModern Data Security for the Enterprises – SQL Server & Azure SQL Database
Modern Data Security for the Enterprises – SQL Server & Azure SQL Database
 
Migration from eRoom to office 365
Migration from eRoom to office 365 Migration from eRoom to office 365
Migration from eRoom to office 365
 
Building Intelligent Cloud with Microsoft Azure
Building Intelligent Cloud with Microsoft AzureBuilding Intelligent Cloud with Microsoft Azure
Building Intelligent Cloud with Microsoft Azure
 
ASP.NET Core 1.0: Understanding ASP.NET Core 1.0 (ASP.NET 5)
ASP.NET Core 1.0: Understanding ASP.NET Core 1.0 (ASP.NET 5) ASP.NET Core 1.0: Understanding ASP.NET Core 1.0 (ASP.NET 5)
ASP.NET Core 1.0: Understanding ASP.NET Core 1.0 (ASP.NET 5)
 

Kürzlich hochgeladen

presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century educationjfdjdjcjdnsjd
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfsudhanshuwaghmare1
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...apidays
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProduct Anonymous
 
Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024SynarionITSolutions
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoffsammart93
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsTop 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsRoshan Dwivedi
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024The Digital Insurer
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsJoaquim Jorge
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?Igalia
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingEdi Saputra
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...apidays
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MIND CTI
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
Manulife - Insurer Innovation Award 2024
Manulife - Insurer Innovation Award 2024Manulife - Insurer Innovation Award 2024
Manulife - Insurer Innovation Award 2024The Digital Insurer
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024The Digital Insurer
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Scriptwesley chun
 

Kürzlich hochgeladen (20)

presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsTop 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Manulife - Insurer Innovation Award 2024
Manulife - Insurer Innovation Award 2024Manulife - Insurer Innovation Award 2024
Manulife - Insurer Innovation Award 2024
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 

Best Practices - Hybrid App Implementation

  • 1. © 2010 WinWire TechnologiesWinWire Technologies, Inc. Confidential Best Practices: Hybrid App Implementation @WinWire Wired2Win Webinar Series
  • 2. © 2010 WinWire Technologies Who We Are IT solutions company making information actionable for the enterprises in the mobile-cloud world Collaborative and Analytics solutions leveraging pre-built solution accelerators Cloud, Collaboration & Analytics Technologies Mobility,
  • 3. © 2010 WinWire Technologies
  • 4. © 2010 WinWire Technologies Agenda • Hybrid App: An Introduction • Comparing Web, Native and Hybrid Development Approach • Hybrid App Architecture: Web View & Native Wrapper Integration • Performance Optimization • Native/Web View Communication • Benefits and Best Practices of Hybrid Application Development
  • 5. © 2010 WinWire Technologies
  • 6. © 2010 WinWire Technologies Hybrid App: An Introduction A mobile app that primarily relies on providing functionality by running web app or displaying Web content inside of a native app container or wrapper Hybrid App
  • 7. © 2010 WinWire Technologies Hybrid App Web Content HTML5 Web pages just displaying information Interactive HTML5/JavaScript web pages that also include app functionality Web Application Content & App functionality can reside on the local mobile device or fetched from a remote server on an as-needed basis Remote & Local Content-intensive apps such as newspapers, magazines, support forums, etc. Optimal Usage
  • 8. © 2010 WinWire Technologies
  • 9. © 2010 WinWire Technologies Comparison Native App functionality is built around native device mobile programming languages 100% HTML5 mobile app without any native components Mobile Web Contains no native components and embeds web & own web extensions (HTML5/CSS/JavaScript) into a native shell Hybrid Framework (Phone Gap, Sencha Mobile) Extended Native App to contain Web or Hybrid Framework components 100% Native? Objective C Java C#
  • 10. © 2010 WinWire Technologies
  • 11. © 2010 WinWire Technologies Web View All Web content/app runs inside of Web Views within a Native Wrapper/Container
  • 12. © 2010 WinWire Technologies Web View Uniform Web content display within each defined Web View Uniform Web page display across devices and browsers with no change to the code base Responsive Web Design Optimal viewing experience Easy reading & navigation Minimum resizing, panning & scrolling
  • 13. © 2010 WinWire Technologies Web View Multi Platform Support Leveraging Hybrid App for Multi-platform Support Container is written in Native mobile language HTML5 Web components can be reused across platforms without customization Objective C Container + HTML5 Java Container + HTML5 C# Container + HTML5 Leveraging Hybrid App for Cross-platform Support Container is written in Cross-platform tool, only ONCE HTML5 Web components can be reused across platforms without customization + +OR
  • 14. © 2010 WinWire Technologies Web View Multi Form Factor Support iPhone 5: 1136×640 4S: 640×960 1st & 2nd generations: 1024×768 3rd generation: 2048×1536 iPad 1024×768 iPad Mini For various Screen Sizes: Small: 426dp x 320dp Normal: 470dp x 320dp Large: 640dp x 480dp Extra-large: 960dp x 720dp Android Phones & Tablets Responsive Web Design enables support across many form factors without a need to rewrite HTML5 code
  • 15. © 2010 WinWire Technologies
  • 16. © 2010 WinWire Technologies Performance Optimization Responsive Web Design Functionality Graphics Data Access Faster performance Tighter feature integration with the device Implementation & access to complete set of device-specific functionality Graphic-intensive pages tend to render slowly in HTML Require bandwidth to be accessed from remote server Animation is optimized within native view Remote content access for dynamically generated HTML pages Use Local HTML access for static content Optimize Data Access
  • 17. © 2010 WinWire Technologies
  • 18. © 2010 WinWire Technologies Native/Web View Communication Web view component is weaved along with native components for seamless functioning Separate functional entity consisting of HTML, JavaScript and CSS to send requests, fetch, and display the response To-and-fro communication with native app to allow users to control the web view from the native and vice versa. Native/Web View Communication Cross platform Web View Functionality
  • 19. © 2010 WinWire Technologies Native to Web View Direct Web View API Invocation
  • 20. © 2010 WinWire Technologies Native to Web View: Dos & Don’ts Dos Facilitate direct communication for opening URLs Implement navigation methods using native UI components Native aspects to be at the top and bottom and the web view to be in between these Don’ts Creating a web view subclass to add an address bar and navigation controls Placing native controls on top of the web view to perform actions Using mobile devices for controlling the web view
  • 21. © 2010 WinWire Technologies Web View to Native Direct Web View API Invocation Web View Event Captures
  • 22. © 2010 WinWire Technologies Web View to Native: Dos & Don’ts Dos Implement event listeners for commonly used events Implement events like swipe event, if user is notified of registration of swipe event Don’ts Implementing all event listeners without looking into the effects Implementing events counter-intuitively
  • 23. © 2010 WinWire Technologies JavaScript Injections
  • 24. © 2010 WinWire Technologies JavaScript Injections: Dos & Don’ts Dos Use ‘evalJS’ carefully to extract content out of the loaded web page in the web view Think of using ‘evalJS’ only as a last resort Don’ts Injecting JavaScript event listeners for events like scrolling, single tap Using ‘evalJS’ as the only means to develop the app that requires web view and native communication Injecting very long JavaScript; injecting JavaScript into the web view wherever possible Exercise caution when trying to inject JavaScript into the web view on different platforms
  • 25. © 2010 WinWire Technologies
  • 26. © 2010 WinWire Technologies App Store Discoverability Single Codebase Development Cost Optimization HTML5 Developer Ubiquity Native Mobile Device- Specific Functionality Rapid Development Cycle Maintenance Cost Optimization Benefits
  • 27. © 2010 WinWire Technologies Non-Native UI Interface: Not as Attractive Native UI Performance Superior Platform Variations for Web View Implementation Latency in Fetching Remote HTML Content Extensive Native/Web Data Integration Non-Streamlined Coding – Patchwork Under the Hood Challenges
  • 28. © 2010 WinWire Technologies Best Practices Color Scheme consistency with Web Content Avoids a Patchwork on the Presentation Layer ‘Illusion’ of Single App; not an App within App Color Scheme Cache Web Content Minimizes Latency on Server Content Allows for Offline Content Viewing Content Search Functionality in Native View Improves Search Return Performance Device-specific function integration into Search Mobile-Specific Features within Native App Push Notification Settings Calendar Synchronization Switch Content Search Mobility
  • 29. © 2010 WinWire Technologies Join us for our Next Webinar on Wired2Win Webinar Series! Date: 15 May, 2014 Time: 9 am PT
  • 30. © 2010 WinWire TechnologiesWinWire Technologies, Inc. Confidential WinWire Technologies, Inc. Confidential Reach out to us at marketing@winwire.com Visit us: www.winwire.com http://www.winwire.com/winwire-blog/ www.twitter.com/winwire Thank You