1. sullis
  2. urbanairship-java
  3. Issues
Issue #14 new

Android-only support error

Anonymous created an issue

We are only sending push messages to android at the moment (we do not have an Apple certificate.) Unfortunately, urbanairship-java's Push class has a serialized "payload" field, which cannot be set to null. When the empty payload field is sent, Urban Airship complains saying that field is only relevent for ios notices.

Comments (2)

  1. Foon Lui

    I have the same problem, and i added following change and it works.

    private Map<String, Object> payload = null;

    public void addPayloadValue(String key, Object value) { if(payload == null) payload = new HashMap<String, Object>(); this.payload.put(key, value); }

  2. Log in to comment