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:
 
(10.0) + NS_AVAILABLE_IOS
 
("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: (10.0)  NS_AVAILABLE_IOS
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: (10.0)  NS_AVAILABLE_IOS
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: (10.0)  NS_AVAILABLE_IOS
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).

+ (10.0) NS_AVAILABLE_IOS
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.