Overriding Default Images
Note that integration of
SDWebImage is required if you plan on using our Braze UI for displaying images within iOS In-App Messages, News Feed, or Content Cards.
Braze allows clients to replace existing default images with their own custom images. To accomplish this, create a new
png file with the custom image and add it to the app’s image bundle. Then, rename the file with the image’s name (see below) to override the default image in our library. Images available for override in Content Cards include:
- Placeholder image:
- Pinned icon image:
Because Content Cards have a maximum size of 2kb (including images, links, and all content) make sure to check the size before sending. Exceeding this amount will prevent the card from sending.
Be sure to upload the
@3x versions of the images as well to accommodate different phone sizes.
Note that overriding default images is currently not supported in our Xamarin iOS integration.
Customizing the Content Cards Feed
You can create your own Content Cards interface by extending
ABKContentCardsTableViewController to customize all UI elements and Content Cards behavior. The Content Card cells may also be subclassed and then used programmatically or by introducing a custom Storyboard that registers the new classes. See the Content Cards sample app for a more complete example. Alternatively, you can create a completely custom view controller and subscribe for data updates. In the latter case, you would need to log all view events, dismissed events, and clicks manually.