@@ -37,12 +37,7 @@ def generate_mendix_delegate
3737 imports = [ ]
3838 hooks = {
3939 didFinishLaunchingWithOptions : [ ] ,
40- didReceiveLocalNotification : [ ] ,
41- didReceiveRemoteNotification : [ ] ,
42- didRegisterUserNotificationSettings : [ ] ,
4340 openURL : [ ] ,
44- willPresentNotification : [ ] ,
45- didReceiveNotificationResponse : [ ] ,
4641 getJSBundleFile : [ ] ,
4742 }
4843
@@ -94,25 +89,10 @@ def mendix_app_delegate_template
9489
9590@implementation MendixAppDelegate
9691
97- static UIResponder<UIApplicationDelegate, UNUserNotificationCenterDelegate> *_Nullable delegate;
98-
9992+ (void) application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
10093{{ didFinishLaunchingWithOptions }}
10194}
10295
103- + (void) application:(UIApplication *)application didReceiveLocalNotification:(UILocalNotification *)notification {
104- {{ didReceiveLocalNotification }}
105- }
106-
107- + (void) application:(UIApplication *)application didReceiveRemoteNotification:(nonnull NSDictionary *)userInfo
108- fetchCompletionHandler:(nonnull void (^)(UIBackgroundFetchResult))completionHandler{
109- {{ didReceiveRemoteNotification }}
110- }
111-
112- + (void) application:(UIApplication *)application didRegisterUserNotificationSettings:(UIUserNotificationSettings *)notificationSettings {
113- {{ didRegisterUserNotificationSettings }}
114- }
115-
11696+ (BOOL) application:(UIApplication *)application openURL:(NSURL *)url options:(NSDictionary<UIApplicationOpenURLOptionsKey,id> *)options {
11797{{ boolean_openURLWithOptions }}
11898}
@@ -121,22 +101,6 @@ def mendix_app_delegate_template
121101{{ openURL }}
122102}
123103
124- + (void) userNotificationCenter:(UNUserNotificationCenter *)center willPresentNotification:(UNNotification *)notification withCompletionHandler:(void (^)(UNNotificationPresentationOptions options))completionHandler {
125- {{ willPresentNotification }}
126- }
127-
128- + (void) userNotificationCenter:(UNUserNotificationCenter *)center didReceiveNotificationResponse:(UNNotificationResponse *)response withCompletionHandler:(void (^)(void))completionHandler {
129- {{ didReceiveNotificationResponse }}
130- }
131-
132- + (UIResponder<UIApplicationDelegate, UNUserNotificationCenterDelegate> *_Nullable) delegate {
133- return delegate;
134- }
135-
136- + (void) setDelegate:(UIResponder<UIApplicationDelegate, UNUserNotificationCenterDelegate> *_Nonnull)value {
137- delegate = value;
138- }
139-
140104+ (NSURL *) getJSBundleFile {
141105{{ getJSBundleFile }}
142106 return [ReactNative.instance getJSBundleFile];
0 commit comments