我有推送通知的工作守則,但我要開始調試在我的代碼的某些功能,並希望有在模擬器上運行,我的問題是的Xcode - 模擬器 - pushnotification
我怎樣才能知道xcode忽略didregisterForRemote ....
我可以在此基礎上評論和播放的東西?
任何幫助將不勝感激
感謝
- (void)application:(UIApplication*)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData*)deviceToken {
NSString *device_token =[[[[deviceToken description] stringByReplacingOccurrencesOfString:@"<"withString:@""]
stringByReplacingOccurrencesOfString:@">" withString:@""]
stringByReplacingOccurrencesOfString: @" " withString: @""];
[self checkUUID];
Authentication *auth = [[Authentication alloc] initWithObject];
int erro = [auth insertDeviceInfo:device_token];
UINavigationController *navigationController = [self customizedNavigationController];
self.viewController = [[ViewController alloc] initWithNibName:@"ViewController" bundle:nil];
self.viewController.erro = erro;
[navigationController setViewControllers: [NSArray arrayWithObject: self.viewController]];
[self setNavigationController:navigationController];
[self.window setRootViewController: navigationController];
[self.window makeKeyAndVisible];
}
我只是希望能夠用模擬器能夠與我的調試移動
我想忽略推送註冊 – user1634153