+ All Categories
Home > Documents > WebView: Bringing the web to your app

WebView: Bringing the web to your app

Date post: 06-Feb-2016
Category:
Upload: bairn
View: 69 times
Download: 0 times
Share this document with a friend
Description:
WebView: Bringing the web to your app. John Hazen Program Manager 3-179. Agenda. Web + Windows Introduction to WebView Demos and Code. Continuum of Support. IE with live t iles, notifications, and contracts Building Windows Store apps using familiar web technologies - PowerPoint PPT Presentation
Popular Tags:
20
Transcript
Page 1: WebView: Bringing the web to your app
Page 2: WebView: Bringing the web to your app

WebView: Bringing the web to your app

John HazenProgram Manager3-179

Page 3: WebView: Bringing the web to your app

Web + WindowsIntroduction to WebViewDemos and Code

Agenda

Page 4: WebView: Bringing the web to your app
Page 5: WebView: Bringing the web to your app
Page 6: WebView: Bringing the web to your app

Continuum of Support

• IE with live tiles, notifications, and contracts

• Building Windows Store apps using familiar web technologies

• Web sites integrated into Windows Store apps

Page 7: WebView: Bringing the web to your app

Windows Store apps and the Web

Integrate a web component or service

Provide a native experiencefor a cloud based app

The Internet

Display a web page

Page 8: WebView: Bringing the web to your app

Displaying Web Content in Windows 8

<iframe id=“myIframe” src=“http://example.com”></iframe>

• Familiar mechanism for HTML developers

<WebView x:Name="myWebView" Source="http://example.com" />

• Familiar mechanism for XAML developersBoth have limitations…

Page 9: WebView: Bringing the web to your app

WebView control for Windows 8.1

• Integrated WebView into display tree!• Complete set of navigation events and methods• Navigate to local content• Integrated with SmartScreen to block phishing

attacks• Single great control available to XAML and HTML

developers

Page 10: WebView: Bringing the web to your app

Key WebView events

Navigation events • Navigation starting • Content loading • DOMContentLoaded • Navigation completed

Content events• Unviewable content • Potentially unsafe content

Script• Script executing

Page 11: WebView: Bringing the web to your app

Key WebView methods

Navigation• Navigate / Stop / Refresh• CanGoForward & GoForward• CanGoBack & GoBackContent• Capture preview • Capture selectionCommunication• InvokeScriptAsync & ScriptNotify

Page 12: WebView: Bringing the web to your app

Protecting your app and customer data• SmartScreen in WebView

• Intentional and Trustworthy Communication

• Manifest and SSL is critical for app and data

integrity• Impact for iframes

• WebView and ScriptNotify

Page 13: WebView: Bringing the web to your app

DEMO: Intro to WebView

Page 14: WebView: Bringing the web to your app

DEMO: WebView in HTML

Page 15: WebView: Bringing the web to your app

WebView local navigation support

• Navigation to ms-appdata:// • http:// - navigate to internet content• ms-appx-web:// - navigate to content in app package• ms-appdata:// - navigate to local app state directory

• Nativation to ms-local-stream://• myWebView.NavigateToLocalStreamUri( initialUri, resolver );• BuildLocalStreamUri – constructs initial ms-local-stream:// URI• IUriToStreamResolver – returns

Windows.Storage.Streams.IInputStream

Page 16: WebView: Bringing the web to your app

DEMO: WebView on XAML

Page 17: WebView: Bringing the web to your app

Summary

• Dramatically improved WebView• Use WebView where possible• Move to SSL to protect your code and your

customer

Page 19: WebView: Bringing the web to your app

Evaluate this session

Scan this QR code to evaluate this session and be automatically entered in a drawing to win a prize!

Page 20: WebView: Bringing the web to your app

© 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries.The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.


Recommended