It doesn’t just take a good idea when it comes to making a great mobile application. Sometimes it takes a little flair in the user interface department to make a good mobile application into a great mobile application. For example, when you have a user login screen, you could just ask for username and password credentials, or you could include profile picture information as well. Which do you think would be better?
Gravatar offers a global avatar registry based on user email address. In other words, you upload your profile picture to Gravatar, associate it with your email address, and then that same avatar can be used in any application that uses Gravatar. WordPress, the platform this blog is hosted on, uses Gravatar for my profile picture for example.
We’re going to see how to automatically set the user profile picture in a NativeScript Angular application using the Gravatar API.
Read MoreI’ve been playing around with sockets and websockets recently. Not too long ago I wrote about creating a real-time chat application using Golang and Angular that made use of websockets. In that example we created a chat server using the Go programming language and a client facing web application using Angular. The communication between the two used websockets to keep things real-time.
What if we wanted to create a native mobile application for Android and iOS that communicated via websockets to our server or any other websocket server? Using NativeScript, it is very possible to create a mobile client that works with the Golang with Angular example as seen previously.
Read MoreI’m an English only speaker, reader, and writer, so when I download an application from iTunes or Google Play, it is going to be in English. There are many people like this, but possibly in a language other than English. When I release my English-only application, how much of the world am I neglecting? To get the most success for your application, it makes sense to add internationalization (i18n) support so users can access your application in their native language.
Back in my AngularJS days I was using an incredible library called ng-translate and lucky for me, and everyone else, there is a variation of that same library for later versions of Angular. This new library, called ng2-translate, accomplishes the task of multiple language support in your application.
We’re going to see how to add internationalization support to our NativeScript Android and iOS application built with the Angular framework.
Read MoreI’ve been hearing a lot about websockets lately and how they can accomplish real time communication between applications and servers. They act as a compliment and possible alternative to RESTful APIs that have been around for significantly longer. With websockets you can do real time messaging for things like chat, communication with IoT, gaming, and a whole lot of other things that need instant communication between clients and the server.
A while back I had played around with websockets and Node.js using a library called Socket.io, but since I’ve been really getting into Golang I wanted to explore websockets using the Go programming language.
We’re going to check out how to create a chat application where the client is an Angular application and the server is a Golang application.
Read MoreOne of the common misconceptions in the web world is that RxJS is an “Angular thing”.
What most developers don’t realize is that Observables are on their way to becoming native to the web, and if you aren’t already using them to handle asynchrony, you are not adequately preparing yourself for the future.
RxJS allows you to solve hard problems with less code, promotes maintainability, readability, flexibility, and composability. These are just some of the reasons RxJS is the hottest way to handle async right now.
Learning how to handle asynchrony the reactive way instead of using promises and callbacks will also greatly reduce the probability that you are leaking resources. And because RxJS works with any framework (angular.js, react.js, ember.js, vue.js), node, and even without frameworks, it’s easy to future proof your applications and have confidence in using this technology.
Read MoreCSS is usually a subject I avoid due to me being artistically illiterate, but recently a student of mine asked me an interesting question regarding theming an Angular NativeScript application with dynamic CSS files loaded at runtime. Given the nature of Angular, it becomes difficult to load files at runtime because of how Angular compiles and builds projects. NativeScript Angular projects are no exception when it comes to switching a CSS skin.
So what if we want to apply a set of CSS styles on demand, but keep them separated in their own files?
We’re going to see how to switch between files to apply a CSS skin to a NativeScript Angular application on demand at runtime.
Read MoreI recently received a request from one of my followers for a tutorial on using Google Admob in a NativeScript Angular application. Not too long ago I had demonstrated Google Admob in a vanilla NativeScript project, but I hadn’t yet given it a shot with Angular.
In case you’re unfamiliar with Admob, it is an excellent way to monetize your mobile applications with advertisements. You’ll earn revenue not only from people clicking your in-app advertisements, but also from the advertisements appearing on the screen.
We’re going to see how to use Admob in a NativeScript Android and iOS application that was built with Angular.
Read More