|
What are the options to build an app that would run on windows, mac , android and IOS with a single common code base ?
Any third party framework available for that or what could be the approach for that ?
|
|
|
|
|
Xamarin?
Anything that is unrelated to elephants is irrelephant Anonymous
- The problem with quotes on the internet is that you can never tell if they're genuine Winston Churchill, 1944
- Never argue with a fool. Onlookers may not be able to tell the difference. Mark Twain
|
|
|
|
|
that's what came in my mind but we need to target windows and mac too for desktop app
|
|
|
|
|
I have continually tried Xamarin and still don't like it. I've found it easier to write the apps in Native tech than learn Xamarin and I've been writing C# since 2000. But that's just an opinion.
The best choice for this is actually...brace yourself....HTML5.
HTML5 is HTML, JavaScript and CSS, of course.
It's still not possible in any technology to get desktop and mobile in the same go. But, if you build
1. PWA (Progressive Web App) HTML5
2. ElectronJS app (based upon HTML5)
Then you will get all environments. ElectronJS will give you complete deployment with the same code to Linux, Windows and MacOS.
Then you'll be able to use the same code to build your PWA as a mobile app. PWAs are deployed in such a way that users can install the icon to their mobile desktop as if it is an app.
I've built and Electron App that currently runs on Linux, MacOS, Windows and there are no code changes at all --- just build it on each platform.
ElectronJS also creates installation packages for each OS that works just as if you are deploying a desktop app -- users don't know the difference. Actually the ElectronJS app deploys much easier -- less security hoops to jump thru - it just works.
But, I know most people just hate JavaScript and there are good reasons to. But, any tool used properly can be a great thing. Also, you can do TypeScript for ElectronJS and that cleans up a lot of the JavaScript problems.
Good luck.
modified 12-Mar-20 10:14am.
|
|
|
|
|
Xamarin / Xamarin Forms.
Included in VS (even the Community Edition) and it keeps as much code as it can common - you only have to provide OS specific parts where they are very different.
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
does that covers for desktop platform windows and mac too ?
|
|
|
|
|
It covers UWP apps, which run directly on the windows desktop, but not WinForms / WPF.
MAC I haven't tried, but: Building Your First macOS App | Xamarin Blog[^] seems to imply it does.
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
|
will check these out. Thanks
|
|
|
|
|
With that many platforms you're almost forced into a webpage in a browser control (cr)app.
Did you ever see history portrayed as an old man with a wise brow and pulseless heart, weighing all things in the balance of reason?
Is not rather the genius of history like an eternal, imploring maiden, full of fire, with a burning heart and flaming soul, humanly warm and humanly beautiful?
--Zachris Topelius
Training a telescope on one’s own belly button will only reveal lint. You like that? You go right on staring at it. I prefer looking at galaxies.
-- Sarah Hoyt
|
|
|
|
|
Python is your best choice. Microsoft has been touting the crossplatformability of .Net Core, but that's just propaganda. Python runs the same way on any platform.
".45 ACP - because shooting twice is just silly" - JSOP, 2010 ----- You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010 ----- When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013
|
|
|
|
|
|
Driving from the word "Snake Oil" I guess 'Python' should be closer to what you need. lol
On a serious note, if it's a UI based application. Just go for React, host it on a server
& then place it on a HTML control that's available in every platform you mentioned.
|
|
|
|
|
Ehsan Sajjad wrote: What are the options to build an app that would run on windows, mac , android and IOS with a single common code base ?
Wasn't that the original purpose of java?
I'm retired. There's a nap for that...
- Harvey
|
|
|
|
|
|
Chill, MM. He's trying to wind you up. If he succeeds, he thinks he's won, but the reality is that everyone here loses.
I wanna be a eunuchs developer! Pass me a bread knife!
|
|
|
|
|
Mark_Wallace wrote: everyone here loses.
Not me, this is entertaining... *popcorn emoji*
|
|
|
|
|
Well, my second thought was to ask them to move it to skype, so we could have video.
I wanna be a eunuchs developer! Pass me a bread knife!
|
|
|
|
|
Why do you let someone (who you clearly don't like) bother you so much?
People are weird.
|
|
|
|
|
Excuse me, I am not weird ... uh don't ask SWMBO.
|
|
|
|
|
Wrong forum.
You want the surveys page.
I wanna be a eunuchs developer! Pass me a bread knife!
|
|
|
|
|
Do not turn yourself on so hard!
You both were not-funny at all (IMHO)...
You wrote: bloody Americans
Slacker007 wrote: alcoholic Aussie
Not funny and not humorous, but not differ either...
Calm down!
"The only place where Success comes before Work is in the dictionary." Vidal Sassoon, 1928 - 2012
|
|
|
|
|
Kornfeld Eliyahu Peter wrote: You wrote: bloody Americans I thought that was their official title?Kornfeld Eliyahu Peter wrote: Slacker007 wrote: alcoholic Aussie That's personal; a bitch too far.
I wanna be a eunuchs developer! Pass me a bread knife!
|
|
|
|
|
You're right - Everybody was quite negative in that thread. The only one who was positive was Tom Hanks... (and his wife)!
Anything that is unrelated to elephants is irrelephant Anonymous
- The problem with quotes on the internet is that you can never tell if they're genuine Winston Churchill, 1944
- Never argue with a fool. Onlookers may not be able to tell the difference. Mark Twain
modified 12-Mar-20 8:16am.
|
|
|
|
|
For that one you you don't need a coat, but rather a hazmat suit.
|
|
|
|