Skip to main content
SAP Fiori

Dev Tip: Debug SAP Fiori Client Application in iOS devices

N Naveen, VP of Strategic Accounts 3 min read

In case you’ve missed our dev tips in past weeks, we will be posting them in the blog moving forward. To sign up and get your dev tips delivered to your inbox each week, click here!

Tip of the Week: Debug SAP Fiori Client Application in iOS devices

Debug SAP Fiori Client Application in iOS devices.

It is not uncommon that Organizations first start with Fiori Web-Apps and then move to Fiori Mobile Apps as a part of their Fiori journey. The most common practice to embark this journey is using a custom Fiori Client.

For starters, Fiori Client is a Cordova based Hybrid app which renders Fiori Launchpad and the Tiles associated with the Launchpad.

Let’s familiarize ourselves with the lingo:

  • Cordova Hybrid App – An Apache open source software which enables generation of code for multiple target platforms.
  • .IPA files – An iOS Application archive file which must be installed on a device for the App to be working
  • .apk – Equivalent of .IPA files in android work, which install the app on a device

SAP Fiori Developers often use browser based testing to debug their Fiori Applications. At times, they must debug an app running on a physical device.

Here’s the trick…!

1. Launch the App on your device and login to the Application

Two iPhone screens: an SAP logon form and a Fiori Launchpad with sales and leads tiles

2. Connect the iPhone / iPad to a Mac and open a Safari browser. One can see the device (in my case it is Lapi’s iPhone) in the develop menu.

Safari Develop menu open on a Mac, showing an iPhone running MindsetFioriClient with FioriLaunchpad.html

If the device is not appearing, activate developer mode on the iPhone

Activate `Develop` menu in the Safari browser

Safari Advanced preferences with the Show Develop menu in menu bar box checked

3. Web Inspector Tools will populate after clicking on the device name in the ‘Develop’ menu

Safari Web Inspector header naming the iPhone, MindsetFioriClient app and FioriLaunchpad.html, Network tab open

Check the header of the Web Inspector, it should reflect the device name, app name and the URL which is being inspected.

4. Now refresh the app or scroll down the page on your device. One can view the calls being made by the app in the network

5. Click on a tile and load the app

Fiori app on iPhone showing an Actual Sales vs. Goal bar chart by calendar week

6. You can observe your custom JavaScript script files in the resources section. In this example I have filtered for Controller.js files

Web Inspector Resources tab filtered to controller.js, showing Detail.controller.js code

7. Feel free to place a break-point and reload your app using the ‘Reload’ button on top

Close-up of the Web Inspector toolbar with the reload button above the Elements and Network tabs

Now you have the ability to debug and analyze the JavaScript files which cause the application to work in Cordova Apps.

Watch out next week for Debugging Cordova Apps on Android Devices!

If you have an interest in viewing similar content, visit our blog, here.

View our LinkedIn, here.

Share