The reason Doctors keep a secret diary is because they are fallible.

I currently work in Pathology, but my true ambition once upon a time was to become a Paediatrician. This career prospect was meant to combine my love for children as well as my fascination with the…

Smartphone

独家优惠奖金 100% 高达 1 BTC + 180 免费旋转




Implementing Apache Cordova Push Notifications in Android using Firebase

Firebase Cloud Messaging (or FCM) is a great cross platform messaging solution that is completely 100% free. Today, I’ll walk you through the process of creating push notifications in your Android Apache Cordova application using Firebase.

The first thing we’re going to do is set up a cordova project. If you already have your project set up, skip this step. I’m including it for completeness. We’re going to create this project in our “desktop” directory, so first you should open up your terminal or command line and type “cd desktop”. Next, type “cordova create notificationtest com.notificationtest.app”. Be sure you get the com.notificationtest.app part as that is our package name that Firebase will use. Type “cd notificationtest” to change to your new project directory.

Now we can go into Firebase and select “Add project”. Type “Notification Test” (or your project’s name) into the Project Name area, and select Create Project. Now that your project has been created, go to the Project Overview page for your Firebase project and select Add app, and select the Android logo.

Now you’ll be able to register your app. In the Android package name section, type com.notificationtest.app, and press Register app. This will generate a JSON file called “google-services.json”. Download this file, and continue through the App registration page, just selecting the things that are selected by default.

Navigate to the directory where the google-services.json file was downloaded, and move the file into your desktop/notificationtest directory.

Add a comment

Related posts:

An API To Measure Air Quality Can Raise Awareness Of Ecological Situation

With the proliferation of technology, it seems almost anything is possible. We have seen this in many aspects of our lives, such as the way we shop, get around town, and so on. But what about…

Monitoring damp with a Pi Zero W

A couple of weeks ago I became a homeowner after years of renting flats. My new house is actually an old house built in the 30s. Like all old buildings there’s the possibility of damp during the…

Microsoft Azure and its Benefits

Today large companies like Amazon, Google, and Microsoft, which have extensive experience managing large data centers, are offering customers to “rent” data capacity. This is great news for companies…