UAPushProviderDelegate

@protocol UAPushProviderDelegate <NSObject>

Protocol for bridging push provider functionality with the SDK.

  • Enables/disables sending the device token during channel registration.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) BOOL pushTokenRegistrationEnabled;

    Swift

    var pushTokenRegistrationEnabled: Bool { get set }
  • Returns YES if user notifications are configured and enabled for the device.

    Declaration

    Objective-C

    @property (readonly, nonatomic) BOOL userPushNotificationsAllowed;

    Swift

    var userPushNotificationsAllowed: Bool { get }
  • Returns YES if background push is enabled and configured for the device. Used as the channel’s ‘background’ flag.

    Declaration

    Objective-C

    @property (readonly, nonatomic) BOOL backgroundPushNotificationsAllowed;

    Swift

    var backgroundPushNotificationsAllowed: Bool { get }
  • Toggle the Airship auto-badge feature.

    Declaration

    Objective-C

    @property (getter=isAutobadgeEnabled, assign, readwrite, nonatomic)
        BOOL autobadgeEnabled;

    Swift

    var isAutobadgeEnabled: Bool { get set }
  • The current badge number used by the device and on the Airship server.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) NSInteger badgeNumber;

    Swift

    var badgeNumber: Int { get set }
  • Enables/Disables quiet time

    Declaration

    Objective-C

    @property (getter=isQuietTimeEnabled, assign, readwrite, nonatomic)
        BOOL quietTimeEnabled;

    Swift

    var isQuietTimeEnabled: Bool { get set }
  • Quiet time settings for this device.

    Declaration

    Objective-C

    @property (readonly, copy, nonatomic, nullable) NSDictionary *quietTime;

    Swift

    var quietTime: [AnyHashable : Any]? { get }
  • Time Zone for quiet time.

    Declaration

    Objective-C

    @property (readwrite, strong, nonatomic) NSTimeZone *_Nonnull timeZone;

    Swift

    var timeZone: TimeZone { get set }
  • The device token for this device, as a hex string.

    Declaration

    Objective-C

    @property (readonly, copy, nonatomic, nullable) NSString *deviceToken;

    Swift

    var deviceToken: String? { get }