最佳跨平台行動開發與佈署工具 - ibm- 版本管控 - 遠端使用直接更新和禁用 -...
TRANSCRIPT
最佳跨平台行動開發與佈署工具 Worklight
台灣IBM公司 軟體事業部
資深軟體顧問
郭斯彥 Hiko Kuo
Topic
行動應用的挑戰
IBM行動應用解決方案與優勢
Q & A
挑戰! 跨平台行動應用程式
平台太多、變動太快、資源太少
• 平台更替快速─人力難尋
• 平台多、人力成本高
• 無法重複利用開發資源
• 不同平台間品質難以一致
挑戰! 整合,安全,擴充的顧慮
安全
• 資訊的資安?
設備資料與傳輸資料提供加密機制
• 設備上的資安?
行動裝置遺失具備移除機密或敏感資料的機制
整合 • 整合曠日費時又不彈性,需自行Hard Code整合程式,無標準化服務介接模組可串接資料庫與後端系統 標準化的API幫助縮 短整合所需時間
擴充
• 能否彈性擴充業務服務?
廠商的支援能力不
足,而自行開發與
維護也很困難
你可以有不一樣的想法………
韓國信用卡廠商LOTTE使用IBM Worklight開發的行動應用
IBM Worklight ~ 六大優勢
主要特色
1. 開發/維護容易:
- 混合HTML5與原生程式開發
- 開放式的程式設計環境,
支援多種主流開發技術與程式庫
2. 快速整合:資料庫與HTTP服務整合能力
3. 管理方便:
- 版本管控
- 遠端使用直接更新和禁用
- 企業內部使用的App Store
4. 安全控制:離線資料加密與權限管制
5. 主動行銷:統合式資料推播通知
6. 統計分析:行動應用程式的使用資料統
計分析
開發、整合、管理跨行動應用程式的解決方案
1.開發/維護容易: Design Once, Deploy Anywhere
介面
應用 程式 Objective-C
行動應用求
Java C#
xib xml xaml
+ + UI
+
Design Once
+
Deploy Anywhere
Worklight Studio
HTML
JavaScript
應用
程式
Package
1.開發/維護容易
視覺化拖拉設計,快速UI開發 (jQuery Mobile, Dojo Mobile, HTML)
• 40↑ 常用樣版套用
• 查詢/清單/表單/設定版面
• jQuery Mobile / Dojo Mobile
• 即時預覽
1.開發/維護容易 - 通用樣版
1.開發/維護容易 共用web程式碼,資源重複使用
勾選欲開發的平台
1
Common Code
放置在主要的檔案夾
2
可分別存放不同平台的優化程式
3
1.開發/維護容易 針對不同設備顯示能力的介面顯示優化能力
iPhone上的介面 iPad上的介面
1.開發/維護容易 用瀏覽器就可預覽行動應用程式
用瀏覽器就可以預覽程式,並模擬行動設備功能:
Device
Events
Accelerometer
Battery
Camera
Capture
Compass
Contacts
File
Geolocation
Network
Media simulation
Notification
模擬用Worklight開發的App在各device上的layout
1.開發/維護容易 功能測試
Deliver consistently
high quality across
your mobile app portfolio.
• App測試
• 産生/執行/自動化
• 增進品質與實現價值
• Record once, play back on multiple devices
• code-less test cases
• Android and iOS, Native and hybrid
• Worklight Studio
• 統一開發/測試介面
2. 快速整合─ 快速,簡易整合後端資訊系統
• 內建數種adapter:
• SQL adapter
• HTTP adapter (supports both
REST and SOAP)
• Cast Iron® adapter
• JMS adapter
• 特色: • Universality
• Read-only as well and Transactional Capabilities
• Fast Development
• Integrated security & auditing
• Scalability
• Transparency
• Data Transfer (JSON)
Query
Update data
Data/Result
as JSON
Invoke adapter
procedure
SQL WS
Worklight
HTTP
Response
1
2 3
4
3. 管理方便 Version Control: 確保使用者提昇至新版、並推播通知給使用者
OS類型 版本控制:Active,
Notification,
Disable
訊息
內容
3. 管理方便–遠端直接更新/禁用
伺服器:
• 企業或團隊內行動應用程式的發佈和管理
• 支援各平台應用程式
(iOS、Andriod、Windows、RIM)
• 提供應用程式安裝和管理的權限管理
設備端:
• 提供易裝易用的行動設備端
App Center Client.
• 應用程式的安裝、升級與退版
• 使用者可為應用程式評比並提供回饋資訊
3. 管理方便─企業內部用的App Center
4. 安全控制─ 完整的App資訊安全與權限管控機制
主動安全更新
Remote
disable
Direct
update
提供彈性的認證授權架構
Authenticati
on
integration
framework
Data
protection
realms
Coupling
device id
with user id
簡化內部應用程式授信機制
Mobile
platform as
a trust
factor
應用程式的 安全機制
Code
obfuscation
SSL with
server
identity
verification
Proven
platform
security
Jailbreak
and
malware
detection
App
authenticity
testing
保護設備上的資料
Encrypted
offline
cache
Offline
authentication
Secure
challenge-
response on
startup
5.主動行銷 - 統合式資料推播通知 Worklight 整合”推播通知”架構 - 主動行銷策略
用單一API推送通知至各種行動裝置上背景執行的應用程式
Polling
Adapters
Message-
based
Adapters
Unified
Push
API
Notification
State
Database
User-Device
Database
iOS
Dispatcher
Android
Dispatcher
BlackBerry
Dispatcher
Windows
Phone
Dispatcher
SMS
Dispatcher
Apple
Push
Servers
(APN)
Push
Servers
(GCM)
RIM Push
Servers
Microsoft
Push
Servers
SMS/MMS
Brokers Administrative Console
Worklight
Client-side
Push
Services
Worklight
Client-side
Push
Services
Worklight
Client-side
Push
Services
Worklight
Client-side
Push
Services
iOS Push API
Android Push API
BlackBerry Push API
Windows Push API
Broker API
Back-end
System Back-end
System
Back-end
System Back-end
System
Worklight
Client-side
Push
Services
5.主動行銷 單一推播API與管理介面,簡化程式開發
Worklight Runtime
Component
Web Code
Device APIs
Worklight Server
MyApp Event
Source Adapter
IBMApp Event
Source Adapter
Backend System 1
Backend System 2
Client API WL.Client.Push.registerEventSourceCallback()
WL.Client.Push.subscribe()
Server API WL.Server.getActiveUser()
WL.Server.notifyAllDevices (user)
Worklight console to manage of all the
event source and push notifications
WebSphere MQ Telemetry 用單一API推送通知至各種行動裝置上執行中的應用程式
WebSphere
MQ
+ Telemetry
專為小型設備和受限的網路環境設計 MQ Telemetry Transport (MQTT) 協定 支援低速、低品質的網路環境 能適應時常斷線的網路品質 最小化傳輸資料量 輕量的用戶端元件(C: 30K, Java: 100K) Smallest possible packet size is 2 bytes
低頻寬、低overhead、低耗電量 支援伺服器對用戶端的資料推送 高延展性
單一伺服器執行程序可同時處理100,000個以上的連線
高訊息傳送品質 強勁的安全性
網路層支援SSL認證與加密
Basic Telemetry
Client
Backend Server
6.統計分析
6.統計分析
Worklight Server 提供統合推播通知,版本管理,安全控制和整合服務的行動中介軟體
Worklight Console 行動應用程式的管理、使用分析Web介面
Worklight Studio 完整、可擴展的視覺化開發環境,簡化多平台行動應用程式的開發
Worklight Runtime Components 提供豐富的程式庫和用戶端API,讓程式可以使用行動設備原生功能並和Worklight伺服器互動 ←
IBM Worklight 產品元件
Worklight Components E
nte
rpri
se B
acken
d S
yste
ms &
Clo
ud
Serv
ices
Worklight Server
User authentication and
mobile trust
Mashups and service
composition
JSON Translation
Adapter Library for
backend connectivity
Sta
ts A
gg
reg
ati
on
Unified Push Notifications
Client-Side App Resources
Direct Update
Mobile Web Apps
Feedback Management
Device Runtime
Cross-Platform
Compatibility Layer
Encrypted and
Syncable Storage
Runtime Skinning
Server Integration
Framework
Reporting for Statistics
and Diagnostics
Ap
pli
cati
on
Co
de
HTML5, Hybrid,
and Native Coding
Optimization
Framework
Integrated Device
SDKs
3rd Party Library
Integration
Bu
ild
En
gin
e
Worklight Studio
Worklight Console
Push /SMS
Management
Reporting and
Analytics App Version
Management
Public App Stores
Worklight Application
Center
Development Team Provisioning
App Feedback Management
Enterprise App Provisioning
and Governance
Blackberry
Android
iOS
Windows Phone
Java ME
Windows 8
SDKs
Mobile Web
Desktop Web
1 2 3
4
5
IBM Worklight Typical Topology
Worklight
Cluster
Load
Balancer
Backend 1 Backend 2
Worklight
Database
Web Server
User
https
https
Corporate LAN
Corporate DMZ
Worklight Server
Authentication
JSON Translation
Server-side
Application Code
Adapter Library
Client-side App Resources
Direct Update
Mobile
Web Apps
Unified Push Notifications
Stat
s A
ggre
gati
on
Device Runtime
Applic
ation C
ode
• Cross Platform Technology
• Security and Authentication
• Back-end Data Integration • Post-deployment control
and Diagnostics
© Copyright IBM Corporation 2012. All rights reserved. The information contained in these materials is provided for informational purposes only, and is provided AS IS without warranty of any kind, express or implied. IBM shall not be responsible for any damages arising out of the use of, or otherwise related to, these materials. Nothing contained in these materials is intended to, nor shall have the effect of, creating any warranties or representations from IBM or its suppliers or licensors, or altering the terms and conditions of the applicable license agreement governing the use of IBM software. References in these materials to IBM products, programs, or services do not imply that they will be available in all countries in which IBM operates. Product release dates and/or capabilities referenced in these materials may change at any time at IBM’s sole discretion based on market opportunities or other factors, and are not intended to be a commitment to future product or feature availability in any way. IBM, the IBM logo, Rational, the Rational logo, Telelogic, the Telelogic logo, and other IBM products and services are trademarks of the International Business Machines Corporation, in the United States, other countries or both. Other company, product, or service names may be trademarks or service marks of others.