firebase-ios-sdk icon indicating copy to clipboard operation
firebase-ios-sdk copied to clipboard

Messaging.messaging().token returns error in iOS 26 Simulator

Open makwanbarzan opened this issue 1 year ago • 8 comments

Description

While trying to fetch the Messaging token in iOS 26.0 Simulator, the domain: "com.google.fcm" - code: 505 error is being returned. This issue has started to appear in Xcode 26.0 + iOS 26.0, but it works fine while running it on iOS 18 and physical devices on iOS 26.0 with the same Xcode version.

It's worth mentioning that the request is being triggered after some seconds, which is not too early.

Reproducing the issue

Install Xcode 26.0 RC with iOS 26.0 Simulator and call Messaging.messaging().token

Firebase SDK Version

12.2.0

Xcode Version

26.0 RC

Installation Method

Swift Package Manager

Firebase Product(s)

Crashlytics, Installations, Remote Config, App Check

Targeted Platforms

iOS

Relevant Log Output


If using Swift Package Manager, the project's Package.resolved

Expand Package.resolved snippet

{
  "originHash" : "XXX",
  "pins" : [
    {
      "identity" : "abseil-cpp-binary",
      "kind" : "remoteSourceControl",
      "location" : "https://github.com/google/abseil-cpp-binary.git",
      "state" : {
        "revision" : "bbe8b69694d7873315fd3a4ad41efe043e1c07c5",
        "version" : "1.2024072200.0"
      }
    },
    {
      "identity" : "app-check",
      "kind" : "remoteSourceControl",
      "location" : "https://github.com/google/app-check.git",
      "state" : {
        "revision" : "61b85103a1aeed8218f17c794687781505fbbef5",
        "version" : "11.2.0"
      }
    },
    {
      "identity" : "firebase-ios-sdk",
      "kind" : "remoteSourceControl",
      "location" : "https://github.com/firebase/firebase-ios-sdk",
      "state" : {
        "revision" : "e2a3c3fbcaa1df3fd549b5b3f1175bc8a11912fd",
        "version" : "12.2.0"
      }
    },
    {
      "identity" : "google-ads-on-device-conversion-ios-sdk",
      "kind" : "remoteSourceControl",
      "location" : "https://github.com/googleads/google-ads-on-device-conversion-ios-sdk",
      "state" : {
        "revision" : "a2d0f1f1666de591eb1a811f40b1706f5c63a2ed",
        "version" : "2.3.0"
      }
    },
    {
      "identity" : "googleappmeasurement",
      "kind" : "remoteSourceControl",
      "location" : "https://github.com/google/GoogleAppMeasurement.git",
      "state" : {
        "revision" : "1c7edd5cc6e4ad22d2b81166bb9b208b9e63058a",
        "version" : "12.2.0"
      }
    },
    {
      "identity" : "googledatatransport",
      "kind" : "remoteSourceControl",
      "location" : "https://github.com/google/GoogleDataTransport.git",
      "state" : {
        "revision" : "617af071af9aa1d6a091d59a202910ac482128f9",
        "version" : "10.1.0"
      }
    },
    {
      "identity" : "googleutilities",
      "kind" : "remoteSourceControl",
      "location" : "https://github.com/google/GoogleUtilities.git",
      "state" : {
        "revision" : "60da361632d0de02786f709bdc0c4df340f7613e",
        "version" : "8.1.0"
      }
    }
  ],
  "version" : 3
}

If using CocoaPods, the project's Podfile.lock

No response

makwanbarzan avatar Sep 15 '25 19:09 makwanbarzan

I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.

google-oss-bot avatar Sep 15 '25 19:09 google-oss-bot

Hi @makwanbarzan, did you happen to reproduce this on a device running iOS 26?

ncooke3 avatar Sep 15 '25 19:09 ncooke3

I'm experiencing the same issue with FCM token not being received in didReceiveRegistrationToken when running on iOS 26 Simulator.

Environment:

  • Xcode 16.3
  • iOS 26 Simulator (Rosetta)
  • firebase sdk 11.11.0

Issue: When running the app on iOS 26 Simulator, the messaging:didReceiveRegistrationToken: delegate method is never called, so no FCM token is received. This issue only occurs on iOS 26 Simulator

kimkyuchul avatar Sep 16 '25 07:09 kimkyuchul

Hello, I was able to reproduce this as well on the other issue in #15315. FCM token is not being returned because the delegate methods are not called, and is happening on iOS 26 simulator.

rizafran avatar Sep 16 '25 09:09 rizafran

Hi @makwanbarzan, did you happen to reproduce this on an device running iOS 26?

Hi @ncooke3, It actually works fine on the iOS 26 physical devices, the issue only affects the simulator.

makwanbarzan avatar Sep 16 '25 10:09 makwanbarzan

Hello, I was able to reproduce this as well on the other issue in #15315. FCM token is not being returned because the delegate methods are not called, and is happening on iOS 26 simulator.

Thanks @rizafran. I believe the team can probably take this fix into account as it seems to be reproducible.

makwanbarzan avatar Sep 16 '25 10:09 makwanbarzan

As others have mentioned, this only happens on the iOS 26 simulator. And I can reproduce it without using the Firebase iOS SDK.

I checked the iOS and xcode release notes, but I couldn't find anything about that. https://developer.apple.com/documentation/xcode-release-notes/xcode-26-release-notes https://developer.apple.com/documentation/ios-ipados-release-notes/ios-ipados-26-release-notes

So, this issue is likely due to an unexpected behavior introduced in the latest version of the Simulator. Unfortunately, there's nothing we can do right now but wait for Apple to fix it.

leojaygoogle avatar Sep 17 '25 23:09 leojaygoogle

As others have mentioned, this only happens on the iOS 26 simulator. And I can reproduce it without using the Firebase iOS SDK.

I checked the iOS and xcode release notes, but I couldn't find anything about that. https://developer.apple.com/documentation/xcode-release-notes/xcode-26-release-notes https://developer.apple.com/documentation/ios-ipados-release-notes/ios-ipados-26-release-notes

So, this issue is likely due to an unexpected behavior introduced in the latest version of the Simulator. Unfortunately, there's nothing we can do right now but wait for Apple to fix it.

Thanks for mentioning it, @leojaygoogle.

I'm closing this issue and I will report it to Apple, hopefully they resolve it in the upcoming Xcode/iOS SDK versions.

makwanbarzan avatar Sep 21 '25 08:09 makwanbarzan