@@ -85,7 +85,7 @@ typedef NS_ENUM(NSUInteger, BatchNotificationSource) {
85
85
// / You can call this method from any thread.
86
86
// / - Warning: __Deprecated:__ This method is deprectaed. You don't need to do anything else besides removing this call,
87
87
// / Batch Push will still work as expected.
88
- + (void )setupPush NS_AVAILABLE_IOS(8_0)
88
+ + (void )setupPush
89
89
__attribute__((deprecated(" setupPush is deprecated. You don't need to do anything else besides removing this call, "
90
90
" Batch Push will still work as expected." )));
91
91
@@ -95,7 +95,7 @@ typedef NS_ENUM(NSUInteger, BatchNotificationSource) {
95
95
// / system settings. Default value is: `BatchNotificationTypeBadge | BatchNotificationTypeSound |
96
96
// / BatchNotificationTypeAlert`.
97
97
// / - Parameter type: A bit mask specifying the types of notifications the app accepts.
98
- + (void )setRemoteNotificationTypes : (BatchNotificationType)type NS_AVAILABLE_IOS(8_0) ;
98
+ + (void )setRemoteNotificationTypes : (BatchNotificationType)type ;
99
99
100
100
// / Method to trigger the iOS popup that asks the user if they wants to allow notifications to be displayed, then
101
101
// / get a Push token.
@@ -105,7 +105,7 @@ typedef NS_ENUM(NSUInteger, BatchNotificationSource) {
105
105
// / You should call this at a strategic moment, like at the end of your welcome.
106
106
// /
107
107
// / Batch will automatically ask for a push token when the user replies.
108
- + (void )requestNotificationAuthorization NS_AVAILABLE_IOS(8_0) ;
108
+ + (void )requestNotificationAuthorization ;
109
109
110
110
// / Method to ask iOS for a provisional notification authorization.
111
111
// /
@@ -116,15 +116,15 @@ typedef NS_ENUM(NSUInteger, BatchNotificationSource) {
116
116
// / from the statusbar when unlocked.
117
117
// /
118
118
// / This method does nothing on iOS 11 or lower.
119
- + (void )requestProvisionalNotificationAuthorization NS_AVAILABLE_IOS(8_0) ;
119
+ + (void )requestProvisionalNotificationAuthorization ;
120
120
121
121
// / Ask iOS to refresh the push token. If the app didn't prompt the user for consent yet, this will not be done.
122
122
// /
123
123
// / You should call this at the start of your app, to make sure Batch always gets a valid token after app updates.
124
- + (void )refreshToken NS_AVAILABLE_IOS(8_0) ;
124
+ + (void )refreshToken ;
125
125
126
126
// / Open the system settings on your applications' notification settings.
127
- + (void )openSystemNotificationSettings NS_AVAILABLE_IOS(8_0) ;
127
+ + (void )openSystemNotificationSettings ;
128
128
129
129
// / Method to trigger the iOS popup that asks the user if they wants to allow Push Notifications, then get a Push token.
130
130
// / (Deprecated)
@@ -135,7 +135,7 @@ typedef NS_ENUM(NSUInteger, BatchNotificationSource) {
135
135
// / Equivalent to calling ``BatchPush/requestNotificationAuthorization``
136
136
// / - Warning: __Deprecated:__ This method is deprectaed. Use ``BatchPush/requestNotificationAuthorization`` and
137
137
// / ``BatchPush/refreshToken`` separately. More info in our documentation.
138
- + (void )registerForRemoteNotifications NS_AVAILABLE_IOS(8_0) __attribute__ ((
138
+ + (void )registerForRemoteNotifications __attribute__((
139
139
deprecated (" Use requestNotificationAuthorization and refreshToken separately. More info in our documentation." )));
140
140
141
141
// / Method to trigger the iOS popup that asks the user if they want to allow Push Notifications and register to APNS.
@@ -152,8 +152,8 @@ typedef NS_ENUM(NSUInteger, BatchNotificationSource) {
152
152
// / - Warning: __Deprecated:__ Use ``BatchPush/setNotificationsCategories:`` and
153
153
// / ``BatchPush/registerForRemoteNotifications`` separately.
154
154
+ (void )registerForRemoteNotificationsWithCategories : (nullable NSSet *)categories
155
- NS_AVAILABLE_IOS(8_0)
156
- __attribute__ ((deprecated(" Use setNotificationCategories and registerForRemoteNotifications separately." )));
155
+
156
+ __attribute__((deprecated(" Use setNotificationCategories and registerForRemoteNotifications separately." )));
157
157
158
158
// / Set the notification action categories to iOS.
159
159
// /
@@ -164,19 +164,19 @@ typedef NS_ENUM(NSUInteger, BatchNotificationSource) {
164
164
// / groups of actions a notification may include. If you try to register `UIUserNotificationCategory` instances on iOS
165
165
// / 10, Batch will automatically do a best effort conversion to `UNNotificationCategory`. If you don't want this
166
166
// / behaviour, please use the standard `UIApplication` methods.
167
- + (void )setNotificationsCategories : (nullable NSSet *)categories NS_AVAILABLE_IOS(8_0) ;
167
+ + (void )setNotificationsCategories : (nullable NSSet *)categories ;
168
168
169
169
// / Clear the application's badge on the homescreen.
170
170
// /
171
171
// / You do not need to call this if you already called ``BatchPush/dismissNotifications``.
172
- + (void )clearBadge NS_AVAILABLE_IOS(8_0) ;
172
+ + (void )clearBadge ;
173
173
174
174
// / Clear the app's notifications in the notification center. Also clears your badge.
175
175
// /
176
176
// / Call this when you want to remove the notifications. Your badge is removed afterwards, so if you want one, you need
177
177
// / to set it up again.
178
178
// / - Important: Be careful, this method also clears your badge.
179
- + (void )dismissNotifications NS_AVAILABLE_IOS(8_0) ;
179
+ + (void )dismissNotifications ;
180
180
181
181
// / Set whether Batch Push should automatically try to handle deeplinks.
182
182
// /
@@ -190,37 +190,37 @@ typedef NS_ENUM(NSUInteger, BatchNotificationSource) {
190
190
// / - Important: If Batch is set to handle your deeplinks, it will *automatically* call the fetch completion handler (if
191
191
// / applicable) with `UIBackgroundFetchResultNewData.
192
192
// / - Parameter handleDeeplinks: Whether Batch should handle deeplinks automatically.
193
- + (void )enableAutomaticDeeplinkHandling : (BOOL )handleDeeplinks NS_AVAILABLE_IOS(8_0) ;
193
+ + (void )enableAutomaticDeeplinkHandling : (BOOL )handleDeeplinks ;
194
194
195
195
// / Get Batch Push's deeplink from a notification's userInfo.
196
196
// /
197
197
// / - Parameter userData The notification's payload.
198
198
// / - Returns: Batch's Deeplink, or nil if not found.
199
- + (nullable NSString *)deeplinkFromUserInfo : (nonnull NSDictionary *)userData NS_AVAILABLE_IOS(8_0) ;
199
+ + (nullable NSString *)deeplinkFromUserInfo : (nonnull NSDictionary *)userData ;
200
200
201
201
// / Get the last known push token.
202
202
// /
203
203
// / Your application should still register for remote notifications once per launch, in order to keep this value valid.
204
204
// / - Important: The returned token might be outdated and invalid if this method is called too early in your application
205
205
// / lifecycle.
206
206
// / - Returns: A push token, nil if unavailable.
207
- + (nullable NSString *)lastKnownPushToken NS_AVAILABLE_IOS(8_0) ;
207
+ + (nullable NSString *)lastKnownPushToken ;
208
208
209
209
// / Disable the push's automatic integration.
210
210
// /
211
211
// / If you call this, you are responsible of forwarding your application's delegate and
212
212
// / `UNUserNotificationCenterDelegate` calls to Batch. If you don't, some parts of the SDK and Dashboard will break.
213
213
// / Calling this method automatically calls `disableAutomaticNotificationCenterIntegration`.
214
214
// / - Important: This must be called before you start Batch, or it will have no effect.
215
- + (void )disableAutomaticIntegration NS_AVAILABLE_IOS(8_0) ;
215
+ + (void )disableAutomaticIntegration ;
216
216
217
217
// / Registers a device token to Batch.
218
218
// /
219
219
// / You should call this method in `application:didRegisterForRemoteNotificationsWithDeviceToken:`.
220
220
// / - Important: If you didn't call ``BatchPush/disableAutomaticIntegration``, this method will have no effect.
221
221
// / If you called it but don't implement this method, Batch's push features will __NOT__ work.
222
222
// / - Parameter token: The untouched `deviceToken` NSData argument given to you in the application delegate method.
223
- + (void )handleDeviceToken : (nonnull NSData *)token NS_AVAILABLE_IOS(8_0) ;
223
+ + (void )handleDeviceToken : (nonnull NSData *)token ;
224
224
225
225
// / Check if the received push is a Batch one.
226
226
// /
@@ -229,7 +229,7 @@ typedef NS_ENUM(NSUInteger, BatchNotificationSource) {
229
229
// / - Parameter userInfo: The untouched `userInfo` NSDictionary argument given to you in the application delegate
230
230
// / method.
231
231
// / - Returns: Wheter it is a Batch'sPush. If it returns true, you should not handle the push.
232
- + (BOOL )isBatchPush : (nonnull NSDictionary *)userInfo NS_AVAILABLE_IOS(8_0) ;
232
+ + (BOOL )isBatchPush : (nonnull NSDictionary *)userInfo ;
233
233
234
234
// / Make Batch process a notification. (Deprecated)
235
235
// /
@@ -255,8 +255,7 @@ typedef NS_ENUM(NSUInteger, BatchNotificationSource) {
255
255
// / - userInfo: The untouched `userInfo` NSDictionary argument given to you in the application delegate method.
256
256
// / - identifier: The action's identifier. Used for tracking purposes: it can match your raw action name, or be a more
257
257
// / user-friendly string.
258
- + (void )handleNotification : (nonnull NSDictionary *)userInfo
259
- actionIdentifier : (nullable NSString *)identifier NS_AVAILABLE_IOS(8_0);
258
+ + (void )handleNotification : (nonnull NSDictionary *)userInfo actionIdentifier : (nullable NSString *)identifier ;
260
259
261
260
#pragma clang diagnostic push
262
261
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
@@ -289,7 +288,7 @@ typedef NS_ENUM(NSUInteger, BatchNotificationSource) {
289
288
+ (void )handleUserNotificationCenter : (nonnull UNUserNotificationCenter *)center
290
289
willPresentNotification : (nonnull UNNotification *)notification
291
290
willShowSystemForegroundAlert : (BOOL )willShowSystemForegroundAlert
292
- NS_AVAILABLE_IOS(10_0) NS_SWIFT_NAME (handle(userNotificationCenter:willPresent:willShowSystemForegroundAlert:));
291
+ NS_SWIFT_NAME(handle(userNotificationCenter:willPresent:willShowSystemForegroundAlert:));
293
292
294
293
// / Make Batch process a background notification open/action.
295
294
// /
@@ -299,8 +298,8 @@ typedef NS_ENUM(NSUInteger, BatchNotificationSource) {
299
298
// / - center: Original center argument.
300
299
// / - response: Original response argument.
301
300
+ (void )handleUserNotificationCenter : (nonnull UNUserNotificationCenter *)center
302
- didReceiveNotificationResponse : (nonnull UNNotificationResponse *)response NS_AVAILABLE_IOS(10_0)
303
- NS_SWIFT_NAME (handle(userNotificationCenter:didReceive:));
301
+ didReceiveNotificationResponse : (nonnull UNNotificationResponse *)response
302
+ NS_SWIFT_NAME(handle(userNotificationCenter:didReceive:));
304
303
305
304
@end
306
305
0 commit comments