As I continue to port my Ionic Framework tutorials to Ionic 2, I figured it was time to discuss how to make use of the device camera within an application. There are often needs to obtain pictures within an application. Maybe you’re creating an application like Imgur, or maybe you just want to be able to obtain a profile picture. Like I mentioned, I had written a camera tutorial a few years back on how to use the camera in an Ionic Framework application.
This time around we’re going to see how to snap pictures within an Ionic 2 Android and iOS mobile application.
Read MoreRecently I wrote an article regarding how to use SQLite in a NativeScript Android and iOS mobile application. In my previous tutorial the assumption was that the database would be created fresh. However, what if you want to ship a pre-filled SQLite database with your application? Maybe you have 10,000 records that you prefer not to have to download from a remote web server, or maybe there is another reason. Having a pre-populated database is fair game.
We’re going to take a look at what it takes to ship a NativeScript application with a SQLite database that already contains data.
Read MoreWhen developing mobile apps, at some point in time you may find yourself needing to show a background notification to your users. There are two types of notifications, one being the push notification which is sent from a remote server and the other being local notifications that are triggered from within the application.
We’re going to focus on local notifications here.
So when might you need to use a local notification? There are many scenarios. Let’s say you’re creating an app that communicates with iBeacons. When you’re within proximity maybe you want to trigger a notification to the user. There are many other scenarios that I won’t get into.
We’re going to see a basic example on how to use local notifications in a NativeScript Android and iOS mobile application.
Read MoreI get this question a lot, not necessarily for NativeScript, but for other mobile frameworks. The question is, how do you send emails from within your Android and iOS application without launching one of the already installed mail apps? In other words how do you send emails via a custom form within the application or in the background?
A solution to this question would be to use a backend web server that can send mail and create an API endpoint to it that can be accessed from your mobile app. However, this solution takes work and other resources. Instead you can make use of a transactional email service.
There are many of these email services available, but for this example we’re going to look at using the Mailgun service in a NativeScript application.
Read MoreNot too long ago I wrote a tutorial regarding saving data in a NativeScript mobile application using the application settings module that closely resembled that of HTML5 local storage. If you’re not familiar with the application settings module, it is persisted storage using key value pairs. What if you wanted a storage option that was a bit more query friendly? Like other hybrid app platforms, NativeScript supports SQLite for persisted data as well.
Both iOS and Android supports SQLite and since Telerik NativeScript can interface directly with native APIs, it becomes possible to use SQLite. We don’t need to write all the interface logic by hand because there happens to be a nice plugin available to make our life easier.
We’re going to see how to make use of SQLite in an Android and iOS NativeScript application using the available SQLite plugin.
Read MoreUnit testing! It’s something that we as developers all understand the importance of and implement in every project, right?
cough
Anyway… did you know NativeScript supports unit testing out of the box? It’s true!
By unit testing your application, you can ensure that any changes you’ve made to your code are working properly and that they haven’t broken any previous code. You could also integrate it into your Continuous Integration process and automate the running of your tests on a regular basis, or on each code check in!
Read MoreThere are a lot of “first” approaches circulating in the development and design space at the moment, but what does all this jargon mean? In this episode of the Polyglot Developer Podcast, guest speaker William Hoang and I are going to explore some of the common practices such as mobile first, offline first, and API first. I’ve broken Episode #4: What is All This Mobile First, Offline, First, and API First Jargon? into the following parts:
At the end of the podcast William and I bring everything together and explain how all of them are necessary in modern application development.
Read More