Using the Cordova API: Pushwoosh
Both PushWoosh and Google have changed their interfaces. See the following docs:
http://docs.pushwoosh.com/docs/phonegap-build
http://docs.pushwoosh.com/docs/fcm-configuration
https://www.joshmorony.com/setting-up-the-pushwoosh-plugin-with-phonegap-build/
Introduction
The Pushwoosh API lets you send notifications from your computer to your app running on the device. While your app is running, if a notification is received, a function in your app will be called with the contents of the notification. It can then take whatever action needed based on the incoming data.
Notifications are a way to send and receive messages from your device. They have the ability to be broadcast to large numbers of devices. For Android, Google Cloud Messaging is used. For iOS, it uses the Apple Push Notification Service.