N
Nuxt5mo ago
Artist201

Building a Desktop/Mobile web nuxt app

So i have never touched any part of mobile dev i just usually set up the css media queries to set the page based on the view port. we are soon to start developing the new frontend of our nuxt app and i was wondering if there are any interesting solutions/libraries that could ease how to build a web app that could be transported somehow to mobiles as an app while keeping the website part working with the same code. what I mean by that is there shouldn't be a different development cycle for each. ( currently native mobile apps features are not necessary for us but it would be nice if it is possible )
5 Replies
Eric
Eric5mo ago
Hi! have you ever built a PWA ? it's just a website/web app that can be installed on a mobile device. It gets it's own icon in the device and acts just like a normal app. The only caveat is that it is linked to the web browser. If you install it through Firefox and uninstall Firefox, the app will be uninstalled. pwa = Progressive web app
Artist201
Artist201OP5mo ago
i did a very little trial on that. it basically makes a short cut to the page on mobile gallery though my question is not about that it is more like. are their some UI library that automatically scaffold most the css layout for you ? can you somehow export the front page app and share it through the stores ?
Eric
Eric5mo ago
You can sell/share pwa's on app stores. and it's not "just" a shortcut. You can install the app and access it off line like a standard app.
I'm not sure I understand your question correctly. If you are looking for the most straight forward way to transform a website/webapp into a proper app, pwa is the way to go. It's efficient and really easy. You could also use flutter that lets you publish your code for the wen android and ios. But it's not as easy and straight forward.
Artist201
Artist201OP5mo ago
Are you saying that pwa can access mobile features ? Without any hussle like precise location and whatever. Also, our app shouldn't be accessible offline anyway since the data can change quickly and it is meaningless to show cached data.
Eric
Eric5mo ago
Yes it can access mobile features. Hussles ? Not really. To me, the main downside is that it is linked to the browser. The user could unsinstall their browser not knowing it will unistall the app, therefore risking loosing the local data. If it's really just a frontend app that mirrors a database (like facebook, twitter, etc), there wont really be data stored locally.
Want results from more Discord servers?
Add your server