1
在发展中,我添加为下面的代码在日志获取分配设备令牌
- (void)application:(UIApplication*)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData*)deviceToken
{
NSLog(@"My token is: %@", deviceToken);
[self sendDeviceTokenToRemote:deviceToken]; // send the token to your server
}
但在分配获得令牌,我怎么能得到设备令牌?
谢谢