Hybrid app & web-only app from same source code



  • I am about to start a new Onsen/Monaca project and I would like to be able to have an Android & iOS app as well as have the same code base run on a web server (web app). The latter is to support users that either do not want to install the app or have a phone not capable of installing an app. Is this possible when creating a project using Monaca and using Onsen UI with Angular 2?


  • Monaca

    @bzark Sorry for a late reply. :bow:
    Yes, it is definitely possible to make such app with Monaca using Onsen UI with Angular 2. At the moment, Onsen UI + Angular 2 can’t be used with Monaca Cloud IDE due to the transpiling issue. However, they can be used with Monaca CLI. We’ve been working on supporting the transpiling feature in Monaca Cloud IDE and hoping to release them in the upcoming months.

    Please let me know if you any further questions. :)



  • @khemry said:

    @bzark Sorry for a late reply. :bow:
    Yes, it is definitely possible to make such app with Monaca using Onsen UI with Angular 2. At the moment, Onsen UI + Angular 2 can’t be used with Monaca Cloud IDE due to the transpiling issue. However, they can be used with Monaca CLI. We’ve been working on supporting the transpiling feature in Monaca Cloud IDE and hoping to release them in the upcoming months.

    Please let me know if you any further questions. :)

    Thanks for responding. So just to be clear, I want to be able to build a Android and iOS app using Monaca CLI and then have this same source code be published to a server on the Internet and be accessible via a web browser (e.g. my-app.com). The latter is possible correct? There would be no issues with any JavaScript code that is calling into a native plug-in or something to that effect, right?


  • Monaca

    @bzark Well, it depends. If you are using Cordova plugins within your app, they won’t work on web browser. If the features you need in your app require Cordova plugins, you will need to find alternative ways to include those features without the plugins. Otherwise, they won’t work on web browser.


Log in to reply