sap.ushell.Container is undefined in SAPUI5 app deployed on SAP BTP Cloud Foundry

2.2k views Asked by At

I am facing an issue in calling sap.ushell.Container.getServiceAsync("CrossApplicationNavigation") from a SAPUI5 application deployed in BTP Cloud Foundry and accessed through SAP BTP Launchpad service.
My understanding is: if app is launched from Fiori launchpad, it can trigger CrossApplicationNavigation.

manifest.json has the following dependencies declared:

{
  "sap.ui5": {
    "dependencies": {
      "minUI5Version": "1.52.0",
      "libs": {
        "sap.ui.core": {},
        "sap.m": {},
        "sap.ui.layout": {},
        "sap.ushell": {},
        "sap.collaboration": {},
        "sap.ui.comp": {},
        "sap.uxap": {}
      }

Error coming in console:
Error 1

Current sap.ushell:
My sap.ushell

0

There are 0 answers