我在App Store中编译了一个iOS 7应用程序。该应用程序使用Parse后端和推送通知。
在发布iOS 8版本(昨天)之前,应用程序今天收到了推送,但应用程序崩溃了。
Parse可以发现一些额外的有效载荷会导致应用程序崩溃吗?
这是AppDelegate代码:
- (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo {
// Aquí se llega cuando se recibe una push y la aplicación está abierta
NSLog(@"Se recibe una push con la app abierta: %@", userInfo);
//[PFPush handlePush:userInfo];
if ([userInfo objectForKey:kPushCampoEventoId]) {
[TierraDeTorosUtils cargaEventoConIdentificador:[userInfo objectForKey:kPushCampoEventoId]
enController:self.window.rootViewController];
}
}
后端js代码在Parse:
Parse.Push.send({
channels: [request.params.channel],
data: {
alert: request.params.mensaje,
badge: 1,
title: "Tierra de Toros",
evento_id: request.params.evento_id
}
}