Skip to content

Commit a17cf86

Browse files
author
Wonday
committed
2 parents 04b0bde + c9cd079 commit a17cf86

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
@@ -575,8 +575,8 @@ - (void)application:(UIApplication *)application didReceiveRemoteNotification:(N
575575

576576
NSMutableDictionary *notificationDict = [NSMutableDictionary dictionary];
577577

578-
// 通知时间
579-
notificationDict[@"date"] = [NSDate init];
578+
// 通知时间,修复:iOS低版本下点击推送闪退的问题(未分配内存就初始化对象)
579+
notificationDict[@"date"] = [[NSDate alloc] init];
580580

581581
// 标题
582582
notificationDict[@"title"] = @"";

0 commit comments

Comments
 (0)