@@ -8,14 +8,10 @@ class AppDelegate: ReactAppProvider, UNUserNotificationCenterDelegate {
88
99 override func application( _ application: UIApplication , didFinishLaunchingWithOptions launchOptions: [ UIApplicationLaunchOptionsKey : Any ] ? = nil ) -> Bool {
1010
11- setUpProvider ( )
12- super. application ( application, didFinishLaunchingWithOptions: launchOptions)
13-
14- clearKeychain ( )
11+ setupApp ( application: application, launchOptions: launchOptions)
1512 MendixAppDelegate . delegate = self
1613 UNUserNotificationCenter . current ( ) . delegate = self
1714 MendixAppDelegate . application ( application, didFinishLaunchingWithOptions: launchOptions)
18- setupUI ( )
1915
2016 changeRoot ( to: UIViewController ( ) )
2117
@@ -28,8 +24,8 @@ class AppDelegate: ReactAppProvider, UNUserNotificationCenterDelegate {
2824 }
2925
3026 if let bundleUrl = MendixAppDelegate . getJSBundleFile ( ) {
31- let runtimeUrl = AppUrl . forRuntime ( ( url) . replacingOccurrences ( of: " \\ " , with: " " ) )
3227
28+ let runtimeUrl = AppUrl . forRuntime ( ( url) . replacingOccurrences ( of: " \\ " , with: " " ) )
3329
3430 let mendixApp = MendixApp (
3531 identifier: nil ,
@@ -66,24 +62,4 @@ class AppDelegate: ReactAppProvider, UNUserNotificationCenterDelegate {
6662 func userNotificationCenter( _ center: UNUserNotificationCenter , willPresent notification: UNNotification , withCompletionHandler completionHandler: @escaping ( UNNotificationPresentationOptions ) -> Void ) {
6763 MendixAppDelegate . userNotificationCenter ( center, willPresentNotification: notification, withCompletionHandler: completionHandler)
6864 }
69-
70-
71- // - (void) application:(UIApplication *)application didReceiveLocalNotification:(UILocalNotification *)notification {
72- // [MendixAppDelegate application:application didReceiveLocalNotification:notification];
73- // }
74- //
75- // - (void) application:(UIApplication *)application didReceiveRemoteNotification:(nonnull NSDictionary *)userInfo
76- // fetchCompletionHandler:(nonnull void (^)(UIBackgroundFetchResult))completionHandler{
77- // [MendixAppDelegate application:application didReceiveRemoteNotification:userInfo fetchCompletionHandler:completionHandler];
78- // }
79- //
80- // - (void) application:(UIApplication *)application didRegisterUserNotificationSettings:(UIUserNotificationSettings *)notificationSettings {
81- // [MendixAppDelegate application:application didRegisterUserNotificationSettings:notificationSettings];
82- // }
83- //
84- // - (void) userNotificationCenter:(UNUserNotificationCenter *)center
85- // didReceiveNotificationResponse:(UNNotificationResponse *)response
86- // withCompletionHandler:(void (^)(void))completionHandler {
87- // [MendixAppDelegate userNotificationCenter:center didReceiveNotificationResponse:response withCompletionHandler:completionHandler];
88- // }
8965}
0 commit comments