Skip to content

6.12.0

Choose a tag to compare

@PushwooshCI PushwooshCI released this 04 Sep 13:07
· 4 commits to master since this release

New Features

  • Added rich message cards to pushwoosh-inbox-ui: banner (full-bleed image), captioned (image with title and text), classic (icon, title and text), carousel (swipeable image gallery) and video (poster that opens a full-screen player). The card is selected by the displayType value in the message's custom data; cards can carry inline action buttons
  • Added PushwooshInboxUi.onButtonClickListener to intercept taps on inline buttons of rich inbox cards. Return true to let the SDK perform the button's default action or false to handle the tap yourself
    PushwooshInboxUi.onButtonClickListener = OnInboxButtonClickListener { message, button ->
        true
    }
  • Added PushwooshInboxStyle.richCardsHeuristicEnabled to render messages without a displayType as rich cards based on their content: an image with a title becomes a captioned card, an image alone becomes a banner, text only becomes a classic card. Off by default, so existing inboxes keep their current look
    PushwooshInboxStyle.richCardsHeuristicEnabled = true

Bug Fixes

  • Inbox messages delivered by push now stay in the list while the server finishes indexing them

Improvements

  • Rich Media content of incoming pushes is now prefetched in the background, so notifications are posted without waiting for the download
  • Rich Media opened from Inbox or a notification now reuses already downloaded content instead of downloading it again
  • Rich Media downloads now have network timeouts, improving reliability on slow or unreachable networks
  • Simultaneous opens of the same Rich Media now share a single download