Ask HN: How to create web, mobile, and desktop apps from a common code base?
11–20 of 30 posts
Re: Ask HN: How to create web, mobile, and desktop apps from a common code base?
#12Consider .Net Core it requires c# but all the desktops and android are supported. I don't know about iOS
Re: Ask HN: How to create web, mobile, and desktop apps from a common code base?
#13Earlier quoted context omitted.
One of the versions will be a website, but I want mobile and desktop versions to be able to operate in offline mode with a local database.
Have you seen PWAs? https://www.google.com/search?q=pwa Websites already have access to offline storage via the localStorage API. When the user installs a PWA, it gets additional permissions which make it even more similar to a native app.
If you want your users to be happy, make a proper app
Re: Ask HN: How to create web, mobile, and desktop apps from a common code base?
#14Re: Ask HN: How to create web, mobile, and desktop apps from a common code base?
#15Re: Ask HN: How to create web, mobile, and desktop apps from a common code base?
#16Consider .Net Core it requires c# but all the desktops and android are supported. I don't know about iOS
Re: Ask HN: How to create web, mobile, and desktop apps from a common code base?
#17Earlier quoted context omitted.
Have you seen PWAs? https://www.google.com/search?q=pwa Websites already have access to offline storage via the localStorage API. When the user installs a PWA, it gets additional permissions which make it even more similar to a native app.
As a web dev, I'd recommend against this. They have pretty shitty UX and always feel like second class citizens... If you want your users to be happy, make a proper app
Re: Ask HN: How to create web, mobile, and desktop apps from a common code base?
#18Consider .Net Core it requires c# but all the desktops and android are supported. I don't know about iOS
Is it .NET Core or just .NET? I think .NET Core was renamed to just .NET a while back but it's impossible to keep track of what's what after the many naming convention changes the team regularly makes.
Re: Ask HN: How to create web, mobile, and desktop apps from a common code base?
#19Consider .Net Core it requires c# but all the desktops and android are supported. I don't know about iOS
Furthermore, the deployment size of .NET is HUGE and NativeAOT is really hard to accomplish as soon as you have a few libraries. Startup times are also not that impressive and deploying for all platforms is really a pain.
For comparison the size of a simple hello world Android App
.NET > 70MB
Flutter
That may sound like it's not relevant, but believe me, it is.Re: Ask HN: How to create web, mobile, and desktop apps from a common code base?
#20Many people underestimate the power of webview based tech in mobile. For most usecases, webview based tech does just fine.