Can Ionic be used for on desktop computers (as a w

2019-09-06 03:09发布

问题:

I'm very confused about this matter. Ionic just runs the application in a kind of web container if I'm not mistaken.

When I used the ionic serve command, I could also just use it in the browser of my desktop computer and it worked well. So why are there claims that it doesn't work on a desktop PC?

It's important that what I'm making right now also works for desktop PCs, that's why I'm asking.

It can be run from a web browser, that's fine for me (no need for electron to make it into a desktop app).

If it doesn't, is there a hybrid cross-platform framework similar to Ionic that also runs on desktops?

Thanks a lot for the help!

回答1:

As per the ionic documentation, the framework was initially intended for mobile, however, due to the widespread use of the framework for desktop based web applications, it does support the desktop to a certain extent with the help of native plug-ins whenever native components need to be leveraged.

However, if your need is to develop desktop applications using the web development technology stack (HTML, JS, CSS), it's best to look into technologies like electron, react native & App.JS. There are actually quite a few frameworks for achieving this but these are a few of my personal favourites.