PWAs with Ionic - Star

Post Top Ad

Post Top Ad

Saturday, June 2, 2018

PWAs with Ionic

Responsive Ads Here
Progressive Web Apps are emerging trend. Steps of creating PWA given below.
ionic-logo-blog
  • First, go into src/index.html and to enables the service worker un-comment following script which is commented there already.
1
  • if you're going to create PWA only and not a cordova app comment it out inside index.html
2 
And go inside app.components.ts, and remove the platform and plugin calls.
3
           And also go inside app.module.ts and remove statusbar and splash screen plugins.
  • This is the standard web manifest that comes with the app (manifest.json). Let’s go through each option:
4
  • Add the logo for your application in following path  
  • now its ready to deploy, for deploy run the following command
5
  • Once it is finished you can upload your www directory whichever hosing service.

No comments:

Post a Comment

Post Top Ad