Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Use of ionic as desktop web application

Ionic is a great framework to develop mobile apps using html5. We want same application to be used over desktop browser also. Will it be good idea to make a single responsive UI that works best on both desktop browser and mobile browser and make app. OR we should make different development for browser and mobile app.

like image 799
Rohit Bansal Avatar asked Oct 25 '14 07:10

Rohit Bansal


People also ask

Can Ionic be used for desktop?

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.

Can we use Ionic for web application?

Conclusion. It's already epic to have one code base that can be built into a native mobile app and also be deployed to the web, but the flexibility of using some CSS and responsive items makes Ionic the perfect choice for both your next web application, PWA and mobile app!

Is Ionic good for web development?

Using web technologies, Ionic helps to build cross-platform mobile applications with a single codebase. Basically, it allows web developers to create web pages that are run inside a device's browser instance called WebView.

What is the use of ionic framework in web development?

Use of ionic as desktop web application. Ionic is a great framework to develop mobile apps using html5. We want same application to be used over desktop browser also.

Is it possible to make a desktop version of an ionic app?

Interestingly, it seems to be possible to produce a desktop version of an Ionic app using a toolkit named 'Electron' which is sort of a desktop equivalent of Cordova/Phonegap, as explained in this article: Electron (formerly named Atom Shell) packages an embedded Chromium webview to produce a 'real' app.

Can I use ionic for PWA and mobile app development?

It’s already epic to have one code base that can be built into a native mobile app and also be deployed to the web, but the flexibility of using some CSS and responsive items makes Ionic the perfect choice for both your next web application, PWA and mobile app!

What is ionic toolkit?

Ionic is an open source UI toolkit for building high quality, cross-platform native, web, mobile and desktop app experiences. Move faster with a single code base, running everywhere with JavaScript and the Web! With Ionic, comes the flexibility of building cross platform apps without any problem.


2 Answers

To expand a little bit on what has already been said, Ionic is is built and tested for mobile only. Internet Explorer for example is not tested and does not properly handle a number of the features in Ionic. Desktop browsers do have different features from their mobile browser counterparts. You would seriously limit the browsers that can use your application on a desktop.

Most likely, you should provide two different applications for desktop and mobile. Unless you have the guts or ability to tell your users that they must use Chrome (or Opera) to run your website, you'll want two separate applications. You could still use Ionic for a mobile website though, but without being able to use Cordova's full platform integration (you would be limited to the native HTML APIs provided by the browser). You could certainly retain much of your business logic in a common core that is shared between both applications. That would require creating a shared angular module(s). I have done this in a project with an Ionic app and a normal Angular desktop app (with Bootstrap).

There are a number of ways to detect if a visitor is coming from a desktop or mobile device. I don't know of a method that is 100% perfect, because they usually rely on the browser's user agent string (and can be spoofed, changed, etc). See http://detectmobilebrowsers.com/ for some common scripts or examples how to implement mobile detection on a server or in a programming language.

like image 59
Jeremy Wilken Avatar answered Sep 20 '22 22:09

Jeremy Wilken


This question was asked at ng-europe earlier this week. The answer from the ionic guys was to share your services and controllers, but use different views for desktop. Ionic is purely focused on mobile.

like image 33
Nat Wallbank Avatar answered Sep 22 '22 22:09

Nat Wallbank