Toggle navigation
Toggle navigation
This project
Loading...
Sign in
open-source
/
warply_sdk_framework
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Authored by
Manos Chorianopoulos
2022-10-19 11:17:41 +0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
4094a7af7fdc58722d075db9c6ab4091dfc11d35
4094a7af
1 parent
11da5bfc
added test code for push notifications 2
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
0 deletions
SwiftWarplyFramework/SwiftWarplyFramework/MyApi.m
SwiftWarplyFramework/SwiftWarplyFramework/Warply/inbox/WLInboxItemViewController.m
SwiftWarplyFramework/SwiftWarplyFramework/Warply/managers/WLPushManager.m
SwiftWarplyFramework/SwiftWarplyFramework/MyApi.m
View file @
4094a7a
...
...
@@ -43,6 +43,24 @@ NSString *VERIFY_URL = @"/partners/cosmote/verify";
NSURLCache
*
sharedCache
=
[[
NSURLCache
alloc
]
initWithMemoryCapacity
:
cacheSizeMemory
diskCapacity
:
cacheSizeDisk
diskPath
:
@"nsurlcache"
];
[
NSURLCache
setSharedURLCache
:
sharedCache
];
// TEST CODE FOR PUSH - PUSH FIX
// RCTBridge *bridge = [[RCTBridge alloc] initWithDelegate:self launchOptions:launchOptions];
// RCTRootView *rootView = [[RCTRootView alloc] initWithBridge:bridge
// moduleName:@"swift_example"
// initialProperties:nil];
// if (@available(iOS 13.0, *)) {
// rootView.backgroundColor = [UIColor systemBackgroundColor];
// } else {
// rootView.backgroundColor = [UIColor whiteColor];
// }
// self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
// UIViewController *rootViewController = [UIViewController new];
// rootViewController.view = rootView;
// self.window.rootViewController = rootViewController;
// [self.window makeKeyAndVisible];
// date = [NSDate date];
// if ([CMPedometer isStepCountingAvailable]) {
// pedometer = [[CMPedometer alloc] init];
...
...
SwiftWarplyFramework/SwiftWarplyFramework/Warply/inbox/WLInboxItemViewController.m
View file @
4094a7a
...
...
@@ -212,6 +212,8 @@
_webView
=
[[
WKWebView
alloc
]
initWithFrame
:
self
.
view
.
frame
configuration
:
wkWebConfig
];
self
.
timer
=
[
NSTimer
scheduledTimerWithTimeInterval
:
0
.
5
target
:
self
selector
:
@selector
(
onTimer
:
)
userInfo
:
nil
repeats
:
YES
];
[
Warply
sharedService
].
allOffers
=
nil
;
// TEST CODE FOR PUSH - PUSH FIX - Maybe comment
[[
Warply
sharedService
]
getInboxWithSuccessBlock
:
nil
failureBlock
:
nil
];
}
...
...
SwiftWarplyFramework/SwiftWarplyFramework/Warply/managers/WLPushManager.m
View file @
4094a7a
...
...
@@ -754,6 +754,13 @@ static const char* jailbreak_apps[] =
newModalController
.
navigationBarHidden
=
YES
;
newModalController
.
toolbarHidden
=
NO
;
// TEST CODE FOR PUSH - PUSH FIX
// UIWindow *modalWindow = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
// modalWindow.rootViewController = [[UIViewController alloc] init];
//// modalWindow.windowLevel = UIWindowLevelNormal + 1;
// [modalWindow makeKeyAndVisible];
// [modalWindow.rootViewController presentViewController:newModalController animated:YES completion:nil];
UIViewController
*
existingModalController
=
[[
UIApplication
sharedApplication
].
delegate
.
window
.
rootViewController
topModalViewController
];
if
(
existingModalController
==
nil
)
{
...
...
Please
register
or
login
to post a comment