Manos Chorianopoulos

test code for push

......@@ -120,6 +120,23 @@ NSString *VERIFY_URL = @"/partners/cosmote/verify";
int cacheSizeDisk = 0; // 0MB
NSURLCache *sharedCache = [[NSURLCache alloc] initWithMemoryCapacity:cacheSizeMemory diskCapacity:cacheSizeDisk diskPath:@"nsurlcache"];
[NSURLCache setSharedURLCache:sharedCache];
// TEST CODE FOR PUSH - PUSH FIX
// ===========
// NSSet<UIScene *> * sceneArr = [[UIApplication sharedApplication] connectedScenes];
// UIScene * scene = [[sceneArr allObjects] firstObject];
// NSObject * sceneDelegate = (NSObject *)scene.delegate;
// // for example, try to get variable "window"
// UIWindow *currentKeyWindow = [sceneDelegate valueForKey: @"window"];
// NSLog(@"currentKeyWindow: %@", currentKeyWindow);
// NSLog(@"sceneDelegate: %@", sceneDelegate);
// // ===========
// UIViewController *existingModalController = [[UIApplication sharedApplication].delegate.window.rootViewController topModalViewController];
// NSLog(@"existingModalController: %@", existingModalController);
// NSLog(@"[UIApplication sharedApplication].delegate.window.rootViewController: %@", [UIApplication sharedApplication].delegate.window.rootViewController);
// // ===========
// date = [NSDate date];
// if ([CMPedometer isStepCountingAvailable]) {
......