我注册了 apns 服务。我正在获取设备令牌,我想将其发送到我的服务器。如果此设备 ID 已经存在于我的服务器中,我不想再次发送它。
- (void)application:(UIApplication*)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData*)deviceToken
{
NSLog(@"My token is: %@", deviceToken);//so from here i want to send my token to server using service.if got same device token when user runs app in the same phone i will
get device id,i want to send it only at first time if it is same phone
}
如何进行 谢谢