This blog post is continuation of a 4-part series on How to use SAP HCP, mobile service for SAP Fiori.
Part 3: Configure Fiori Mobile and build Fiori app
In this third part, we'll configure Fiori Mobile and test our app on a live device. You'll learn how to...
Pre-req:
1. Subscribe Fiori app in SAP HANA Cloud Platform - At the moment, packaged SAP Fiori apps can only be created if subscribed as an HTML5 application in HCP. In future, this will be automated.
Step-by-step guide:
1. Open Fiori Mobile Admin Console
2. Add Android Signing Profile
NOTE: If you using Apple Signing Profile, you will need to have an iOS Developer Account and must upload your Signing Certificate, private key pass-phrase, and provisioning profile. Here is an KB article that shows you how you can create your own iOS Certificate.
3. Provide signing profile details and click Save
4. Fiori mobile
5. Add Fiori Mobile Application
6. Click Get Started to start the App Wizard
7. Select your Fiori app scenario > select (default) - local launchpad (click Next)
8. Select your Fiori Server (click Next)
9. Upload an Advanced Configuration File (ACF) - The advanced configuration file is a .json file (you can create one in notepad) that describes an array of components (using properties) that should be packaged with the app. Your ability to create an advanced configuration file is dependent on selecting "I want to create a local launchpad with only the apps I want to mobilize" on the Fiori App Scenario page.
{
"applications":[
{
"id":"com.sap.fiori.products",
"cloudComponentId":"productlistingsub",
"url": "/sap/fiori/productlisting"
}
]
}
NOTE: Currently there is no integration with SAP Demo Cloud, therefore if you try to select and build the available Fiori Application, the apps will not execute on mobile device.
10. Finish your application - Here, you can build your application or further configure application. In this example, uncheck the option and click Finish.
Application Workflow - After running through the App Creation Wizard, you can modify app information to control your app's usability and appearance on SAP Mobile Place.
11. Details - no change; here you can modify the app selection, add app description, and provide more app context. In addition, if you need to re-upload your ACF, you can start your workflow again by click "Select Fiori Appliations"
12. Insight - Once application is deployed and consumed, Administrator can monitor application inisight such as usage charts, registration information, and user logs
13. Groups - If using SAP Mobile Place, Administrator can assign application to an individual group or multiple group(s)
14. Multimedia - For a better user experience, upload an app icon, a splash screen, and optionally a banner image (if using SAP Mobile Place)
15. App Settings - no change; Use the SAP Fiori mobile service app settings to define, deploy, and monitor your app
16. Categories - no change; Use the Categories tab to sort apps so they appear in logical groupings within SAP Mobile Place
17. Owners - no change; Use the Owner info tab to view the apps you created and therefore own, and to select co-owners for the app.
18. Platforms - Use the Platforms tab to build your app; if you made changes to any of the above settings, please click Save before continuing
19. Build Summary
NOTE: "debug-enabled" mode is only supported in trial and can only be tested with a physical device. In order to use this feature, you will need Chrome installed as well as the Android SDK (I think). Once your device is connected to your computer, open Chrome and select More Tools > Developer Tools (from Menu). Then, from Console menu, select More tools > Inspect devices. Now run the app on device to debug it.
19. Your New Signed app is available for consumption; no actions are required
20. As a developer, we've made it easy to test your app. Simply login to SAP Mobile Place and go to Menu > My Profile > Fiori Mobile Apps
NOTE: Your SAP Mobile Place URL is available via HCP Cockpit > Services > Fiori Mobile > "Go to Mobile Place" or try https://<trial-p#trial>.sapmobileplace.com/ (only replace p# which is your trial id)
21. Click download button to immediately download app to your device (and start install process); else, you can view details of your app by clicking app icon (and download and install app from that page)
22. Once the app is installed, you can run the app (first time authentication will be required)
IMPORTANT NOTE: In order to run the app on your mobile or virtual device, please fix destination path in your SAP Web IDE project's /neo-app.json and /webapp/manifest.json file by appending "/sap" in front of "/northwind" in destination field.
MyApp/neo-app.json:
Before "path":"/Northwind"...
After: "path": "/sap/Northwind"... (do not change casing of northwind)
MyApp/webapp/manifest.json: (open with code editor)
Before: "datasources"... "/Northwind/V*/northwind/northwind.svc/",...
After: "datasources"... "/sap/Northwind/...",... (do not change casing of northwind)
This concludes part 3 of this blog... On to part 4, adding push notification.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
23 | |
11 | |
10 | |
9 | |
8 | |
6 | |
6 | |
5 | |
5 | |
5 |