Meteor-Community-Packages / raix-push

DEPRECATED: Push notifications for cordova (ios, android) browser (Chrome, Safari, Firefox)
https://atmospherejs.com/raix/push
MIT License
514 stars 197 forks source link

Is it possible to send notifications across two different apps? #281

Open legionzi opened 7 years ago

legionzi commented 7 years ago

There are two apps, one for the customer and one for the merchant and they have a unified database in which both the apps connect to. I tried sending notification from the merchant app to the customer app; sometimes it works as it sends the notification to the customer app, and sometimes it sends the notification to itself. Sometimes this is possible but sometimes it doesn't work. If it's possible, what workaround should I do?

Also, when I start sending notifications, especially when I send a notification to a user with the token of a device in which the app is not installed to, the token field goes away and I get an error with code 8, as if sending notif clears the token of the userId and what I do is I re-insert the record with the token and then I can send a notification again and then the issue happens again. Sometimes even just plain sending takes the token field away and there are no logs that may tell what happened. This is intermittent as it happens almost always. @raix

raix commented 7 years ago

I'll see if I can do some work on this package to test this scenario

legionzi commented 7 years ago

It actually almost happens that when I Push.send, the other app receives it rather than the app itself. I just can't tell how the sending happens but I was thinking of suggesting the appName to be the indicator of which app to send the notification to. Would that be possible? Thank you so much by the way for responding, and really really great work.