Unable to send Media for Web Notification

We are sending notifications with java SDK using WebDevicePayload.Builder and NotificationBuilder

But we can't find the way to send the field Media which is defined when we try to send a web notification from airship:

 

We tried to send the Media field with the method addExtraEntry(String key, String value) with the key "image" but this did not work.

Could you help us by giving us an idea of how to send this field?

Didn't find what you were looking for?

New post

Comments

4 comments

  • Hi there, 

    Thanks so much for reaching out to Airship support, we can definitely look into this for you. Would you mind providing us with the app key for the project you're working in? This can be found under Settings on the right side of the screen. 

    Please do not include your app secret or master secret. 

    Best wishes, 

    Frenchy F.
    Technical Support Engineer | Airship | New York

    Comment actions Permalink
  • Unfortunately, we cannot disclose that information since the account belongs to one of our clients but our question is not specific to an Airship account, but to the Java SDK instead. We need to know how to expose the media field for Web Push Notifications.

    Daniel C.

    Comment actions Permalink
    0
  • Hi there, 

    It's hard to say without being able to see specifically what is happening in the messages. What I can say, however, is that media is only available in URL form, unless you choose to open a contract with Airship that includes CDN. Additionally, media URLs much use HTTPS in order to send. Hope this helps! 

    Best, 

    Frenchy F.
    Technical Support Engineer | Airship | New York

    Comment actions Permalink
    0
  • Hi Frenchy,
    thanks for getting back to us. We are storing the media asset ourselves and we have a secure URL to serve it so we don’t need a CDN. The only thing we need to know is how to send it to the Airship API when using the Java SDK. For example, for the icon field we are using WebDevicePayload.Builder.setWebIcon method successfully, what would be the counterpart for the media field?.

    Thanks,

    Comment actions Permalink
    0

Please sign in to leave a comment.