Packaging SAP Fiori Apps

SAP Fiori applications can be packaged as self-contained apps. This means all static web resources (JavaScript, HTML5, XML, images, and so on) are bundled together into a Cordova container. The apps are delivered to end users using standard app store concepts.

Packaging SAP Fiori applications is an alternative to using SAP Fiori Client, a native mobile application runtime container for SAP Fiori applications. Both solutions have advantages and disadvantages.

If you use SAP Fiori Client:
  • you can change the app on the server without needing to rebuild
  • the binary file size is smaller than it is for a packaged app
  • you can use URL arguments to configure some aspects of the client behavior (see Configuring SAP Fiori Client Using URL Query Parameters)
  • the app tiles that display are based on the roles assigned to a user.
However, since both GUI elements and business data have to be retrieved from an active network connection, using SAP Fiori Client consumes more bandwidth than is consumed by a packaged app.
If you use packaged apps:
  • the initial launch of the app is is faster than Fiori Client (Fiori Client is slower because it caches web resources on the initial launch)
  • only the business data requires network resources, so the user experiences better performance
  • you can build completely offline apps using the Offline OData plugin of the Hybrid SDK (Kapsel). This plugin can sync business data to the device and allow apps to make updates to the local data store, which can then be sent back to the server when the connection is restored (requires proxying through SAP Mobile Platform Server or SAP Cloud Platform mobile service for development and operations).
However, the following aspects of packaged apps should be considered:
  • when the app changes on the server, you must rebuild and redistribute it
  • the app configuration is pre-defined and cannot be changed by the user
  • the size of the binary file is larger than it is when using SAP Fiori Client since the UI5 library needs to be included in the package
  • the app tiles that display are defined at development time and only show static information.