Skip to content

Commit

Permalink
fixed input type to completion handler (#10374)
Browse files Browse the repository at this point in the history
  • Loading branch information
rlustemberg authored and sgtcoolguy committed Oct 8, 2018
1 parent aa1401e commit f47cf79
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions iphone/Classes/TiAppiOSUserNotificationCenterProxy.m
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,11 @@ - (void)getDeliveredNotifications:(id)callback

if ([TiUtils isIOS10OrGreater]) {
TiThreadPerformOnMainThread(^{
[[UNUserNotificationCenter currentNotificationCenter] getDeliveredNotificationsWithCompletionHandler:^(NSArray<UNNotificationRequest *> *requests) {
NSMutableArray *result = [NSMutableArray arrayWithCapacity:[requests count]];
[[UNUserNotificationCenter currentNotificationCenter] getDeliveredNotificationsWithCompletionHandler:^(NSArray<UNNotification *> *notifications) {
NSMutableArray *result = [NSMutableArray arrayWithCapacity:[notifications count]];

for (UNNotificationRequest *request in requests) {
[result addObject:[self dictionaryWithUserNotificationRequest:request]];
for (UNNotification *notification in notifications) {
[result addObject:[self dictionaryWithUserNotificationRequest:[notification request]]];
}

NSDictionary *propertiesDict = @{
Expand Down

0 comments on commit f47cf79

Please sign in to comment.