在React Native中在前台设置PushNotificationIOS时出现警告

在React Native中在前台设置PushNotificationIOS时出现警告,ios,objective-c,react-native,react-native-ios,Ios,Objective C,React Native,React Native Ios,我在Xcode上收到以下警告,同时: 我的应用程序按预期编译和运行。我没有使用objective-c的经验,所以我不知道这是关于什么的。我如何解决它?我也遇到了同样的问题,通过向我的AppDelegate接口添加UNUserNotificationCenterDelegate解决了这个问题: @interface AppDelegate : UIResponder <UIApplicationDelegate,UNUserNotificationCenterDelegate> @接

我在Xcode上收到以下警告,同时:


我的应用程序按预期编译和运行。我没有使用objective-c的经验,所以我不知道这是关于什么的。我如何解决它?

我也遇到了同样的问题,通过向我的AppDelegate接口添加
UNUserNotificationCenterDelegate
解决了这个问题:

@interface AppDelegate : UIResponder <UIApplicationDelegate,UNUserNotificationCenterDelegate>
@接口AppDelegate:UIResponder

我也遇到了同样的问题,通过向我的AppDelegate接口添加
UNUserNotificationCenterDelegate
解决了这个问题:

@interface AppDelegate : UIResponder <UIApplicationDelegate,UNUserNotificationCenterDelegate>
@接口AppDelegate:UIResponder

您找到问题的解决方案了吗?否则,您可以将您的.h文件发布到您应该可以找到类似
@interface-AppDelegate:UIResponder
的内容的位置。您找到解决问题的方法了吗?否则,您可以将您的.h文件发布到您应该可以找到类似以下内容的位置:
@interface AppDelegate:UIResponder
还可以添加#导入到AppDelegate.hAlso add#导入到AppDelegate.h
@interface AppDelegate : UIResponder <UIApplicationDelegate,UNUserNotificationCenterDelegate>