Skip to content

Commit aa31a1e

Browse files
committed
Fixing error logging fixes after rebase
1 parent 67f35f9 commit aa31a1e

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

iOS_SDK/OneSignalSDK/OneSignalExtension/OneSignalAttachmentHandler.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ -(void)URLSession:(NSURLSession *)session dataTask:(NSURLSessionDataTask *)dataT
7575
}
7676

7777
if (fileHandleError != nil) {
78-
[OneSignalLog onesignalLog:ONE_S_LL_ERROR message:[NSString stringWithFormat:@"OneSignal Error encountered while downloading attachment: %@", fileHandleError.localizedDescription]];
78+
[OneSignalLog onesignalLog:ONE_S_LL_ERROR message:[NSString stringWithFormat:@"OneSignal Error encountered while downloading attachment: %@", fileHandleError]];
7979
}
8080
}
8181

iOS_SDK/OneSignalSDK/OneSignalExtension/OneSignalNotificationServiceExtensionHandler.m

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,8 @@ + (void)onNotificationReceived:(NSString *)receivedNotificationId withBlockingTa
144144
// Randomize send of confirmed deliveries to lessen traffic for high recipient notifications
145145
int randomDelay = semaphore != nil ? arc4random_uniform(MAX_CONF_DELIVERY_DELAY) : 0;
146146
[OneSignalLog onesignalLog:ONE_S_LL_VERBOSE message:[NSString stringWithFormat:@"OneSignal onNotificationReceived sendReceiveReceipt with delay: %i", randomDelay]];
147-
[OneSignal.receiveReceiptsController sendReceiveReceiptWithPlayerId:playerId notificationId:receivedNotificationId appId:appId delay:randomDelay successBlock:^(NSDictionary *result) {
147+
OneSignalReceiveReceiptsController *controller = [OneSignalReceiveReceiptsController new];
148+
[controller sendReceiveReceiptWithPlayerId:playerId notificationId:receivedNotificationId appId:appId delay:randomDelay successBlock:^(NSDictionary *result) {
148149
[OneSignalLog onesignalLog:ONE_S_LL_VERBOSE message:[NSString stringWithFormat:@"OneSignal onNotificationReceived sendReceiveReceipt Success for playerId: %@ result: %@", playerId, result]];
149150
if (semaphore) {
150151
dispatch_semaphore_signal(semaphore);

0 commit comments

Comments
 (0)