Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/react-native/7.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
本机Firebase云消息传递错误_Firebase_React Native_Firebase Cloud Messaging - Fatal编程技术网

本机Firebase云消息传递错误

本机Firebase云消息传递错误,firebase,react-native,firebase-cloud-messaging,Firebase,React Native,Firebase Cloud Messaging,我正在使用下面的插件来实现云消息传递。 不幸的是,这个插件最近更新了,他们没有发布新的文档。 以前,我在AppDelegate中使用下面的代码,但现在我不确定如何使用新类RNFBMessaging [RNFirebaseNotifications配置] (BOOL)应用程序:(UIApplication*)应用程序openURL:(NSURL*)url选项:(NSDictionary*)选项{ return[[LineSDKLogin sharedInstance]handleopeanu

我正在使用下面的插件来实现云消息传递。

不幸的是,这个插件最近更新了,他们没有发布新的文档。

以前,我在AppDelegate中使用下面的代码,但现在我不确定如何使用新类RNFBMessaging

[RNFirebaseNotifications配置]

  • (BOOL)应用程序:(UIApplication*)应用程序openURL:(NSURL*)url选项:(NSDictionary*)选项{
    return[[LineSDKLogin sharedInstance]handleopeanurl:url];}

  • (无效)应用程序:(UIApplication*)应用程序收到本地通知:(UILocalNotification*)通知{
    [[RNFirebaseNotifications实例] didReceiveLocalNotification:notification];}

  • (无效)应用程序:(UIApplication*)应用程序DidReceiveMemoteNotification:(非空NSDictionary*)用户信息 fetchCompletionHandler:(非空) (^)(UIBackgroundFetchResult))completionHandler{
    [[RNFirebaseNotifications实例] DidReceiveMemoteNotification:用户信息 fetchCompletionHandler:completionHandler];}

  • (void)应用程序:(UIApplication*)应用程序didRegisterUserNotificationSettings:(UIUserNotificationSettings) *)notificationSettings{[[RNFirebaseMessaging实例]didRegisterUserNotificationSettings:notificationSettings];}

我相信有人已经实现了这个新版本的插件。。。
请帮助我…

如果您对软件包版本升级有任何问题,请在GitHub中打开一个问题,我认为这会更有帮助!我现在还要用v5吗。。。?