- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我终于收到了来自 UrbanAirship 的推送通知。但是现在我有一个问题,在这里搜索并找不到解决方案。
当应用程序正在运行并且我收到通知时,单击通知会将我带入应用程序,一切正常。
当我终止应用程序并收到通知时,应用程序终止并发出 SIGKILL。
这是日志:log
好的,这是我的 appdelegate.m:
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
//Init Airship launch options
NSLog(@"Before NSMutableDictionary");
NSMutableDictionary *takeOffOptions = [[NSMutableDictionary alloc] init];
[takeOffOptions setValue:launchOptions forKey:UAirshipTakeOffOptionsLaunchOptionsKey];
// Create Airship singleton that's used to talk to Urban Airship servers.
// Please populate AirshipConfig.plist with your info from http://go.urbanairship.com
NSLog(@"Before takeOff");
[UAirship takeOff:takeOffOptions];
// Register for notifications
NSLog(@"Before UIApplication");
[[UIApplication sharedApplication]
registerForRemoteNotificationTypes:(UIRemoteNotificationTypeBadge |
UIRemoteNotificationTypeSound |
UIRemoteNotificationTypeAlert)];
NSLog(@"Before reset badge");
//reset badge
application.applicationIconBadgeNumber = 0;
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
// Override point for customization after application launch.
self.viewController = [[ViewController alloc] initWithNibName:@"ViewController" bundle:nil];
self.window.rootViewController = self.viewController;
[self.window makeKeyAndVisible];
return YES;
}
-(void)application:(UIApplication *)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken
{
NSLog(@"didRegisterForRemoteNotifications");
[[UAirship shared] registerDeviceToken:deviceToken];
}
-(void)application:(UIApplication *)application didFailToRegisterForRemoteNotificationsWithError:(NSError *)error
{
NSString *str = [NSString stringWithFormat: @"Error: %@", error];
NSLog(@"Error:%@",str);
}
在此 Mac Mini 通过窗口之前非常感谢任何帮助:-)
最佳答案
我认为这与 Urban Airship 无关。如果你:
您将收到相同的错误消息。
由于它发生在一个全新的项目中,甚至没有接触它,我认为这种行为是意料之中的。
关于UrbanAirship 的 iOS 推送通知错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10403978/
我在我的 iOS 应用程序中使用 UrbanAirship 处理推送通知。我想实现 UAPushNotificationDelegate 。这是我在 appdelegate 中的代码。 //Appde
我正在尝试使用 Urbanairship 为 iPhone 应用程序实现推送通知。 因此,当我使用临时构建(这是一个不同的证书文件)时,当我转到“设置”>“通知”时,它会很好地显示在那里。 但是,对于
你好,我希望有人能在这里帮助我。 我正在开发一个使用 UrbanAirship 接收 PushNotifications 的应用程序。 我的问题是,从今天早上开始,我的应用程序在使用 takeOff
com.myapp.myapp:com.urbanairship.process ERROR AndroidRuntime java.lang.RuntimeException: Unab
我正在研究我正在创建的应用程序的推送通知。我听说过很多关于 UrbanAirship 的信息,但我似乎找不到我应该使用它的明确原因?据我了解,UA是一个中间人? This page显示免费版本没有推送
我想在应用程序处于事件状态时忽略推送通知。我按如下方式处理通知: - (void)application:(UIApplication *)application didReceiveRemoteNo
当尝试使用 urbanairship 管理应用程序并解决“丢失”推送通知的问题时,我决定编写一个问答来帮助其他开发人员。 客户最常见的提示是,设备上的用户没有收到通知。 有时整个团队都会错过通知,这让
我的 Android 应用程序使用 Urbaairship 从服务器接收推送消息,我添加了最新的 Urbaairaship 库。 jar 稳定版 4.0.2。我已经根据 Urbanairship 文档
我终于收到了来自 UrbanAirship 的推送通知。但是现在我有一个问题,在这里搜索并找不到解决方案。 当应用程序正在运行并且我收到通知时,单击通知会将我带入应用程序,一切正常。 当我终止应用程序
我正在使用 UrbanAirship 来管理我的 iOS 应用程序中的通知。我想添加一些关于如何管理通知的特定行为,因此我决定在自定义处理程序上实现协议(protocol) UAPushNotific
所以我需要向用户的设备发送推送通知。然后当用户点击通知时,我需要我的应用程序执行特定操作。我想在通知中包含操作参数。但是我不想让用户看到参数;他们应该只看到消息。做了一些研究,我在 Urban Air
我正在使用 UrbanAirship 接收推送,我可以成功接收通知。我决定使用 robolectric 向我的项目添加测试,并创建了一个简单的测试,如下所示。 @Config(emulateSdk =
我使用 UrbanAirship (UA) 进行推送通知。 UA推送服务在Manifest文件中配置如下: 其中 android:process 是可选的,但是 recommended in
我正在尝试将 UrbanAirShip 集成到我的应用程序中,遵循 these steps .这就是我所做的: 1) 我已将框架解压缩到项目文件夹中,这样我的 Airship 文件夹就与项目的其他文件
我想通过 urbanairship api 从我的服务器端 (c#) 发送通知 在c#中有什么例子是怎么做的吗? 谢谢 最佳答案 基本上... using System; using System.I
我在我的应用程序中使用 UrbanAirship 推送通知。但有时我的应用程序因 android.os.RemoteException 而崩溃。 原因:执行doInBackground()时出错 堆栈
问题: 假设我收到 3 条通知。 它在我的应用程序图标上显示徽章计数 3。 我打开应用程序或点击通知,它清除了徽章(到目前为止一切都很好) 现在,当我收到新通知时,我的应用程序上会显示徽章计数图标是
我不确定这个问题是否可以回答,但我越来越绝望,所以希望有更多经验的人可能知道发生了什么事。我以前没有使用过urbanairship。 我继承了一个项目并将其从 eclipse 迁移到 android
我在使用 GCM 时遇到了一个严重的问题。之前我们使用 UrbanAirship 发送推送通知,它使用 GCM 发送推送消息。现在我们已经在客户端和服务器上实现了我们自己的 GCM,并希望仅使用 GC
我正在尝试对示例 android urbanairship 进行测试推送。为此,我需要 APID,因为要在 Urbanairship 填写的表单值需要以下字段:{Apid、Alert、Extra Ke
我是一名优秀的程序员,十分优秀!