cancel
Showing results for 
Search instead for 
Did you mean: 

How to integrate SAPUI5 Application with Phonegap(Cordova) when we use .XML views & component.js for routing like FIORI.

0 Kudos

Hello Experts.

I have developed a small SAPUI5  project where i am using .XML Views and component.js for routing purpose. All the Fiori Apps make use of component.js for routing.

Now my requirement is to integrate this SAPUI5 Project with Phonegap(Cordova) and run it.

Kindly help me with the same.

Thanks & Regards:

Azhar

Accepted Solutions (0)

Answers (3)

Answers (3)

Chantele
Active Participant
0 Kudos

Hi

In our organisation we use grunt just to zip up the project and import this in to phonegap.

We also use XML views and component, we have recently deployed a large multi app project

Former Member
0 Kudos

Hi Azhar,

Could you please share some code? I get error sap.ui.getCore().attachInit is not defined.

I build first a cordova project , change the content of index.html using component&routing mechanism.

Thanks

midhun_vp
Active Contributor
0 Kudos

Hi Azhar,

You should create a basic Cordova project by following the document https://cordova.apache.org/docs/en/4.0.0/guide_cli_index.md.html then replace the web content folder (www) with your SAPUI5 application.

A sample Index.html file from a Cordova project :http://scn.sap.com/servlet/JiveServlet/download/58069-4-380524/index1UI5.html.zip

File Source:

Regards,Midhun

SAP Technology RIG