Skip to main content
Version: 8.4.x

bfgPushNotificationManager Class

Enables Push Notifications. More...#import <bfgPushNotificationManager.h>

Class Methods

(void) + registerForPushNotifications
 Registers with all providers to receive push notifications. More...
 
(void) + registerForPushNotificationsWithCategories:
 Registers with all providers to receive push notifications. More...
 
(void) + setIconBadgeNumber:
 Sets the badge number for the app, visible from the iOS Springboard. More...
 
(void) + setPushNotificationDelegate:
 The delegate will be called when a push notification arrives. More...
 

Detailed Description

Enables Push Notifications. Class to implement Push Notifications in a game. You must change your application delegate methods to the bfgPushNotificationManager methods in order to implement Push Notifications.

Method Documentation

◆ registerForPushNotifications

+ (void) registerForPushNotifications
Registers with all providers to receive push notifications.
Since
5.10

◆ registerForPushNotificationsWithCategories:

+ (void) registerForPushNotificationsWithCategories: (NSArray< UIUserNotificationCategory * > *_Nullable) categories
Registers with all providers to receive push notifications.
Parameters
categories(optional) If your game uses categories, which let users take custom actions when responding to the notification without opening the app, you can specify them here.
Since
5.10

◆ setIconBadgeNumber:

+ (void) setIconBadgeNumber: (NSUInteger) badgeNumber
Sets the badge number for the app, visible from the iOS Springboard.
Parameters
badgeNumberThe number to display in a red circle on an app. Use 0 to unset the badge.

◆ setPushNotificationDelegate:

+ (void) setPushNotificationDelegate: (id< bfgPushNotificationDelegate > _Nullable) delegate
The delegate will be called when a push notification arrives.
Parameters
delegateYour delegate implementation.
Since
5.10