urbanairship / ruby-library

A Ruby wrapper for the Urban Airship API.
Other
200 stars 118 forks source link

Auto badge #14

Closed dschneider closed 12 years ago

dschneider commented 12 years ago

Hi there,

I am experiencing problems with the badge set to "auto". Every time a push notification is sent, the badge gets reset. The code I am using:

:aps => {
   :badge => "auto",
   :alert => message,
   :sound => sound
 }

I've looked through the code and it simply passes the body through to UA's API. Still I wanted to make sure that it's correct to set it like that. If that is the correct way of setting an auto-badge, the problem must reside in the Urban Airship API.

Thanks for your help in advance

Cheers, Dennis

dschneider commented 12 years ago

Found the cause :) Neither a GEM issue, nor a UA issue!

schoblaska commented 12 years ago

Glad you were able to figure it out!