title: How can i add extra key in UrbanAirship API using java
body: <p>I am sending push notifications using UrbanAirship API using java.</p>
  
  <p>Here is the doc: <a href="http://docs.urbanairship.com/api/" rel="nofollow">http://docs.urbanairship.com/api/</a></p>
  
  <p>I want to send a push notifications with custom key/value. For example, I want send to following to Android/iOS device</p>
  
  <pre><code>name: "Jack"
  
  String appKey = "appKey";
  String appSecret = "appSecret";
  
  // Setup an authenticated APIClient with your application key and
  // application master secret.
  APIClient apiClient = APIClient.newBuilder()
          .setKey(appKey)
          .setSecret(appSecret)
          .build();
  
  // Setup a push payload to send to the API with our handy builders
  PushPayload payload = PushPayload.newBuilder()
          .setAudience(Selectors.all())
          .setNotification(Notifications.notification("UA Push"))
          .setDeviceTypes(DeviceTypeData.of(DeviceType.IOS))
          .build();
  // Try and send, handle anything that comes up
  try {
      APIClientResponse&lt;APIPushResponse&gt; response = apiClient.push(payload);
      logger.info("Sent a push message!");
  }
  // Non 200 responses throw an APIRequestException. Check the documentation
  // to debug your request.
  catch (APIRequestException ex){
      logger.error("Non 200 request, checking error details and taking action");
  }
  // An underlying error occurred, most likely outside of the scope of the
  // UA library, do some HTTP debugging
  catch (IOException e){
      logger.error("Broken pipe what?");
  }
  </code></pre>
  
  <p>Here is the code reference for android - <a href="https://github.com/urbanairship/java-library/blob/master/src/test/java/com/urbanairship/api/push/model/notification/android/AndroidDevicePayloadTest.java" rel="nofollow">https://github.com/urbanairship/java-library/blob/master/src/test/java/com/urbanairship/api/push/model/notification/android/AndroidDevicePayloadTest.java</a></p>
  
  <p>How can i do send push notification with custom key/value using AndroidDevicePayload ?</p>