如何使用 Urban Airship 将推送通知发送到一台设备?

发布于 2025-01-02 06:38:03 字数 112 浏览 3 评论 0原文

我在 Appstore 中有我的应用程序,并且它实现了城市飞艇推送通知。

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

谢谢!

I have my app in Appstore and it has Urban Airship Push notification implemented.

I need to send some test messages to my device only using Urban Airship Push.
How do I do that?

Thanks!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

路还长,别太狂 2025-01-09 06:38:03

你可以这样得到它:

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

You can get it like this:

- (void)application:(UIApplication *)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken
{
NSString *tokenStr = [[deviceToken description] substringWithRange:NSMakeRange(1, 71)];
NSString *result=[tokenStr stringByReplacingOccurrencesOfString:@" " withString:@""];
NSLog(@"deviceToken result:%@",result);
}
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文