Showing
3 changed files
with
27 additions
and
0 deletions
... | @@ -42,6 +42,24 @@ NSString *VERIFY_URL = @"/partners/cosmote/verify"; | ... | @@ -42,6 +42,24 @@ NSString *VERIFY_URL = @"/partners/cosmote/verify"; |
42 | int cacheSizeDisk = 0; // 0MB | 42 | int cacheSizeDisk = 0; // 0MB |
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 | + | ||
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]; | ||
45 | 63 | ||
46 | // date = [NSDate date]; | 64 | // date = [NSDate date]; |
47 | // if ([CMPedometer isStepCountingAvailable]) { | 65 | // if ([CMPedometer isStepCountingAvailable]) { | ... | ... |
... | @@ -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 | ... | ... |
... | @@ -753,6 +753,13 @@ static const char* jailbreak_apps[] = | ... | @@ -753,6 +753,13 @@ static const char* jailbreak_apps[] = |
753 | 753 | ||
754 | newModalController.navigationBarHidden = YES; | 754 | newModalController.navigationBarHidden = YES; |
755 | newModalController.toolbarHidden = NO; | 755 | newModalController.toolbarHidden = NO; |
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]; | ||
756 | 763 | ||
757 | UIViewController *existingModalController = [[UIApplication sharedApplication].delegate.window.rootViewController topModalViewController]; | 764 | UIViewController *existingModalController = [[UIApplication sharedApplication].delegate.window.rootViewController topModalViewController]; |
758 | 765 | ... | ... |
-
Please register or login to post a comment