cancel
Showing results for 
Search instead for 
Did you mean: 

SAPUI5 PWA offline issue found.

0 Kudos
277

Hi all,

I have been trying to create a SAPUI5 application that can work offline (with no internet) and followed this blog;
https://a.kabachnik.info/pwa-with-sap-openui5.html

Once I created my Gruntfile.js and built my application, it created the component-preload.js file... once ran in offline mode after running it in online mode (to store all the files) it gave this error.

I have attached my sample project to the GitHub.. https://github.com/fwisk/sapui5-pwasample

Any help would be appreciated!

Thank you in advance.

Accepted Solutions (0)

Answers (2)

Answers (2)

FlorianVogt
Product and Topic Expert
Product and Topic Expert

Hi Sunil,
did you had a look on https://github.com/SAP-samples/openui5-pwa-sample?

All the best,

Florian

0 Kudos

Hi Florian,

I've had a look at that sample and it does work although for my app, i want multiple views as that one is a single view...

Is there any way of adding multiple views to that sample?

Thanks,

Sunil.

FlorianVogt
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Sunil,
yes, the sample is a little bit old. I would recommend to use the UI5 Tooling instead of grunt.
You can easily enhance the application with the routing feature (https://ui5.sap.com/#/topic/e5200ee755f344c8aef8efcbab3308fb). With that it is quite easy to support multiple views also in a PWA.

Best Regards,
Florian