1
在發展中,我添加爲下面的代碼在日誌獲取分配設備令牌
- (void)application:(UIApplication*)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData*)deviceToken
{
NSLog(@"My token is: %@", deviceToken);
[self sendDeviceTokenToRemote:deviceToken]; // send the token to your server
}
但在分配獲得令牌,我怎麼能得到設備令牌?
謝謝