nomad-cli / houston

Apple Push Notifications; No Dirigible Required
http://nomad-cli.com
MIT License
2.93k stars 229 forks source link

How to increment the badge number? #112

Closed nbastoWM closed 7 years ago

nbastoWM commented 8 years ago

I'm using this with React Native and everything is fine except for the incrementation of the badge number.

I tried to send notification.badge = +1 or notification.badge = "+1" but the badge number is always just 1.

I can't previously know what badge number is on the device so I can't send the exact number.

bengg commented 8 years ago

You cannot increment the badge number. You can only set a new badge number for each push notifications.

maxprig commented 8 years ago

You must implement logic for increment badge in you Ruby application.