Upload
developerworks-viet-nam
View
1.871
Download
0
Tags:
Embed Size (px)
DESCRIPTION
Giới thiệu IBM Worklight 5. Download IBM Worklight để cùng thực hành theo bài viết: http://www.ibm.com/developerworks/mobile/worklight.html?ca=dti-hivis-worklight&S_TACT=105AGY75
Citation preview
© 2012 IBM Corporation
Technical Briefing: IBM Worklight
© 2012 IBM Corporation2
Mobile
Includes
Services Offering
IBM Mobile FoundationBuild, connect, manage and secure your mobile enterprise
• IBM Worklight
• IBM WebSphere Cast Iron
• IBM Endpoint Manager for Mobile Devices
IBM Mobile
Foundation
• IBM Software Services for Mobile Foundation
© 2012 IBM Corporation3
Mobile
Compatible with prominent HTML5 libraries and
tools:
App development using native and/or familiar
web technologies:
• HTML5
• CSS3
• JavaScript
App delivery in variety of forms:
• Mobile Web app• Hybrid app
• Native
IBM WorklightOpen, cost-effective, cross-platform app development
© 2012 IBM Corporation4
Mobile
Worklight Server
Unified notifications, runtime skins, version management, security, integration and delivery
Worklight Console
A web-based console for real-time analytics and control of your mobile apps and infrastructure
Worklight Studio
The most complete, extensible environment with maximum code reuse and per-device optimization
Worklight Runtime Components
Extensive libraries and client APIs that expose and interface with native device functionality←
Worklight App Center
An application repository for distributing apps to dev,
test and QA teams
© 2012 IBM Corporation5
Mobile
Downloadable (Native) Apps
5
ApplicationStores
File System(on mobile device)
Mobile Operating System
High-quality user experience and full
device access.
Platform-specific, requires unique
expertise, expensive to develop and maintain.
High-quality user experience and full
device access.
Platform-specific, requires unique
expertise, expensive to develop and maintain.
© 2012 IBM Corporation6
Mobile
Web Server
Web Apps
6
Mobile Operating System
Written in HTML5 JavaScript and CSS3.
Quick and cheap to
develop.
Less powerful than native and limited
device access.
Written in HTML5 JavaScript and CSS3.
Quick and cheap to develop.
Less powerful than native and limited
device access.
© 2012 IBM Corporation7
Mobile
Hybrid Apps
7
ApplicationStores
File System
(on mobile device)
Native Container
HTML, CSS, JavaScript
Mobile Operating System
Combines best of both worlds:
Primarily written in
HTML5, CSS, JS while allowing full access to
device capabilities.
Combines best of both worlds:
Primarily written in
HTML5, CSS, JS while allowing full access to
device capabilities.
© 2012 IBM Corporation8
Mobile
Worklight Shell Approach
8
Trusted App Repository
Native Container (“Shell”) with
custom functionality for performance and security
HTML, CSS, JavaScript
Mobile Operating System
Allows development of downloadable apps without
any knowledge of native development languages.
Dedicated teams with native expertise can
provide custom native capabilities and security
functions to app
developers.
Allows development of downloadable apps without
any knowledge of native development languages.
Dedicated teams with native expertise can
provide custom native capabilities and security
functions to app
developers.
File System
(on mobile device)
© 2012 IBM Corporation9
Mobile
Worklight Architecture
© 2012 IBM Corporation10
Mobile
Worklight Studio• Eclipse-based IDE
• Combining native and standard web technologies in one multiplatform app
• Environment-specific optimization
• 3rd-party libraries integration
• Device SDK integration
• Back-end connectivity utilities
© 2012 IBM Corporation11
Mobile
• Integrated Development
Environment
• (Eclipse Plug-in)
• Application development
using native and/or familiar
web technologies:
• HTML5
• CSS3
• JavaScript
• Integrated device SDKs
allow direct access from
within the IDE to emulators
and code debugging
utilities
Worklight Studio
© 2012 IBM Corporation12
Mobile
Single Shared Codebase
•Common code placed in
primary file
•Environment optimization
code is maintained
separately
© 2012 IBM Corporation13
Mobile
Incorporated Device SDKs
© 2012 IBM Corporation14
Mobile
Incorporated Device SDKs – Continued
© 2012 IBM Corporation15
Mobile
Integrating Best-in-class Tools
Worklight is compatible with prominent HTML5 libraries and tools:
© 2012 IBM Corporation16
Mobile
IBM Worklight Studio v5.0
• The IBM Worklight studio provides a visual
development environment for building rich
mobile applications
• Maximize code reuse across mobile platforms
while leveraging specifics
• Key capabilities:• WYSIWYG UI Construction• Drag and Drop components• Improved Code Assist
• Fast Preview in browser with device simulation• Integration with Native SDK• Improved Integration with Rational Team Concert• Integration with RAD via shell sharing
© 2012 IBM Corporation17
Mobile
IBM Worklight Studio
Create Project
Construct
UI
Test in simulator
or device
Build App
Code
Business
Logic
Preview
in
browser
Debug in browser
New / improved
Bluewashed
OS SDK
Preview
Build
In
Studio
In RTC
© 2012 IBM Corporation18
Mobile
WYSIWYG UI Construction
© 2012 IBM Corporation19
Mobile
Preview in browser
Perform device specific tests in the Mobile Browser Simulator: supports PhoneGap and Worklight client API
© 2012 IBM Corporation20
Mobile
Worklight RuntimeShell Approach
Inner Application:
� Common web code� Utilizes External Shell API’s� Required to comply with shell parameters
External Shell:
� Install as a native App (IPA/APK file)� Customizable container
� Provides JS access to native functionality� Branding, Security, Authentication
© 2012 IBM Corporation21
Mobile
The Shell-based Application
Shell Team
• Security configurations
and audits• Authentication• Mobile expertise
Inner App Team
• Business logic• Develop the UI• Data integration
Reducing the barriers of mobile development, making it ubiquitous across the organization, by compartmentalizing skill-sets and responsibilities
Distributed App
• Shell fed by repository
• Shell fused with app• Shell packaged with
directory
App App
StoreStore
ss
© 2012 IBM Corporation22
Mobile
Centralized Build
Worklight
Build Ant
SDK
Cmd
Line
© 2012 IBM Corporation23
Mobile
Rational Team Concert (RTC) integration
Worklight
Build Ant
SDK
Cmd
Line
Worklight build scripts are supported in RTC
Build System
Worklight build scripts are supported in RTC
Build System
Worklight supports shell-sharing with RTC eclipse client
Worklight supports shell-sharing with RTC eclipse client
© 2012 IBM Corporation24
Mobile
Worklight Runtime Architecture
WorklightWorklight ServerServer
Authentication
JSON Translation
Server-side Application Code
Adapter Library
Client-side App Resources
Direct Update
Mobile Web Apps
Unified Push Notifications
Sta
ts A
gg
rega
tion
Device RuntimeDevice Runtime
Cross Platform Technology
Security and AuthenticationBack-end Data Integration
Post-deployment control and Diagnostics
© 2012 IBM Corporation25
Mobile
• Secure back-end integration
• XML-based declarative
specification
• Multi-source data mashups
• Eclipse plug-in supporting
auto-complete and validation
• Simplified adapter testing
• Server-side debugging
• Web services and JDBC integration
• Access to session data and user properties
Back-end Integration
© 2012 IBM Corporation26
Mobile
Data Collection and Analytics
© 2012 IBM Corporation27
Mobile
Direct Update – On-device Logic
WorklightServer
Native Shell
Pre-packaged resources
1 Download
4Update
web resource
App Store
Web resources
Cached resources
1. Web resources packaged with app to ensure initial offline availability
2. Web resources transferred to app's cache storage
3. App checks for updates • On startup
• On foreground
4. Updated web resources downloaded when necessary
2 Transfer
3 Check for updates
© 2012 IBM Corporation28
Mobile
Worklight Console
• Application Version Management
• Push management• Usage reports and analytics• Reports of custom application events• Configurable audit log• Administrative dashboards for:
• Deployed applications
• Installed adapters
• Push notifications
• Data export to BI enterprise systems
© 2012 IBM Corporation29
Mobile
• Application Version Management• Push management• Usage reports and analytics• Reports of custom application events
• Configurable audit log• Administrative dashboards for:
• Deployed applications
• Installed adapters
• Push notifications
• Data export to BI enterprise systems
• Application Version Management• Push management• Usage reports and analytics• Reports of custom application events
• Configurable audit log• Administrative dashboards for:
• Deployed applications
• Installed adapters
• Push notifications
• Data export to BI enterprise systems
Worklight Console
© 2012 IBM Corporation30
Mobile
Worklight Console
© 2012 IBM Corporation31
Mobile
Mobile Application Center
� A cross platform private mobile application store similar to public app stores but focused on the needs of a Dev, Test,
QA organization or a team
� Ease highly iterative development process and distribution
of mobile applications
� Key capabilities:
� Delivers distribution and management of mobile applications within a company / teams
� Easy distribution of iOS and Android apps within a team
� Supports any mobile applications
� Provides versioning and updates
� Centralizes rating and feedback information
� Controls who can modify or install an application
� Easy to install and simple to run
� App store supporting iterative development lifecycle to improve collaboration with application stakeholders, QA and Development teams
� Cross platform, technology agnostic mobile application store
© 2012 IBM Corporation32
Mobile
IBM WorklightV5.0.5
Enhanced Application Governance capabilities
© 2012 IBM Corporation33
Mobile
Enhanced Application Governance capabilities - Details
© 2012 IBM Corporation34
Mobile
Updated App Center
AppCenter brings ACL support for provisioned rollouts to groups and individuals
IBM Endpoint Manager (IEM) integration for marking apps as ready for production for import into IEM
True removal of applications in the app center
Support of icon sets
Support for production databases
© 2012 IBM Corporation35
Mobile
Application Center role-based administration
© 2012 IBM Corporation36
Mobile
Native Application Governance
© 2012 IBM Corporation37
Mobile
IBM WorklightV5.0.5
New / Enhanced Platform capabilities
© 2012 IBM Corporation38
Mobile
New / Enhanced Platform capabilities - Details
© 2012 IBM Corporation39
Mobile
New Java ME support
© 2012 IBM Corporation40
Mobile
New environment – Windows 8 Applications
IBM Worklight brings support for Windows 8 Applications
Windows 8 environment can be added from Add New Environment wizard
Once built IBM Worklight will generate a native Windows 8 Application project that can be edited and compiled using Microsoft Visual Studio
© 2012 IBM Corporation41
Mobile
Updated environment – Windows Phone 7
Prior to WL 5.0.5 Windows Phone 7 environment had old custom PhoneGap version that limited the usage of many features
In WL 5.0.5 Windows Phone 7 environment was upgraded to have the latest Cordova 2.2 version
v0.95
V2.2
© 2012 IBM Corporation42
Mobile
New feature – SMS notificationsPrior to 5.0.5 Worklight supported push notifications on two platforms – iOS and Android
In WL 5.0.5 new type of notifications is added – SMS notifications
As SMS messages are not platform dependant the feature is supported on all mobile platforms – iOS, Android, BlackBerry and Windows Phone
Hard requirement – mobile device is required to have a SIM card and support SMS text messaging
SMS messages are implemented using the same EventSource model as push notifications. This means that very minimal changes/additions are required in client side code and no
changes are required on server side
Various types of SMS gateways are supported, configuration is done in a single XML file using templates
© 2012 IBM Corporation43
Mobile
New feature – JMS adapterNew Worklight adapter type is added to simplify communications with JMS data sources
Allows retrieving and publishing messages from/to JMS queues
Can be used in conjunction with EventSources to create fluid push notifications
© 2012 IBM Corporation44
Mobile
IBM WorklightV5.0.5
New / Enhanced Apps and Tooling capabilities
© 2012 IBM Corporation45
Mobile
New / Enhanced Apps and Tooling capabilities - Details
© 2012 IBM Corporation46
Mobile
New feature - native API for Android / iOS / JavaME
New ability introduced in WL 5.0.5
Native iOS / Android and JavaME application can use supplied Worklight APIs library to communicate with WL server and benefit from its advanced features like
• Application management
• Ability to restrict application usage
• Integration adapters
• Authentication framework
New application type is created using Worklight Studio
Application meta-data, settings and library files are created for developers to use
Tutorials and samples for all environments will be provided
© 2012 IBM Corporation47
Mobile
jQuery Mobile WYSIWYG editing
© 2012 IBM Corporation48
Mobile
jQuery Mobile selector highlighting
© 2012 IBM Corporation49
Mobile
IBM WorklightV5.0.5
New / Enhanced Mobile Capabilities
© 2012 IBM Corporation50
Mobile
Security Updates - Overview
© 2012 IBM Corporation51
Mobile
New feature – custom device provisioning
Worklight authentication framework provides ability to identify and authenticate various types
of entities
Usually only user authentication is performed by collecting and validating user credentials, e.g. username and password
Custom device provisioning technique allows to implement custom device authentication
When application tries to connect to the WL server for the first time the custom provisioning sequence is initiated
Information about device is collected and sent to WL server
WL server communicates with custom enterprise provisioning server to verify whether this device is allowed to access requested data
In case device is approved it’s being provisioned with supplied certificate
Additional custom validations can be performed, e.g. user receives a text message (SMS) with one-time pin code to confirm his device
© 2012 IBM Corporation52
Mobile
Mobile Data support - Details
© 2012 IBM Corporation53
Mobile
Updated functionality – server side reports viewer
IBM Worklight comes with an extensive reporting mechanism
Both predefined and custom actions can be logged and processed
In WL 5.0.5 we’re documenting a way to use server side BIRT reports viewer application to view reports generated by WL server
Separate reports are generated for application usage and notifications data (both push and SMS)
© 2012 IBM Corporation54
Mobile
Windows 8 ClarificationsOS Version Details on OS Version Supported in V5.0.5
Windows 8 and Windows 8 Pro Windows 8 is the official product name for the
next x86/64 editions of Windows.
Windows 8 Pro is the Business version of
Windows 8. It includes all the features in Windows 8 plus features for encryption,
virtualization, PC management and domain connectivity.
Windows 8 and Windows 8 Pro is supported for ((X86, Intel/AMD, 32 bit/64 bit) based
devices
Yes
Support for legacy desktop apps
Support for apps built using new Windows 8 modern UI
(Previously named Metro UI)
Windows Phone 8 Next generation of Windows Smart Phone Operating system
No.High Priority and Planned
Support in Post V5.0.5 release
(2013)
Windows 8 RT
Windows 8 RT Pro
A feature-limited Windows 8 version to run on
ARM processors. This includes ARM based
devices such as Tablets and Microsoft
Surface.
Intel Based for High end tablets
Support for Windows 8 should
also cover Windows 8 RT/RT
Pro
All Apps built using Windows 8
modern UI can run on all the
versions (Windows 8, Windows 8 Pro, Windows RT and Windows RT Pro)