The NativeScript blog is your source for timely and interesting news about NativeScript. If you would like to guest post on our blog, please let us know.
The upcoming ES7 language edition has the async/await feature which makes the UI and networking code a breeze to write and support. I was very eager to experiment with async code in a NativeScript app, and decided to try it by implementing a simple app. I decided to mirror the cuteness sample. But my project was going for something more awesome, and that's why it follows /r/hardcoreaww sub-reddit instead.
Learn how to connect a Firebase backend to your NativeScript app.
Telerik UI for NativeScript has just been updated introducing several major features in the Chart and ListView components, as well as numerous fixes and improvements. Here's a short list of what's inside the latest version of the plugin:
The popular mobile platforms, however, are two - iOS and Android. So, it would be fair if I cover Android as well. Moreover, further in this article as things get a more interesting and we are close to having a cross-platform AdMob usage, I will show you what’s the recommended way of separating and isolating the native API calls in a NativeScript project. So, let’s begin.
Get a jump start on your NativeScript iOS and Android mobile application development in a new quickstart course.
There are three reasons for the NativeScript framework to exists - native UX, performance and a cleaner and easier programming model for cross-platform mobile applications.
As we know, NativeScript CLI is a Node.js application. This brings the questions like "which versions of Node.js can and should I use" or "how long particular Node.js version is supported."
To answer these questions, it is useful to know the life cycle of Node.js. Please, take a minute to check the project wiki which explains it in a single graphic. With it in mind, the NativeScript team decided to support the LTS branches and, if possible, the "current stable" branch.
So why is this a big deal and why it is a best practice to use a font instead of an image file to display an icon?
The whole world goes mobile, so are the software trends. But what’s the reason to create a mobile app after all? Well, surely, when things get serious, after the “it’s just for tests and fun” phase, it’s all about the money. You can create an app for the employees of your company or for the employees of somebody else (B2E, B2B). In this case your company benefits directly from the services you provide to its employees, or you take a commission for the app you create. But if your customers are the end-users (B2C) or if you create an app for a business customer (B2B) that will sell it to the masses, then you should surely be aware of the different app monetization methods where two of the main ones are in-app purchases and mobile ads.
Today, we will talk about mobile ads and how you can enable them in your NativeScript application using the Google AdMob service and SDKs. This article will focus on iOS and in the next part we will cover the Android platform.
(expect a newsletter every 4-8 weeks)
Ready to try NativeScript? Build your first cross-platform mobile app with our free and open source framework.
If you see an area for improvement or have an idea for a new feature, we'd love to have your help!