【问题标题】:Flutter FCM IOS no valid aps-environment String foundFlutter FCM IOS找不到有效的aps-environment字符串
【发布时间】:2021-08-16 09:00:15
【问题描述】:

我已经创建了标识符并添加了证书。当我在 IOS 设备上运行我的应用程序时,我在日志中得到以下信息。

    8.3.0 - [Firebase/Messaging][I-FCM012002] Error in application:didFailToRegisterForRemoteNotificationsWithError:
 no valid “aps-environment” entitlement string found for application
    8.3.0 - [Firebase/Messaging][I-FCM002022] APNS device token not set before retrieving FCM Token for Sender ID '137210307895'. Notifications to this FCM Token will not be delivered over APNS.Be sure to re-retrieve the FCM token once the APNS device token is set.

我已按照连接 firebase 和 Flutter IOS 的所有步骤操作,但仍然看到此错误。有谁知道如何解决这个问题?

【问题讨论】:

    标签: flutter firebase-notifications


    【解决方案1】:

    我在 mac 上创建了新的 csr。在标识符上使用该证书,然后创建新的配置文件并将该配置文件用于应用程序。问题已解决。

    【讨论】:

      猜你喜欢
      • 2017-02-04
      • 2012-11-06
      • 2012-09-20
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-02-04
      • 2014-03-09
      • 1970-01-01
      相关资源
      最近更新 更多