We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 04b0bde + c9cd079 commit a17cf86Copy full SHA for a17cf86
ios/RCTAliyunPush/AliyunPushManager.m
@@ -575,8 +575,8 @@ - (void)application:(UIApplication *)application didReceiveRemoteNotification:(N
575
576
NSMutableDictionary *notificationDict = [NSMutableDictionary dictionary];
577
578
- // 通知时间
579
- notificationDict[@"date"] = [NSDate init];
+ // 通知时间,修复:iOS低版本下点击推送闪退的问题(未分配内存就初始化对象)
+ notificationDict[@"date"] = [[NSDate alloc] init];
580
581
// 标题
582
notificationDict[@"title"] = @"";
0 commit comments