Mobile Push Notification from Embedded using NodeJS in Mesosfer

1. Introduction

This section will show you about how to send push notification from Embedded using NodeJS in Mesosfer Backend as a Service. Actually, push notification is not only sent from Mesosfer Backend, but you can also send push notification from your environment like Embedded Device or Web Application.

3. Getting Started

You must have header authorization like AccessToken, ApplicationId, and ApplicationKey before post data to Mesosfer API. Login Mesosfer Backend then go to device, you will get DeviceToken. Use this token for authorization.

And go to App Setting to get ApplicationId and ApplicationKey.

4. Install Node REST Client

You need to install library node-rest-client first in your project directory.

PHP

1

npm install node-rest-client

With this library you can use HTTP GET, POST, PUT, and DELETE in Mesosfer API.

6. Conclusion

We have created sample code to send push notification from Mesosfer Bucket. Very simple and quick, isn’t it? You do not have to worry about GCM registration ids, sender ids, or API keys, All of them have been handled by Mesosfer. Mesosfer helps you connect your project to the cloud. Cut off the development process so you can straight into the delivery process instead stumble on the complicated infrastructure.