Ios7 我的iOS应用程序在收到解析推送通知(iOS 7)之前崩溃
我在应用商店里编译了一个iOS 7应用程序。该应用程序使用解析后端和推送通知 在iOS 8版本(昨天)发布之前,该应用程序今天收到推送,但该应用程序崩溃 Parse可能发送了一些额外的负载,导致应用程序崩溃 这是AppDelegate代码:Ios7 我的iOS应用程序在收到解析推送通知(iOS 7)之前崩溃,ios7,parse-platform,apple-push-notifications,Ios7,Parse Platform,Apple Push Notifications,我在应用商店里编译了一个iOS 7应用程序。该应用程序使用解析后端和推送通知 在iOS 8版本(昨天)发布之前,该应用程序今天收到推送,但该应用程序崩溃 Parse可能发送了一些额外的负载,导致应用程序崩溃 这是AppDelegate代码: - (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo { // Aquí se llega cua
- (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.Push.send({
channels: [request.params.channel],
data: {
alert: request.params.mensaje,
badge: 1,
title: "Tierra de Toros",
evento_id: request.params.evento_id
}
}
请向我们展示您的AppDelegate的didReceiveNotification函数,以及您的解析推送代码。添加的代码。我担心Parse会在新的ios8sdk中修复它。你忘了右括号了吗?另外,您是否会在DidReceiveMotonification中设置一个断点,以查看哪一行导致崩溃?如果这不起作用,加入我吧。