Our website is made possible by displaying online advertisements to our visitors. Please consider supporting us by disabling your ad blocker.

Send Emails In Ionic Framework Via The Mailgun API

A few years ago a wrote a tutorial for sending emails in an Ionic Framework Android and iOS application. The tutorial works great, but it requires that a mail application be used to finalize the send. In other words, you can set default values for email fields, but you still need to select Gmail or similar to actually send the email.

A popular question I receive is how to send emails without launching an email application. There are a few solutions to this. You could either set up your own server that sends emails and access it via an API, or you can use a service like the Mailgun.

We’re going to see how to send emails using the Mailgun API service.

Read More

Deploy A NativeScript App With A Pre-Filled SQLite Database

Recently 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 More

Using Local Notifications In Your NativeScript Mobile App

When 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 More

Send Emails In A NativeScript App Via The Mailgun API

I 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 More

Unit Testing In A Telerik NativeScript Mobile App

Unit 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 More

Monetize With Google Admob In A NativeScript Mobile App

So you just made a fancy new NativeScript Android and iOS application and you’re looking to earn a little cash. There are many solutions out there, for example you could include InAppBilling or list your application as a paid application. You can also include advertisements in your application using various ad networks such as Google Admob.

We’re going to take a look at how to include Google Admob in a NativeScript iOS and Android mobile application with the intent of earning a little extra money. Now this is going to use vanilla NativeScript. If you’re looking for instructions on how to do this with Angular, check out the guide I wrote here.

Read More

Access The Native Device Clipboard In Telerik NativeScript

Have you ever wanted to copy something from your application to the native device clipboard? Maybe you want to copy contact information from a list of elements so you can paste it elsewhere. I recently wrote a post regarding social media sharing with Telerik NativeScript that will let you share to the clipboard, but that is a little overkill. Specially because there are actual clipboard APIs that don’t rely on social media sharing.

We’re going to see how to use the native device clipboard features in NativeScript to copy text to the clipboard and later obtain it.

Read More