Showing
3 changed files
with
27 additions
and
0 deletions
... | @@ -43,6 +43,24 @@ NSString *VERIFY_URL = @"/partners/cosmote/verify"; | ... | @@ -43,6 +43,24 @@ NSString *VERIFY_URL = @"/partners/cosmote/verify"; |
43 | NSURLCache *sharedCache = [[NSURLCache alloc] initWithMemoryCapacity:cacheSizeMemory diskCapacity:cacheSizeDisk diskPath:@"nsurlcache"]; | 43 | NSURLCache *sharedCache = [[NSURLCache alloc] initWithMemoryCapacity:cacheSizeMemory diskCapacity:cacheSizeDisk diskPath:@"nsurlcache"]; |
44 | [NSURLCache setSharedURLCache:sharedCache]; | 44 | [NSURLCache setSharedURLCache:sharedCache]; |
45 | 45 | ||
46 | + // TEST CODE FOR PUSH - PUSH FIX | ||
47 | + // RCTBridge *bridge = [[RCTBridge alloc] initWithDelegate:self launchOptions:launchOptions]; | ||
48 | + // RCTRootView *rootView = [[RCTRootView alloc] initWithBridge:bridge | ||
49 | + // moduleName:@"swift_example" | ||
50 | + // initialProperties:nil]; | ||
51 | + | ||
52 | + // if (@available(iOS 13.0, *)) { | ||
53 | + // rootView.backgroundColor = [UIColor systemBackgroundColor]; | ||
54 | + // } else { | ||
55 | + // rootView.backgroundColor = [UIColor whiteColor]; | ||
56 | + // } | ||
57 | + | ||
58 | + // self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds]; | ||
59 | + // UIViewController *rootViewController = [UIViewController new]; | ||
60 | + // rootViewController.view = rootView; | ||
61 | + // self.window.rootViewController = rootViewController; | ||
62 | + // [self.window makeKeyAndVisible]; | ||
63 | + | ||
46 | // date = [NSDate date]; | 64 | // date = [NSDate date]; |
47 | // if ([CMPedometer isStepCountingAvailable]) { | 65 | // if ([CMPedometer isStepCountingAvailable]) { |
48 | // pedometer = [[CMPedometer alloc] init]; | 66 | // pedometer = [[CMPedometer alloc] init]; | ... | ... |
... | @@ -212,6 +212,8 @@ | ... | @@ -212,6 +212,8 @@ |
212 | _webView = [[WKWebView alloc] initWithFrame:self.view.frame configuration:wkWebConfig]; | 212 | _webView = [[WKWebView alloc] initWithFrame:self.view.frame configuration:wkWebConfig]; |
213 | self.timer = [NSTimer scheduledTimerWithTimeInterval:0.5 target:self selector:@selector(onTimer:) userInfo:nil repeats:YES]; | 213 | self.timer = [NSTimer scheduledTimerWithTimeInterval:0.5 target:self selector:@selector(onTimer:) userInfo:nil repeats:YES]; |
214 | [Warply sharedService].allOffers = nil; | 214 | [Warply sharedService].allOffers = nil; |
215 | + | ||
216 | + // TEST CODE FOR PUSH - PUSH FIX - Maybe comment | ||
215 | [[Warply sharedService] getInboxWithSuccessBlock: nil failureBlock:nil]; | 217 | [[Warply sharedService] getInboxWithSuccessBlock: nil failureBlock:nil]; |
216 | } | 218 | } |
217 | 219 | ... | ... |
... | @@ -754,6 +754,13 @@ static const char* jailbreak_apps[] = | ... | @@ -754,6 +754,13 @@ static const char* jailbreak_apps[] = |
754 | newModalController.navigationBarHidden = YES; | 754 | newModalController.navigationBarHidden = YES; |
755 | newModalController.toolbarHidden = NO; | 755 | newModalController.toolbarHidden = NO; |
756 | 756 | ||
757 | + // TEST CODE FOR PUSH - PUSH FIX | ||
758 | +// UIWindow *modalWindow = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds]; | ||
759 | +// modalWindow.rootViewController = [[UIViewController alloc] init]; | ||
760 | +//// modalWindow.windowLevel = UIWindowLevelNormal + 1; | ||
761 | +// [modalWindow makeKeyAndVisible]; | ||
762 | +// [modalWindow.rootViewController presentViewController:newModalController animated:YES completion:nil]; | ||
763 | + | ||
757 | UIViewController *existingModalController = [[UIApplication sharedApplication].delegate.window.rootViewController topModalViewController]; | 764 | UIViewController *existingModalController = [[UIApplication sharedApplication].delegate.window.rootViewController topModalViewController]; |
758 | 765 | ||
759 | if (existingModalController == nil) { | 766 | if (existingModalController == nil) { | ... | ... |
-
Please register or login to post a comment