Ionic app in a browser

Hi all,

I have n Ionic 3 app. It builds and runs on Android and iOS as expected.

Is it possible to also use the app on a website. i.e. Have it run in a browser. The app can be tested in a browser by doing:

ionic serve

and

http://localhost:8100/

But is there a way to deploy this to a website running on a web server? i.e. to make this publicly available?

Thanks

Yes. Take the contents of the www folder and host them. Now, you should make sure you build your app with the release flag to get the best performance from Angular. Also, you need to remove any Cordova plugins that you might use. By default, splashscreen and statusbar are used and should be removed. Finally, you should enable the service worker code in the index.html file and update the manifest.json to gain some progressive web app advantages.

1 Like