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

Open Webapps & intro to Firefox OS Powered smart TV.

Open Webapps & intro to Firefox OS Powered smart TV.

Journey of Open Web apps from being responsive to Progressive & about Firefox OS powered smart TV.

SudarshanReddy kurri

March 18, 2016
Tweet

More Decks by SudarshanReddy kurri

Other Decks in Technology

Transcript

  1. • Performance • Offline access • Periodic Background Processing •

    Notifications • Sensors • OS-specific features NATIVE APP
  2. Have you ever thought why to build a webapp as

    it doesn’t provide the features like offline support, push notifications etc., which native apps provide.
  3. • Performance • Offline access • Periodic Background Processing •

    Notifications • Sensors • OS-specific features
  4. • SERVICE WORKER is a Programmable Network Proxy. • It

    sits b/w the application and the server. • More about service workers will be covered in the later talk by Madhukar.
  5. • Doesn’t require an app store to install an App.

    • Visit a site/app. • Add it to the home screen from your favourite browser. • When you first visit a visit/app service workers are installed. • These service workers provide caches the content for the offline support & other features(Push Notifications). • This way you can access the content offline. • You can get notifications even when your app isn’t running.
  6. • Progressive ---- Work for every user regardless of browser

    • Responsive ---- Fit any form factor (mobile,tablet,desktop) • Connectivity Independent ---- Work Offline (Service Workers) • App-Like ---- App Style model & Interactions • Fresh ---- Uptodate (Service Workers) • Safe ---- HTTPS/TLS (to prevent snooping) • Discoverable ---- Search Engine Support (W3C Manifests) • Re-Engageable ---- Push Notifications (Service Workers) • Installable ---- Keep apps on the Home Screen • Linkable ---- Progressive Web Apps
  7. DEMO APPS: • https://www.pokedex.org/ • Flipkart Lite • https://sv-ginger.appspot.com/ •

    Offline Wikipedia https://wiki-offline.jakearchibald.com/wiki/Rick_and_Morty For more app demos: • https://operasoftware.github.io/pwa-list/
  8. We travelled way far in this journey. Let’s have a

    quick demo on how to build an app.
  9. • Favourite Text Editor (In my Case it is Sublime

    Text3) • Firefox Browser of your choice (Mine is Firefox Developer Edition) Familiarity with web Languages: • HTML5 • CSS3 • JAVASCRIPT Tools Needed:
  10. index.html <!DOCTYPE html> <html> <head> <title> Demo App </title> <link

    rel="stylesheet" type="text/css" href="Theme.css"> <script type="text/javascript" src="logic.js"></script> </head> <body> <header> <div id=”hw”>Hello World</div> </header> </body> </html> HTML CODE STRUCTURE
  11. RESOLUTION: Device pixel ratio of TV’s is different to most

    mobile devices • Full HD ---- 1920x1080 • Ultra HD (4k) ---- 3840x2160 • Other resolutions 1280x720 Note: Average distance b/w the viewer & the screen is 10 feet(3 mts).
  12. Control Mechanisms & Navigation • TV Remote • TV Remote

    app on a smartphone • Game Controller Ensure all selectable items in the app are accessible using a standard TV remote.
  13. • Simpler the design, the better • Provide the info

    that is totally necessary • Design flat rather than deep • Include 5% margin in all directions • Selected item focus state is visible & clear for users. • For loading time, Display a loading animation to provide a visual confirmation • Provide audio feedback (Ex: Sound effects for buttons). • Avoid the need for user input as much as possible. • Enable autocomplete and search history features.
  14. Clickable Elements Buttons Size: • 150x150 for UHD(4K) • 75X75

    for Full HD (1920X1080) • 50X50 for 1280X1080 Text & Visual Elements • Font Size (Prefer use SanS Serif) • Avoid excess visual noise, distraction • Small font sizes leads to eye strain • Notifications should be meaningful as they are distracting in some situations.
  15. Note on Privacy: • As many of the family members

    can access the TV avoid the need for registering or logging unless it’s important. • Purchasing on ecommerce sites.
  16. WEB API’s Web apps uses these API’s either • to

    access the device hardware, or • to access the data stored on the device, or • to communicate with other devices, or • for other features (like Alarm API, Push API). https://developer.mozilla.org/en-US/docs/WebAPI
  17. Firefox OS Specific API’s These are the API’s designed with

    the Firefox OS in mind. As Firefox OS is built on gecko these are OS specific API’s. https://developer.mozilla.org/en- US/docs/Mozilla/Firefox_OS/Firefox_OS_apps/Firefox_OS_de vice_APIs