Capacitor - How is it different from Cordova ?Ĭordova helps build Ionic web app into a mobile device installable app. Ionic’s latest version - Ionic 5, was released in March 2020, and is what we are using for this blog post. With Cordova (and Ionic) you can write a single piece of code for your app that can run on both iOS and Android (and windows!), that too with the simplicity of HTML, CSS, and JS. Both of these are powerful but complex languages. If you create Native apps in iOS, you code in Obj-C or Swift. So, in other words - If you create Native apps in Android, you code in Java.
Apps can be built with these Web technologies and then distributed through native app stores to be installed on devices by leveraging Cordova. Ionic provides tools and services for developing hybrid mobile apps using Web technologies like CSS, HTML5, and Sass. Ionic is a complete open-source SDK for hybrid mobile app development created by Max Lynch, Ben Sperry and Adam Bradley of Drifty Co. You probably already know about Ionic, but I’m putting it here just for the sake of beginners. First, let’s see what Ionic 5 is all about.
In this post, we will learn how to implement Local notifications features in Ionic 5apps. You don’t feel the difference between Local and Push notification, and the server saves a lot of overhead. The app then sends you Local Notification, which looks same as a push. If you want an app to remind you of your tasks at a certain time of the day, it makes sense that the app does so using the in-built clock or timer in the device. Instead, they are generated locally on your device. These look and feel exactly like push notifications, but are not sent from server. This is where Local Notifications come in handy. Especially if you have millions of users. Hence, for each action or reminder, you might not want the server to send push notifications to all users.
Push notifications cause burden on Server, as well as, cost you money if you are using a service like OneSignal etc.