Implementing push notifications in sails js
Asked Answered
C

4

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.

Coiffure answered 17/7, 2015 at 5:23 Comment(0)
L
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.

Lillianalillie answered 19/8, 2015 at 16:55 Comment(0)
R
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

Regent answered 10/11, 2015 at 8:5 Comment(0)
M
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.

Martian answered 18/1, 2018 at 5:40 Comment(0)
C
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.

Cormac answered 11/7, 2018 at 5:50 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.