7

I am new to sails js. I want to implement push notifications for both android and IOS in sails js .

I am using Sails js with mongodb.

can anyone help me with regarding configuration or which plugin to use to implement push notifications in sails js.

thanks in advance.

Anil Kumar
  • 187
  • 9

4 Answers4

4

socket.io(the push notification library that sails uses) has android and ios support. The only difference is, you can't use sails.io.js(sails's socket.io rest style client) as it's a javascript library. You should be able to just follow the docs for the android and ios libraries.

aclave1
  • 1,597
  • 16
  • 27
0

I suggest you use mosca It can be used to push the notifications. You would like to help. There is another similar programme MQTT

苏理煌
  • 11
  • 3
0

I suggest you to use fcm-node module.

You dont have to worry about the devices here. Its has a simple interface to Google's Firebase Cloud Messaging (FCM) & Supports both android and iOS, including topic messages, and parallel calls.

Vishnu S Babu
  • 902
  • 7
  • 21
0

I would definitely suggest FCM-PUSH for your requirement. I have used and find it very easy to implement.

NPM fcm-push

Steps which is provided in document is easily understandable. This will work for both ios and android. You just require firebase server key.

Google Firebase

I am finding for code. If I will get then post it in comment.

KinjalB
  • 121
  • 3