@jugarrit jugarrit released this Apr 3, 2017 · 59 commits to master since this release

Assets 2

Support for beforeSend, beforeDisplay and beforeNotification delegate calls

Added MessageModifierDelegate to allow on-the-fly customization of message display and sending.
This new delegate allows you to modify the content of a Message before it's sent to Smooch or displayed in the app.
For example, these methods can be used together to add a layer of encryption to your messages. Encrypt in beforeSend, decrypt in beforeDisplay/beforeNotification!

Closing the conversation view

Added the ability to close the currently opened conversation view.

Trigger Smooch notification

Added the ability to trigger Smooch notifications for a given Smooch Message at will.

Fixes

Fixed a bug where the app would crash when trying to upload large images from the camera roll.

API Additions

  1. Class Conversation
    • Added new method Conversation.Delegate getDelegate()
    • Added new method Conversation.MessageModifierDelegate getMessageModifierDelegate()
  2. New interface Conversation.MessageModifierDelegate
  3. New class NotificationController
  4. Class Message
    • Added new method setText(String text)
    • Added new method setMetadata(Map<String, Object> metadata)
    • Added new method setPayload(String payload)
    • Added new method setMediaUrl(String mediaUrl)
    • Added new method setType(String type)
    • Added new method setCoordinates(Coordinates coordinates)
    • Added new method addMessageAction(MessageAction messageAction)
    • Added new method removeMessageAction(MessageAction messageAction)
  5. Class MessageAction
    • Added new constructor MessageAction()
    • Added new method setText(String text)
    • Added new method setIconUrl(String iconUrl)
    • Added new method setUri(String uri)
    • Added new method setAmount(long amount)
    • Added new method setType(String type)
    • Added new method setPayload(String payload)
    • Added new method setMetadata(Map<String, Object> metadata)
    • Added new method setCurrency(String currency)