Search code examples
androidcordovaapache-cordova

Convert Cordova Mobile App to Webapp


We developed an mobile app using cordova for iOS and Android platform. Now is it possible to reuse the existing app and launch it for web as well? If yes can someone please guide how can this be done? Any links, reference.


Solution

  • The hybrid app is the concept of developing a web application to run on the native platform, so surely we can run Cordova based application on browser.

    you need to take care of all Cordova plugin dependency like (Network, Device etc), which is required for developing the hybrid app.

    usually, the main source code is available on www folder in Cordova project, we need to put that code in the web container like Tomcat, and you are ready to go. if you are using Apache then provide access there as well.

    Make sure your API Service is available on the same host, otherwise, you will face cross origin error.