Skip to content

Latest commit

 

History

History

Examples

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Braze Examples

The Braze Examples project showcases different Braze feature integrations. See our Integration Path tutorials for full context.

Follow the instructions below for your preferred integration method to get started.

Swift Package Manager

  • Navigates to the Swift or ObjC directory
  • Open Examples-SwiftPM.xcodeproj

CocoaPods

  • Navigates to the Swift or ObjC directory
  • Run pod install
  • Open Examples-CocoaPods.xcworkspace

Manual Integration

  • Navigates to the Swift or ObjC directory
  • Run ./manual-integration-setup.sh to download the prebuilt Braze SDK
  • Open Examples-Manual.xcodeproj

Available Schemes

Analytics

  • iOS, visionOS, tvOS, Mac Catalyst.
  • Swift, Objective-C.
  • Demonstrates how to use the analytics features of the SDK.
  • Related tutorial: Analytics.

BannerUI

  • iOS, visionOS, Mac Catalyst.
  • Swift, Objective-C.
  • Demonstrates how to use the Braze provided Banners UI.
  • Related tutorial: Banners UI.

ContentCardUI

  • iOS, visionOS, Mac Catalyst.
  • Swift, Objective-C.
  • Demonstrates how to use the Braze provided Content Cards UI.
  • Related tutorial: Content Cards UI.

ContentCardUI-Customization

  • iOS, visionOS, Mac Catalyst.
  • Swift only.
  • Demonstrates how to customize the Braze provided Content Cards UI.
  • Related article: Content Cards UI Customization.

ContentCards-Custom-UI

  • iOS, visionOS, tvOS, Mac Catalyst.
  • Swift, Objective-C.
  • Demonstrates how to implement your own custom Content Cards UI.
  • Related article: Content Cards UI Customization.

InAppMessageUI

  • iOS, visionOS, Mac Catalyst.
  • Swift, Objective-C.
  • Demonstrates how to use the Braze provided In-App Message UI.
  • Related tutorial: In-App Messages.

InAppMessageUI-Customization

  • iOS, visionOS, Mac Catalyst.
  • Swift only.
  • Demonstrates how to customize the Braze provided In-App Message UI.
  • Related article: In-App Message UI Customization

InAppMessages-Custom-UI

  • iOS, visionOS, tvOS, Mac Catalyst.
  • Swift, Objective-C.
  • Demonstrates how to implement your own custom In-App Message UI.
  • Related article: In-App Message UI Customization

Location

  • iOS, visionOS, tvOS, Mac Catalyst.
  • Swift, Objective-C.
  • Presents a complete BrazeLocation integration which enables location tracking and geofence monitoring.
  • Related tutorial: Location and Geofences.

PushNotifications-Automatic

  • iOS, visionOS, Mac Catalyst.
  • Swift, Objective-C.
  • Automatic integration via SDK configuration flag.
  • Includes support for:
    • Automatic setup.
    • Automatic authorization request.
    • Silent push notifications.
    • Foreground push notifications.
      • Action buttons.
      • Display push notifications when app is already open.
    • Rich push notification support (image, GIF, audio, video).
      • Via PushNotificationsServiceExtension.
    • Braze Push Story implementation.
      • Via PushNotificationsContentExtension.
  • Related tutorials:

PushNotifications-Manual

  • iOS, visionOS, Mac Catalyst.
  • Swift, Objective-C.
  • Manual integration, requiring the implementation of system delegates.
  • Includes support for:
    • Silent push notifications.
    • Foreground push notifications.
      • Action buttons.
      • Display push notifications when app is already open.
    • Rich push notification support (image, GIF, audio, video).
      • Via PushNotificationsServiceExtension.
    • Braze Push Story implementation.
      • Via PushNotificationsContentExtension.
  • Related tutorials:

PushNotifications-DelayedInitialization

  • iOS, visionOS, Mac Catalyst.
  • Swift, Objective-C.
  • Extension of the PushNotifications-Automatic example with delayed SDK initialization support.

PushNotificationsContentExtension

  • iOS, visionOS, Mac Catalyst.
  • Swift only.
  • Braze Push Story implementation.
  • Related tutorial: Push Stories.

PushNotificationsServiceExtension

  • iOS, visionOS, Mac Catalyst
  • Swift only.
  • Rich push notification support (image, GIF, audio, video).
  • Related tutorial: Rich Push Notifications.