1/16/2019 5:26:13 PM
Creating native mobile apps without writing native code
NativeScript,JavaScript Development,Mobile Development
App Developer Magazine

Creating native mobile apps without writing native code

Richard Harris Richard Harris in Low Code No Code Wednesday, January 16, 2019

The evolution of mobile development frameworks and how NativeScript is carving out a new landscape of its own among developers already familiar with Javascript.

Native programming can strike fear into the heart of anyone that doesn't know how to write it. While we as programmers understand our limits and capabilities, we still like to brag about the complicated function or route we just wrote. But just drop the words "Objective C, or Android Java" into the next conversation you have with fellow programmers and see who starts biting their nails.

It's well known that the path to building a great mobile app doesn't have to be native though. But it's also well known that the farther you get away from the native languages of the operating system you are programming for, means the further up the "stack" you have to go. The "stack" meaning the low-levels of the API's exposed to you by the manufacturer.

Why native code matters

So why would I care if I move farther up the stack? Because if you need to do something that isn't supported in the higher-level language you are using, you can't do it. For example, with the Corona SDK I can call a simple web view control with just one line of code, compared to around 7 lines using Objective C, so Corona makes it easier to program, plus it's cross-platform. But if I needed to overlay something on top of the native web view, I can't - Corona doesn't support native web view overlays, something that is no problem with Objective C. And that's just one of the hundreds of use cases when programming away from the native language.

Even though programming natively seems like learning Hebrew to some, there's good news! Progress has a solution that demystifies the native stack using what's called JavaScript-Driven Native(JSN) development. It marries the concept of web development and Native app development together into a whole new way to develop for mobile - and lets you program right down to the native layers.

Creating native apps without native code

NativeScript, which was developed by Telerik (a company acquired by Progress in 2014) as an Open Source project that stands as a leading JSN option for developers. NativeScript however, isn't a language, but rather a way that native mobile apps can be created using JavaScript or TypeScript. And not only does NativeScript play well with other JavaScript frameworks link AngularJS and Vue.js, but the framework is structured to allow for direct access to Native APIs through JavaScript which is a huge boon to developers of similar style frameworks who rely upon a "bridge" to the native side.

Progress (recently named a “Visionary” in Gartner Magic Quadrant for Mobile App Dev Platforms (MADP) has an extensive e-book, which explains more about the mobile concepts I'm talking about in this write-up, as well as getting started with NativeScript to create native apps using a simpler method. Check out the book below.

475 Tax Deductions for Businesses and Self-Employed Individuals

Are you paying more taxes than you have to as a developer or freelancer? The IRS is certainly not going to tell you about a deduction you failed to take, and your accountant is not likely to take the time to ask you about every deduction you’re entitled to. As former IRS Commissioner Mark Everson admitted, “If you don’t claim it, you don’t get it.

A hands-on guide to mastering mobile forensics for iOS and Android

Get hands-on experience in performing simple to complex mobile forensics techniques Retrieve and analyze data stored not only on mobile devices but also through the cloud and other connected mediums A practical guide to leveraging the power of mobile forensics on popular mobile platforms with lots of tips, tricks, and caveats.

Gps tracker for kids

The Chirp GPS app is a top-ranked location sharing app available for Apple and Android that is super easy to use, and most of all, it's reliable.

The Latest Nerd Ranch Guide (3rd Edition) to Android Programming

Write and run code every step of the way, using Android Studio to create apps that integrate with other apps, download and display pictures from the web, play sounds, and more. Each chapter and app has been designed and tested to provide the knowledge and experience you need to get started in Android development.