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

Loopback 2.0 + Push? #46

Closed Dids closed 9 years ago

Dids commented 9 years ago

Should this be working with the latest version of Loopback?

The biggest concern for me is that the documentation, all around, is extremely old or not working at all. Even some of the links are broken (both on the Strongloop website, as well as in other places, such as on the README.md of this repository).

I'm trying to follow along the push notification tutorials, and get a general idea of how to properly set up Loopback 2.0 to act as an iOS-only mBaaS.

This is essentially the only link I've found, but it seems to use Loopback < 2.0.0, so nothing's working: http://docs.strongloop.com/display/LB/Push+notifications#Pushnotifications-SetupyourLoopBackapplicationtosendpushnotifications

As far as I can tell, loopback-component-push can't be initialized with "require('loopback-component-push')(app, { dataSource: db });" anymore, so what's the correct (or easiest) way to do this?

epaminond commented 9 years ago

Same problem here.

raymondfeng commented 9 years ago

I just added an example at:

https://github.com/strongloop/loopback-component-push/tree/master/example/server-2.0