urbanairship / ruby-library

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

Nil values in extra causes failure #56

Closed jakecraige closed 9 years ago

jakecraige commented 10 years ago

If you send an extra value that is nil, the push fails. Not sure if this is intended

    @notification = {
      apids: @android_tokens,
      android: {
        alert: @alert_message,
        extra: {
          title: @event_title # when nil, the request fails
        }
      }
    }

It's possible that other places do this instead but this is just the one I noticed. It may not be the gem's job to check this but I wanted to point it out. At least some sort of error that gives insight as to what's going on would be helpful

pdxmele commented 9 years ago

Hi, we're clearing all of these out now due to the rewrite. If you run into any problems, please email support@urbanairship.com. Thank you!