获取分发中的设备令牌
在开发中,我添加如下代码以在日志中获取令牌
- (void)application:(UIApplication*)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData*)deviceToken
{
NSLog(@"My token is: %@", deviceToken);
[self sendDeviceTokenToRemote:deviceToken]; // send the token to your server
}
但是在分发中,如何获取设备令牌?
谢谢
In development, I add the code as below to get the token at the log
- (void)application:(UIApplication*)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData*)deviceToken
{
NSLog(@"My token is: %@", deviceToken);
[self sendDeviceTokenToRemote:deviceToken]; // send the token to your server
}
But in distribution, how can I get the device token?
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论