pushbots/pushbots-nodejs

Why do we need to specify the platform?

Closed this issue · 9 comments

It seems silly to me to pass the platform (and have to store in our database) when pushbots already knows which platform the device came from. On the dashboard it says # of Apple and # of Android devices. It makes no sense to specify a platform when we have a device ID which is unique to the device and platform already.

+1

Are we talking about setMessage function when trying to push to everyone?

Not only when trying to push to everyone. You always have to specify it in the setMessage function. Even if you push to only one device.

Right, in pushbot.setMessage and anywhere else for that matter. It should not ever need to be specified or stored in the db for us (the developer) as you already have that data from the device ID.

With pushOne it makes sense to eliminate it. With Push to all it can be an optional parameter (in case you wanted to send to only certain platform). Makes sense?

Great. Will fix.

@amrsobhy Just on the pushOne() would be great