3131#include " godot_app_delegate_extension.h"
3232
3333#if VERSION_MAJOR == 4 && VERSION_MINOR >= 4
34- @implementation GodotApplicationDelegate (PushNotifications)
34+ @implementation GDTApplicationDelegate (PushNotifications)
3535
3636- (void )application : (UIApplication *)application didRegisterForRemoteNotificationsWithDeviceToken : (NSData *)deviceToken {
37- for (ApplicationDelegateService *service in GodotApplicationDelegate .services ) {
37+ for (GDTAppDelegateServiceProtocol *service in GDTApplicationDelegate .services ) {
3838 if (![service respondsToSelector: _cmd ]) {
3939 continue ;
4040 }
@@ -44,7 +44,7 @@ - (void)application:(UIApplication *)application didRegisterForRemoteNotificatio
4444}
4545
4646- (void )application : (UIApplication *)application didFailToRegisterForRemoteNotificationsWithError : (NSError *)error {
47- for (ApplicationDelegateService *service in GodotApplicationDelegate .services ) {
47+ for (GDTAppDelegateServiceProtocol *service in GDTApplicationDelegate .services ) {
4848 if (![service respondsToSelector: _cmd ]) {
4949 continue ;
5050 }
@@ -54,7 +54,7 @@ - (void)application:(UIApplication *)application didFailToRegisterForRemoteNotif
5454}
5555
5656- (void )application : (UIApplication *)application didReceiveRemoteNotification : (NSDictionary *)userInfo fetchCompletionHandler : (void (^)(UIBackgroundFetchResult result))completionHandler {
57- for (ApplicationDelegateService *service in GodotApplicationDelegate .services ) {
57+ for (GDTAppDelegateServiceProtocol *service in GDTApplicationDelegate .services ) {
5858 if (![service respondsToSelector: _cmd ]) {
5959 continue ;
6060 }
@@ -69,10 +69,10 @@ - (void)application:(UIApplication *)application didReceiveRemoteNotification:(N
6969
7070#else
7171
72- @implementation GodotApplicalitionDelegate (PushNotifications)
72+ @implementation GDTApplicationDelegate (PushNotifications)
7373
7474- (void )application : (UIApplication *)application didRegisterForRemoteNotificationsWithDeviceToken : (NSData *)deviceToken {
75- for (ApplicationDelegateService *service in GodotApplicalitionDelegate .services ) {
75+ for (GDTAppDelegateServiceProtocol *service in GDTApplicationDelegate .services ) {
7676 if (![service respondsToSelector: _cmd ]) {
7777 continue ;
7878 }
@@ -82,7 +82,7 @@ - (void)application:(UIApplication *)application didRegisterForRemoteNotificatio
8282}
8383
8484- (void )application : (UIApplication *)application didFailToRegisterForRemoteNotificationsWithError : (NSError *)error {
85- for (ApplicationDelegateService *service in GodotApplicalitionDelegate .services ) {
85+ for (GDTAppDelegateServiceProtocol *service in GDTApplicationDelegate .services ) {
8686 if (![service respondsToSelector: _cmd ]) {
8787 continue ;
8888 }
@@ -92,7 +92,7 @@ - (void)application:(UIApplication *)application didFailToRegisterForRemoteNotif
9292}
9393
9494- (void )application : (UIApplication *)application didReceiveRemoteNotification : (NSDictionary *)userInfo fetchCompletionHandler : (void (^)(UIBackgroundFetchResult result))completionHandler {
95- for (ApplicationDelegateService *service in GodotApplicalitionDelegate .services ) {
95+ for (GDTAppDelegateServiceProtocol *service in GDTApplicationDelegate .services ) {
9696 if (![service respondsToSelector: _cmd ]) {
9797 continue ;
9898 }
0 commit comments