41
.consulting .solutions .partnership Developing Mobile Apps with HCPms Mobility@SAP

Developing mobile apps with HCPms

Embed Size (px)

Citation preview

Page 1: Developing mobile apps with HCPms

.consulting .solutions .partnership

Developing Mobile Apps with HCPms

Mobility@SAP

Page 2: Developing mobile apps with HCPms

Developing Mobile Apps with HCPms

2

Agenda

© msg | October 2016 | IT Conference on SAP Technologies

SAP Mobile Strategy1

SAP Mobile Cloud Architecture2

Demo Sample App with Mobile Features3

Conclusion4

Outlook5

Page 3: Developing mobile apps with HCPms

SAP Mobile Strategy

SAP Fiori

© msg | October 2016 | IT Conference on SAP Technologies 3

© SAP SE

Page 4: Developing mobile apps with HCPms

SAP Mobile Strategy

Developer focused

© msg | October 2016 | IT Conference on SAP Technologies 4

© SAP SE

Page 5: Developing mobile apps with HCPms

SAP Mobile Strategy

SAP Mobile Platform

© msg | October 2016 | IT Conference on SAP Technologies 5

© SAP SE

Page 6: Developing mobile apps with HCPms

SAP Mobile Strategy

Enterprise Apps

© msg | October 2016 | IT Conference on SAP Technologies 6

© SAP SE

Page 7: Developing mobile apps with HCPms

SAP Mobile Strategy

Overall Process

© msg | October 2016 | IT Conference on SAP Technologies 7

BUILD

SAP Fiori UX,

cross-platform

responsive

framework in

SAP Web IDE

RUN

One code

base and

one SDK for

HCPms and

SMP 3

SECURE

Protect and

manage apps,

data, content,

and devices

© SAP SE

Page 8: Developing mobile apps with HCPms

SAP Mobile Cloud Architecture

SAP HANA Cloud Platform mobile services (HCPms)

© msg | October 2016 | IT Conference on SAP Technologies 8

• SAP HCPms is a service available on SAP HCP intended to enable

mobile business for SAP backend systems

• The main capabilities of SAP HCPms are: Secure from cloud to on-premise (via SAP HANA Cloud Connector)

Mobilize data reliably and securely (supporting different authentication mechanisms)

Uninterrupted user experience through offline capability

Business events to push notifications

Usage analytics

Logging and tracing

Application update management

Resource bundle management

© SAP SE

Page 9: Developing mobile apps with HCPms

SAP Mobile Cloud Architecture

SAP Mobile Platform SDK

© msg | October 2016 | IT Conference on SAP Technologies 9

The SMP SDK is a set of libraries and tools for building native

and hybrid Web Apps Mobile Platform and HCPms.

The SDK is harmonized to work seamlessly with both on-

premise and cloud versions of the SAP Mobile Platform.

The Kapsel SDK is a set of enterprise-ready Apache Cordova

plugins:

Login – takes the pain out of user authentication in applications

Logger – allows logging of issues and stack traces for remote

debugging purposes

Push – cross-platform push notification functionality

OData – allows the creation of offline OData stores and

ultimately a fully offline-able hybrid web app

© SAP SE

Page 10: Developing mobile apps with HCPms

SAP Mobile Cloud Architecture

SAP Mobile Development Options

© msg | October 2016 | IT Conference on SAP Technologies 10

© SAP SE

Page 11: Developing mobile apps with HCPms

SAP Mobile Cloud Architecture

Apache Cordova Architecture and Kapsel Plugins

© msg | October 2016 | IT Conference on SAP Technologies 11

• Attachment Viewer

• Calendar

• Printer

• Localization

• SAP Fiori Client

• Online Application

• Toolbar

• Application Preferences

• Voice Recording

• Logon

• App Update

• Push

• Encrypted Storage

• Logger

• Settings

• AuthProxy

• Barcode Scanner

• Offline OData

• End-to-End Trace

© SAP SE

Page 12: Developing mobile apps with HCPms

SAP Mobile Cloud Architecture

Hybrid Mobile App Runtime Architecture with Apache Cordova

© msg | October 2016 | IT Conference on SAP Technologies 12

SAP HCPms(Cloud Version of

SAP Mobile Platform)

HCP

Destinations

IdPhttps

© SAP SE

Page 13: Developing mobile apps with HCPms

SAP Mobile Cloud Architecture

