相关疑难解决方法(0)

在检索发件人 ID 的 FCM 令牌之前未设置 APNS 设备令牌 - React Native Firebase

我一直在按照教程使用react-native-firebase版本5.2.0在我的react-native应用程序上设置远程推送通知。配置完所有内容并运行应用程序后,出现错误:

在检索发件人 ID '' 的 FCM 令牌之前未设置 APNS 设备令牌。对此 FCM 令牌的通知将不会通过 APNS 传递。设置 APNS 令牌后,请务必重新检索 FCM 令牌。

一直试图找出解决这个问题的方法,但不太成功。在react-native上运行:0.61.2,react-native-firebase:5.2.0

以下是我的 AppDelegate.m

#import "AppDelegate.h"

#import <React/RCTBridge.h>
#import <React/RCTBundleURLProvider.h>
#import <React/RCTRootView.h>
#import <RNCPushNotificationIOS.h>
#import <UserNotifications/UserNotifications.h>
#import <Firebase.h>

@import Firebase;
@implementation AppDelegate

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
  [FIRApp configure];
  RCTBridge *bridge = [[RCTBridge alloc] initWithDelegate:self launchOptions:launchOptions];
  RCTRootView *rootView = [[RCTRootView alloc] initWithBridge:bridge
                                                   moduleName:@"helloworld"
                                            initialProperties:nil];

  rootView.backgroundColor = [[UIColor alloc] initWithRed:1.0f green:1.0f blue:1.0f alpha:1];

  self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
  UIViewController *rootViewController = …
Run Code Online (Sandbox Code Playgroud)

ios firebase react-native react-native-firebase

56
推荐指数
9
解决办法
9万
查看次数

Flutter应用程序打开,但停留在初始屏幕上

当我构建iOS应用程序时,它在Macbook的模拟器中完美打开。当我在iTunes商店上发布该应用程序时,该应用程序不再起作用。初始屏幕已显示,但停留在屏幕上。

splash-screen ios flutter

9
推荐指数
1
解决办法
1486
查看次数