0

我在 Appstore 中有我的应用程序,它实现了 Urban Airship 推送通知。

我只需要使用 Urban Airship Push 将一些测试消息发送到我的设备。我怎么做?

谢谢!

4

1 回答 1

0

你可以像这样得到它:

- (void)application:(UIApplication *)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken
{
NSString *tokenStr = [[deviceToken description] substringWithRange:NSMakeRange(1, 71)];
NSString *result=[tokenStr stringByReplacingOccurrencesOfString:@" " withString:@""];
NSLog(@"deviceToken result:%@",result);
}
于 2012-02-02T08:37:03.577 回答