SAP Fiori Mobile Options

© msg | October 2016 | IT Conference on SAP Technologies 13

© SAP SE

Page 14: Developing mobile apps with HCPms

Developing Mobile Apps with SAP HANA Cloud Platform

SAP Web IDE Development

© msg | October 2016 | IT Conference on SAP Technologies 14

• The Web IDE is intended to support the developers in the SAP’s development process

for mobile apps:

© SAP SE

Page 15: Developing mobile apps with HCPms

Developing Mobile Apps with SAP HANA Cloud Platform

Device and Platform Configuration

© msg | October 2016 | IT Conference on SAP Technologies 15

Page 16: Developing mobile apps with HCPms

Developing Mobile Apps with SAP HANA Cloud Platform

App Configuration: The Mobile Services Cockpit

© msg | October 2016 | IT Conference on SAP Technologies 16

Page 17: Developing mobile apps with HCPms

Developing Mobile Apps with SAP HANA Cloud Platform

Deployment Options

© msg | October 2016 | IT Conference on SAP Technologies 17

© SAP SE

Page 18: Developing mobile apps with HCPms

Developing Mobile Apps with SAP HANA Cloud Platform

SAP Hybrid App Toolkit (HAT): Architecture

© msg | October 2016 | IT Conference on SAP Technologies 18

© SAP SE

Page 19: Developing mobile apps with HCPms

Developing Mobile Apps with SAP HANA Cloud Platform

SAP Hybrid App Toolkit (HAT): App Preview/Deployment

© msg | October 2016 | IT Conference on SAP Technologies 19

© SAP SE

Page 20: Developing mobile apps with HCPms

Developing Mobile Apps with SAP HANA Cloud Platform

Deployment Process

© msg | October 2016 | IT Conference on SAP Technologies 20

© SAP SE

Page 21: Developing mobile apps with HCPms

Demo

Sample App “MyTime”

© msg | October 2016 | IT Conference on SAP Technologies 21

• Allows users to create, edit and delete time records at work

• App type: Hybrid Kapsel app

• Supported platforms: Android (currently), iOS and Windows (planned)

• Authentication type: Principal propagation

• Mobile features: User onboarding

Offline functionality

Push notifications

Speech recognition

Smart Watch extension

Calendar access

Background alarms

Page 22: Developing mobile apps with HCPms

Demo

Architecture of MyTime

© msg | October 2016 | IT Conference on SAP Technologies 22

SAP HCPms(Cloud Version of

SAP Mobile Platform)

HCP

Destinations

IdPhttps

© SAP SE

Page 23: Developing mobile apps with HCPms

Demo - Video

MyTime

© msg | May 2016 | SAP Mobile Services – GBD-DA Evaluation Project 01/16 23

Page 24: Developing mobile apps with HCPms

Demo

Logon with Principal Propagation: Procedure

© msg | May 2016 | SAP Mobile Services – GBD-DA Evaluation Project 01/16 24

• Scenario:

Secure access to corporate data from mobile devices

and providing SSO capabilities

• Solution:

Forwarding on-demand users to back-end systems via HCC,

on-demand users will not provide the on-premise identity

• Steps:

User authenticates at app via a SAML provider

HCC validates the received SAML token

HCC forwards the identity to backend

© SAP SE

Page 25: Developing mobile apps with HCPms

Demo

Offline OData: Features

© msg | October 2016 | IT Conference on SAP Technologies 25

• Take remote OData services and run them locally on device

• UltaLite as client database

• Optimized for OData services supporting delta queries

• Middle-tier delta enablement for all other OData services

• Middle-tier caching of generic OData collections

© SAP SE

Page 26: Developing mobile apps with HCPms

Demo Video

MyTime Offline Demo

© msg | October 2016 | IT Conference on SAP Technologies 26

Page 27: Developing mobile apps with HCPms

Demo

Offline OData: Initial Download Sequence

© msg | October 2016 | IT Conference on SAP Technologies 27

© SAP SE

Page 28: Developing mobile apps with HCPms

Evaluation

Offline OData: Flush Sequence

© msg | May 2016 | SAP Mobile Services – GBD-DA Evaluation Project 01/16 28

© SAP SE

Page 29: Developing mobile apps with HCPms

Demo

Offline OData: API Implementation

© msg | October 2016 | IT Conference on SAP Technologies 29

