Ionic 4 | Native HTTP Plugin Tutorial with Example

In this tutorial, we will learn how to make HTTP calls using Ionic’s Native HTTP plugin.

Making Native server calls over provides advantages over traditional JavaScript HTTP calls. Native HTTP calls are made in Android and IOS based native applications. It provides more security and better calls handling features.

Some of its advantages are as follows:

Background threading: All requests are done in background thread like native applications.

Handling of HTTP code 401: This error code 401 is returned during an unauthorized access to the server which is not handled properly using JavaScript-based HTTP calls.

SSL Pinning: Pinning is used to improve the security of a service. It is used to create a secure Identity for making communications. Continue reading Ionic 4 | Native HTTP Plugin Tutorial with Example

Ionic 4 HttpClient CRUD Service Tutorial to Consume RESTful Server API

Angular’s HttpClient service enables communication between application and server by making an HTTP call to RESTfull API endpoints. In response, we get JSON data which is consumed to show meaningful content to users in client-side applications.

In this tutorial we are going to learn, how to use HttpClient service in Ionic 4 Application to make server HTTP calls with custom headers and propper Error Handling using RxJS operators. In our student application, we will implement CRUD (Create, Read, Update and Delete) operations to communicate with a Mock Server which we will build using JSON-Server NPM package. Continue reading Ionic 4 HttpClient CRUD Service Tutorial to Consume RESTful Server API

Ionic 4 | Keyboard Native Plugin Tutorial

In a hybrid application which runs in a WebView, we sometimes face challenges to have control on Keyboard to show or hide when the user starts to type in. To resolve this ve have Cordova plugin which controls Keyboards events and provides easy methods to intentionally show or hide Keyboard on user screen.

Here we will discuss How to add Keyboard Native plugin in Ionic 4 application and how to sue Keyboards Hook events.

Continue reading Ionic 4 | Keyboard Native Plugin Tutorial

Ionic 4 Native | Date & Time Picker using Native DatePicker plugin Tutorial by Example

To give a more native look to the Ionic application we can replace HTML based Datepicker with Android’s Native Date and Time picker in Ionic hybrid applications. Ionic’s Native Datetime Picker plugin allows adding Android Date and Time picker with many custom options and themes. Continue reading Ionic 4 Native | Date & Time Picker using Native DatePicker plugin Tutorial by Example

Ionic 4 | Text to Speech Ionic Native Plugin tutorial for Ionic 4 Application

Ever wondered about a feature to convert text to speech? Yes, it’s possible to make you Ionic application speak the text. By using Text To Speech Cordova plugin we can easily add this feature in hybrid application.

Text to Speech Ionic Native plugin can be used to read out text in local in a beautiful female voice 😛  You can also adjust the pace of speech by adding using options available.

Here we will create a new Ionic 4 Application and demonstrate how to use Text to Speech plugin in Ionic 4 application.

Continue reading Ionic 4 | Text to Speech Ionic Native Plugin tutorial for Ionic 4 Application

Ionic 4 | Complete SQLite CRUD Tutorial for Ionic 4 Angular Applications

Storage of data on a user device is an important requirement for mobile applications. For a hybrid application like Ionic, we have WebViews where we can access browser storage available in the form of Local or Session storage. But these have limitations in terms of availability of memory which can store only 10mb of data.

In Ionic we have a Native Plugin SQLite which can be easily integrated with the application and have no limitation on storage of data, it depends on device memory.

SQLite is SQL based database where we can easily create databases, tables, and store or retrieve complex data from it by running SQL queries.

Continue reading Ionic 4 | Complete SQLite CRUD Tutorial for Ionic 4 Angular Applications

Ionic 4 | Storage Tutorial in Ionic using Native Storage Plugin

Storage of information on a user device is very important and required in almost every application. This information saved on a user device can be of any type including user sessions, profile details, user or application settings etc.

In Ionic application, we can store such information in WebView memory which remains even if the user closes application or clears app cache from the device. There are two easy ways for storage in the Ionic application:

Continue reading Ionic 4 | Storage Tutorial in Ionic using Native Storage Plugin

Ionic 4 | Geolocation Camera clicking Pictures with Watermarked Latitude & Longitude Coordinates

In this article, we are going to create an Ionic 4 application with a GeoCamera feature. The application will take pictures from device camera then watermark them with current location coordinates with Lattitude and Longitude.

Sometimes users may need this functionality in application to watermark images with any of such information for validation purposes. In this tutorial, we will also discuss a very useful js library WatermarkJS which can be used to marker mark images with text or images.

Continue reading Ionic 4 | Geolocation Camera clicking Pictures with Watermarked Latitude & Longitude Coordinates

Ionic 4 | Use Camera using Ionic Native plugin in Ionic 4 Latest version

Ionic 4 Application to use Camera and get pictures returning images as Base64 URL to show user Image taken.

Hybrid applications are very quick to build but sometimes it becomes challenging to achieve some features which involve access to hardware like GPS, Network, Storage, File Storage, Camera. Cordova comes in charge to provide plugins to make a connection with java libraries to use them.

We have already discussed How to access the camera in Ionic’s version 3, in this article we will use Camera feature in Ionic application with latest version 4 using Cordova and Ionic Native Continue reading Ionic 4 | Use Camera using Ionic Native plugin in Ionic 4 Latest version

Ionic 4 | Crop Images selected from Image Selector show in base64 format using Native plugins

In many applications, we usually face some situation where we need to get Cropped images from users during form submissions. Cropped images are usually small in size and have only that part of an image which is required. Image crop behavior should be easy to use and of course easy to implement 😛

Continue reading Ionic 4 | Crop Images selected from Image Selector show in base64 format using Native plugins