appfeel / node-pushnotifications

Push notifications for GCM, APNS, MPNS, AMZ (automatic detection from device token)
MIT License
534 stars 126 forks source link

Different instances of `PushNotifications` with different configs. #10

Closed vedi closed 7 years ago

vedi commented 7 years ago

In my backend I need to use different setting in pushes in different conditions. Unfortunately shared settings (https://github.com/appfeel/node-pushnotifications/blob/master/lib/push-notifications.js#L8) breaks the logic.

I've prepared PR (https://github.com/appfeel/node-pushnotifications/pull/11), which fixes this. Please, merge, or apply other fix, and publish fixed version.

appfeel commented 7 years ago

Thanks, merged