Cross Platform Development
What a platform is, why cross-platform and hybrid apps are not the same, how one source code becomes native apps, and why it matters.
First published on Medium (opens in a new tab)
Abstract
Cross-platform development it’s one of the most popular development trends. According to Statista one third of mobile developers use cross-platform technologies or frameworks; the rest of mobile developers use native tools ; and that’s related to economics and commercial reasons .
What Platform mean ?
A computing platform or digital platform is an environment in which a piece of software is executed. It may be the hardware or the operating system (OS), even a web browser and associated application programming interfaces, or other underlying software, as long as the program code is executed with it. Computing platforms have different abstraction levels, including a computer architecture, an OS, or runtime libraries.A computing platform is the stage on which computer programs can run.
examples :
- Windows
- Android
- Ios
- MacOs
Note : MacOs depending on cpu with Arm architecture it’s a different platform to MacOs with x86 architecture.
And that’s led us to our terms Cross Platform
A cross-platform computer product or system is a product or system that can work across multiple types of platforms or operating environments. Different kinds of cross-platform systems include both hardware and software systems, as well as systems that involve separate builds for each platform, as well as other broader systems that are designed to work the same way across multiple platforms. Cross platform is also known as multi platform or platform independent.
Common definition for this development product is cross- platform applications ; This definition is not comprehensive because there are different techniques to produce those applications with custom functionalities and behaviors so more accurate naming is Hybrid Application .
Why are cross-platform & hybrid applications not the same ?
Hybrid applications do not perform like native one . But this role does not completely apply to Cross-platform applications ; because cross-platform terms include web applications that can be opened by any browser available and provide exactly the same performance and behaviors .
Development
Cross-platform technologies use native SDKs to produce native applications ; like android SDKs to build android app & Xcode to build IOS applications . but those apps will not perform like the ones you create with the native method. That’s related to the entire process of building an app using cross-platform applications ; The benefit of cross-platform applications is to unite the implementation phase for one app to work on multi platform and that’s meaning to create one app that work on multi operating system
so we need to write one source code to produce this kind of app and here we will face a technical issue on how we will find a context all machines can understand like
Do MACOS understand Kotline or windows understand swift !?
So the solution was to generate native code from a neutral language code .
The generated code will be compiled into the application ; The reason why this process could affect performance is that the generated code could not be an optimal code so the more generating code algorithms are close to optimal the more could be close to native performance .

Capability
There is no doubt that native applications are more efficient and can access all features in hardware parts like camera , sensors …. etc ; but this is not the same in cross-platform development.
The reason for that is there are no direct communication APIs between cross-platform language code and OS APIs ; this issue was resolved by plugins .
Plugins are programming packages written with native code to communicate with the OS .
Comparison Between Native & Hybrid applications
| Native application | Hybrid application | |
|---|---|---|
| Cost | It costs a lot of money plus double the cost for each supported platform | It costs less than the native apps and supports multiple platforms |
| Performance | The ability to access all the features of the device and has a high response | Variable performance according to the technology used, so the response is between average and close to the native |
| Distribution platform | Publishing is accepted on the target platform store | Publishing is accepted on the target platform store |
| Device feature access | Full access to every available API | Limited access and dependent on plugins availability |
| UI | The application is designed to suit the user's system, making it familiar | It varies according to the technology used. Some technologies offer different interfaces and some offer similar interfaces to the native applications |
| Maintenance | The code is difficult to maintain and it costs a lot of time to multiply the code depending on the type of target platform | A unified code for all platforms, which facilitates the maintenance process in terms of cost and time |
Importance
Cross-platform development is very important for many reasons :
1 — Economics
Cross platform development costs less money than native development with more achieved goals so that’s why companies are dealing with it , The same amount of money that you can spend on one native app that’s targeting one platform you can use it to create cross-applications targeting multi platform .
2 — Maintenance
Cross-platform applications are easy to maintain and mostly have less lines of code depending on the framework used .
3 — IOT
Some cross-platform development frameworks are targeting embedding systems and that makes it easier to make your device smart and connected to the internet .
Conclusion
Cross-platform development it’s something powerful and very necessary in our modern world .
References
- Cross-platform mobile frameworks used by global developers 2021 | Statista
- What I Talk About When I Talk About Platforms
- Cross-platform software - Wikipedia
- Flutter architectural overview
- When Native Development Wins Cross-Platform - TopDevs Blog
Credit
Dr.Maisa Diab From AUST University (Information Technologies department).