Skip to content

Commit 48af0fe

Browse files
author
Wonday
committed
code improve
1 parent aff5194 commit 48af0fe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ios/RCTAliyunPush/AliyunPushManager.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -477,7 +477,7 @@ - (void)userNotificationCenter:(UNUserNotificationCenter *)center didReceiveNoti
477477
UNNotificationContent *content = request.content;
478478
NSDictionary *userInfo = content.userInfo;
479479

480-
NSMutableDictionary *notificationDict = [NSMutableDictionary dictionaryWithCapacity:5];
480+
NSMutableDictionary *notificationDict = [NSMutableDictionary dictionary];
481481

482482
// 通知时间
483483
notificationDict[@"date"] = response.notification.date;
@@ -539,7 +539,7 @@ - (void)application:(UIApplication *)application didReceiveRemoteNotification:(N
539539
// 取得APNS通知内容
540540
NSDictionary *aps = [userInfo valueForKey:@"aps"];
541541

542-
NSMutableDictionary *notificationDict = [NSMutableDictionary dictionaryWithCapacity:5];
542+
NSMutableDictionary *notificationDict = [NSMutableDictionary dictionary];
543543

544544
// 通知时间
545545
notificationDict[@"date"] = [NSDate init];

0 commit comments

Comments
 (0)