© SAP SE

Page 30: Developing mobile apps with HCPms

Demo

Smart Watch Extension

© msg | October 2016 | IT Conference on SAP Technologies 30

Android

apk

(hybrid)

AndroidWear

apk

(native)

P

L

U

G

I

N

Page 31: Developing mobile apps with HCPms

Demo

Push Notifications

© msg | October 2016 | IT Conference on SAP Technologies 31

Triggering notifications:

• HTTP Method: POST

• URL: https://<HCPms host>/restnotification/application/<app ID>

• HTTP Headers:

Content-Type: application/json

Authorization: Basic (Using username/password of the SAP HCP trial

account that is hosting the corresponding HCPms service…)

• Body: {“alert”:”…”, “data”:”…”}

Project Number

API Key

© SAP SE

Page 32: Developing mobile apps with HCPms

Demo Video

MyTime Push Demo

© msg | October 2016 | IT Conference on SAP Technologies 32

Page 33: Developing mobile apps with HCPms

Demo

Speech Recognition

© msg | October 2016 | IT Conference on SAP Technologies 33

Page 34: Developing mobile apps with HCPms

Outlook

Smartglass Showcase

© msg | October 2016 | IT Conference on SAP Technologies 34

bluetooth

LTE

HANA Cloud Plattform

mobile services

msg Intranet

ERP

VPN

Page 35: Developing mobile apps with HCPms

Conclusion

SAP Mobile Services: Best Features, Limitations, Recommended Use

© msg | October 2016 | IT Conference on SAP Technologies 35

Support for native and hybrid mobile app development

Regarding SAP HCPms and hybrid app development:

Platform is based on open standards (especially Apache Cordova)

Kapsel plugins comprising the following features:

• User onboarding and authentication

• Offline functionality out of the box

• Push notifications

• and much more

Smooth integration of SAP Web IDE with a local HAT installation

Various deployment options (HCP, Fiori Launchpad, Companion App, device)

Page 36: Developing mobile apps with HCPms

Conclusion

SAP Mobile Services: Best Features, Limitations, Recommended Use

© msg | October 2016 | IT Conference on SAP Technologies 36

• Costly and time-consuming setting up of local build environment (especially updates)

• Kapsel offline plugin not very transparent, i.e. no options to show cached data in HCPms

or to trigger a refresh etc.

• No use of destinations from HCP

Page 37: Developing mobile apps with HCPms

Conclusion

SAP Mobile Services: Best Features, Limitations, Recommended Use

© msg | October 2016 | IT Conference on SAP Technologies 37

• Thus, we clearly recommend using SAP HCPms and SMP within the following contexts:

Extending a SAP Fiori (SAPUI5) web app with mobile features (e.g. Push Notifications)

Extending a native mobile app with SAP features (e.g. Logon Manager, Offline OData)

Page 38: Developing mobile apps with HCPms

Outlook

SAP Roadmap & Strategy

© msg | October 2016 | IT Conference on SAP Technologies 38

• Role in the landscape of SAP solutions: As mobility is one of SAP’s current and future key topics, also

SAP HCPms and SMP will be – at least from our point of view. Also providing on-premise and cloud

solutions in this area will be important in the future as this is requested by the customers

• New releases: SAP frequently provides new releases for Hybrid App Toolkit. So be prepared to update HAT

and your local Cordova development environment… So looking forward to have a cloud build service…

Page 39: Developing mobile apps with HCPms

Outlook

SAP‘s Announcement with Apple

© msg | October 2016 | IT Conference on SAP Technologies 39

• “This partnership will transform how iPhone and iPad are used in enterprise by bringing together the

innovation and security of iOS with SAP’s deep expertise in business software”

(http://news.sap.com/apple-sap-partner-to-revolutionize-work-on-iphone-ipad/)

• It’s planed to deliver a new HANA Cloud Platform SDK for iOS apps and to train developers in a online SAP

academy for iOS

Page 40: Developing mobile apps with HCPms

Developing Mobile Apps with HCPms

Q & A

© msg | October 2016 | IT Conference on SAP Technologies 40

Page 41: Developing mobile apps with HCPms

.consulting .solutions .partnership

Veicht Johannes

Lead IT Consultant

[email protected]

msg systems ag (Headquarters)

Robert-Buerkle-Str. 1, 85737 Ismaning/Munich

Germany

www.msg-systems.com