Braze iOS SDK
Documentation for the Braze iOS SDK
 All Classes Functions Properties
Class Methods | List of all members
ABKPushUtils Class Reference

Class Methods

(BOOL) + isAppboyUserNotification:
 
(BOOL) + isAppboyRemoteNotification:
 
(BOOL) + isAppboyInternalRemoteNotification:
 
(BOOL) + isUninstallTrackingUserNotification:
 
(BOOL) + isUninstallTrackingRemoteNotification:
 
(BOOL) + isGeofencesSyncUserNotification:
 
(BOOL) + isGeofencesSyncRemoteNotification:
 
(BOOL) + isAppboySilentRemoteNotification:
 
(BOOL) + isPushStoryRemoteNotification:
 
(BOOL) + notificationContainsContentCard:
 
(BOOL) + shouldFetchTestTriggersFlagContainedInPayload:
 
(14.0) + macCatalyst
 
("Please use
`getAppboyUNNotificationCategorySet`
instead.") 
+ __deprecated_msg
 

Method Documentation

+ (BOOL) isAppboyInternalRemoteNotification: (NSDictionary *)  userInfo
Parameters
userInfoThe userInfo dictionary passed to application:didReceiveRemoteNotification:fetchCompletionHandler: or application:didReceiveRemoteNotification:.
Returns
YES if the push notification was sent by Braze for an internal feature.

Braze uses content-available silent notifications for internal features. You can use this method to ensure your app doesn't take any undesired or unnecessary actions upon receiving Braze's internal content-available notifications (e.g., pinging your server for content).

+ (BOOL) isAppboyRemoteNotification: (NSDictionary *)  userInfo
Parameters
userInfoThe userInfo dictionary passed to application:didReceiveRemoteNotification:fetch​Completion​Handler: or application:didReceiveRemoteNotification:.
Returns
YES if the push notification was sent from Braze servers.
+ (BOOL) isAppboySilentRemoteNotification: (NSDictionary *)  userInfo
Parameters
userInfoThe userInfo dictionary passed to application:didReceiveRemoteNotification:fetch​Completion​Handler:
Returns
YES if the push notification was sent by Braze and is silent.
+ (BOOL) isAppboyUserNotification: (14.0)  macCatalyst
Parameters
responseThe UNNotificationResponse passed to userNotificationCenter:didReceiveNotificationResponse:withCompletionHandler:.
Returns
YES if the user notification was sent from Braze servers.
+ (BOOL) isGeofencesSyncRemoteNotification: (NSDictionary *)  userInfo
Parameters
userInfoThe userInfo dictionary passed to application:didReceiveRemoteNotification:fetchCompletionHandler: or application:didReceiveRemoteNotification:.
Returns
YES if the push notification was sent by Braze for syncing geofences.

Geofence sync notifications are content-available silent notifications. You can use this method to ensure your app doesn't take any undesired or unnecessary actions upon receiving Braze's geofence sync notifications (e.g., pinging your server for content).

+ (BOOL) isGeofencesSyncUserNotification: (14.0)  macCatalyst
Parameters
responseThe UNNotificationResponse passed to userNotificationCenter:didReceiveNotificationResponse:withCompletionHandler:.
Returns
YES if the user notification was sent by Braze for syncing geofences.

Geofence sync notifications are content-available silent notifications. You can use this method to ensure your app doesn't take any undesired or unnecessary actions upon receiving Braze's geofence sync notifications (e.g., pinging your server for content).

+ (BOOL) isPushStoryRemoteNotification: (NSDictionary *)  userInfo
Parameters
userInfoThe userInfo dictionary passed to application:didReceiveRemoteNotification:fetchCompletionHandler: or application:didReceiveRemoteNotification:.
Returns
YES if the push notification was sent by Braze for push stories.
+ (BOOL) isUninstallTrackingRemoteNotification: (NSDictionary *)  userInfo
Parameters
userInfoThe userInfo dictionary passed to application:didReceiveRemoteNotification:fetchCompletionHandler: or application:didReceiveRemoteNotification:.
Returns
YES if the push notification was sent by Braze for uninstall tracking.

Uninstall tracking notifications are content-available silent notifications. You can use this method to ensure your app doesn't take any undesired or unnecessary actions upon receiving Braze's uninstall tracking notifications (e.g., pinging your server for content).

+ (BOOL) isUninstallTrackingUserNotification: (14.0)  macCatalyst
Parameters
responseThe UNNotificationResponse passed to userNotificationCenter:didReceiveNotificationResponse:withCompletionHandler:.
Returns
YES if the user notification was sent by Braze for uninstall tracking.

Uninstall tracking notifications are content-available silent notifications. You can use this method to ensure your app doesn't take any undesired or unnecessary actions upon receiving Braze's uninstall tracking notifications (e.g., pinging your server for content).

+ (14.0) macCatalyst
Returns
A set of the default UNNotificationCategories used by Braze.
+ (BOOL) shouldFetchTestTriggersFlagContainedInPayload: (NSDictionary *)  __deprecated
Parameters
userInfoThe userInfo dictionary payload.
Returns
YES if the notification contains an a flag that inticates the device should fetch test triggers from the server.