-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow SNS Adapter to send to a topic #2444
Conversation
Please remove the lib folder as it's still part of the commits |
@benishak updated the pull request. |
@@ -37,7 +37,7 @@ node_modules | |||
.vscode | |||
|
|||
# Babel.js | |||
lib/ | |||
lib |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove that change
Current coverage is 91.84% (diff: 100%)@@ master #2444 diff @@
==========================================
Files 95 95
Lines 10708 10717 +9
Methods 1309 1309
Messages 0 0
Branches 1741 1743 +2
==========================================
+ Hits 9835 9843 +8
- Misses 873 874 +1
Partials 0 0
|
It seems to me that this feature is highly specific to AWS SNS, can be achieved right away with the AWS SDK and besides using the Parse.Push semantics, don't leverage any feature from parse-server. What do you think @drew-gross ? |
I'm not much of a push user, I've never really built anything with push, or built any of the push components of Parse (except UI). @nlutsenko would probably know better. |
I actually tried not to touch the Parse Server and just put the logic in the sns-adapter. I wanted that the PushController skip querying the Installations |
@benishak how hard would it be to implement it as a cloud code functions, i believe using the AWS node SDK directly would be easier and will make this corner case disappear, therefore easier to maintain that area for us. |
I managed to do the same from Cloud Code using the same SNSAdapter.
then in Cloud Code I can call
You can ignore this PR but please edit and accespt my PR for the |
That seems to be cleaner that way, I'll check the other PR soon :) |
@flovilmart @benishak Can you also configure this for SMS or is the preferred method Twilio still? |
SNS is Simple Notification Service, which is a push infrastructure from Amazon. Not related to SMS... |
@flovilmart The name is misleading. There is SMS support: https://aws.amazon.com/sns/sms-pricing/ |
My bad, In any case, if you think AWS is better than Twilio for sending SMS, you can use it :) |
A solution for this issue #2434
Allow user to specify a SNS Topic to send push to multiple users at once without overloading server by querying the Installations. You still can use AfterSave on
_Installations
to subscribe a user to a specific topicuse it this way
follow this PR of
parse-server-sns-push
parse-server-modules/parse-server-sns-adapter#6
still falling because of test ...
I tested and work fine