strongloop / loopback-component-push

Push notification component for LoopBack.
http://loopback.io/doc/en/lb2/Push-notifications.html
Other
96 stars 95 forks source link

How to push to subscriptions? #170

Closed oskk closed 6 years ago

oskk commented 6 years ago

Hello, how do I push to every device with a particular subscription? In my case I just have subscriptions: ["1"] in some of my Installations. However, neither Push.notifyByQuery({subscriptions: ['1']}, notice, cb) nor Installations.findBySubscriptions('android', ['1'], cb) seem to return any installations and/or push my notification.

I was able to query the Installations through the API explorer so I know that the code works (GET Installation {"where":{"subscriptions":"[\"1\"]"}} and bySubscriptions both work fine).

Are there any examples or documentation that actually demonstrate sending push notifications to a particular subscription? Thanks!

stale[bot] commented 6 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] commented 6 years ago

This issue has been closed due to continued inactivity. Thank you for your understanding. If you believe this to be in error, please contact one of the code owners, listed in the CODEOWNERS file at the top-level of this repository.