Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Firebase Remote Config fetchAndActivate completion block not executed #11738

Closed
LauraLopezAragoneses opened this issue Aug 29, 2023 · 6 comments

Comments

@LauraLopezAragoneses
Copy link

LauraLopezAragoneses commented Aug 29, 2023

Description

The completion block of fetchAndActivate is not being executed sometimes although it worked fine before, using FirebaseRemoteConfig 10.5.0.
We are using real-time Remote Config, so each time we change something in the Firebase console, we close the app and open it again, it'll work and the changes are applied correctly, but then if we open the app after the minimumFetchInterval, the completion is not executed.
It looks like we are experimenting some throttle issues although we don't get any throttle status or error.

Reproducing the issue

We are first configuring the RemoteConfig instance:

public func configureRemoteConfig(isSecondaryApp: Bool) {
        let app = isSecondaryApp ? FirebaseApp.app(name: FirebaseConfiguration.secondaryApp) : FirebaseApp.app()
        if let app {
            remoteConfig = RemoteConfig.remoteConfig(app: app)
        }
        let settings = RemoteConfigSettings()
        settings.minimumFetchInterval = 30
        remoteConfig.configSettings = settings
        remoteConfig.setDefaults(fromPlist: "remote_config_defaults")
    }

And then we fetch the Remote Config and subscribe to real-time changes:

public func fetchRemoteConfig(completion: @escaping ((Result<Void, Error>) -> Void)) {
        self.remoteConfig.fetchAndActivate { status, error in
            switch status {
            case .error:
                completion(Result.failure(error ?? FirebaseError.generic))
                
            case .successFetchedFromRemote, .successUsingPreFetchedData:
                completion(Result.success(()))
                
            default:
                completion(Result.failure(error ?? FirebaseError.generic))
            }
        }
        
        remoteConfig.addOnConfigUpdateListener { update, error in
            if let error {
                Logger.log("Remote Config: update error: \(error)", level: .error)
            }
            if let update {
                Logger.log("Remote Config: some keys have been updated: \(String(describing: update.updatedKeys))", level: .debug)
            }
        }
    }

We've tried with different minimumFetchInterval, but is the same, after that time the fetch won't work.

Firebase SDK Version

10.14.0

Xcode Version

14.3

Installation Method

CocoaPods

Firebase Product(s)

Remote Config

Targeted Platforms

iOS

Relevant Log Output

No response

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

{
"object": {
"pins": [
{
"package": "Alamofire",
"repositoryURL": "https://github.com/Alamofire/Alamofire.git",
"state": {
"branch": null,
"revision": "8dd85aee02e39dd280c75eef88ffdb86eed4b07b",
"version": "5.6.2"
}
},
{
"package": "AlgoliaSearchClient",
"repositoryURL": "https://github.com/algolia/algoliasearch-client-swift",
"state": {
"branch": null,
"revision": "3ae3deec2fedc375047bf789983c3d608c861dcd",
"version": "8.18.0"
}
},
{
"package": "Boomerang",
"repositoryURL": "https://github.com/synesthesia-it/Boomerang",
"state": {
"branch": "master",
"revision": "a0ee6d294d1ba28be476345de48dce0248c6c28f",
"version": null
}
},
{
"package": "Facebook",
"repositoryURL": "https://github.com/facebook/facebook-ios-sdk",
"state": {
"branch": null,
"revision": "c46ba480e9b176a950c428b1a1ec3fd57810f8fe",
"version": "11.2.1"
}
},
{
"package": "INSPhotoGallery",
"repositoryURL": "https://github.com/m1entus/INSPhotoGallery",
"state": {
"branch": null,
"revision": "f0a89f5d83dd47a0f109ae40c84c9567a5643165",
"version": "1.2.9"
}
},
{
"package": "InstantSearch",
"repositoryURL": "https://github.com/algolia/instantsearch-ios",
"state": {
"branch": null,
"revision": "d34ff55926d70649e597260593839126feabcaf9",
"version": "7.25.0"
}
},
{
"package": "InstantSearchTelemetry",
"repositoryURL": "https://github.com/algolia/instantsearch-telemetry-native",
"state": {
"branch": null,
"revision": "d9861ceb2fe25899a31672fb7c648ae8036d3221",
"version": "0.1.3"
}
},
{
"package": "BranchSDK",
"repositoryURL": "https://github.com/BranchMetrics/ios-branch-sdk-spm",
"state": {
"branch": null,
"revision": "7fbe3085821c8e60241a2037098c6eed76fd2798",
"version": "2.2.0"
}
},
{
"package": "Airship",
"repositoryURL": "https://github.com/urbanairship/ios-library",
"state": {
"branch": null,
"revision": "2a953b4f4f6a2e5d41afcdf9eb0e914a66bee431",
"version": "17.0.3"
}
},
{
"package": "KeychainAccess",
"repositoryURL": "https://github.com/kishikawakatsumi/KeychainAccess",
"state": {
"branch": null,
"revision": "84e546727d66f1adc5439debad16270d0fdd04e7",
"version": "4.2.2"
}
},
{
"package": "Kingfisher",
"repositoryURL": "https://github.com/onevcat/Kingfisher",
"state": {
"branch": null,
"revision": "af4be924ad984cf4d16f4ae4df424e79a443d435",
"version": "7.6.2"
}
},
{
"package": "Lottie",
"repositoryURL": "https://github.com/airbnb/lottie-ios",
"state": {
"branch": null,
"revision": "b4bd0604ded9574807f41b4004b57dd1226a30a4",
"version": "3.5.0"
}
},
{
"package": "Pageboy",
"repositoryURL": "https://github.com/uias/Pageboy",
"state": {
"branch": null,
"revision": "5522aa6ae88633f6c23cf504e9cd684e963822f1",
"version": "4.0.2"
}
},
{
"package": "Pulley",
"repositoryURL": "https://github.com/52inc/Pulley",
"state": {
"branch": null,
"revision": "355bb7c53d4d430334422ad05a97fbe43ce326db",
"version": "2.9.1"
}
},
{
"package": "RxDataSources",
"repositoryURL": "https://github.com/RxSwiftCommunity/RxDataSources.git",
"state": {
"branch": null,
"revision": "90c29b48b628479097fe775ed1966d75ac374518",
"version": "5.0.2"
}
},
{
"package": "RxGesture",
"repositoryURL": "https://github.com/RxSwiftCommunity/RxGesture.git",
"state": {
"branch": null,
"revision": "1b137c576b4aaaab949235752278956697c9e4a0",
"version": "4.0.4"
}
},
{
"package": "RxSwift",
"repositoryURL": "https://github.com/ReactiveX/RxSwift.git",
"state": {
"branch": null,
"revision": "b4307ba0b6425c0ba4178e138799946c3da594f8",
"version": "6.5.0"
}
},
{
"package": "swift-log",
"repositoryURL": "https://github.com/apple/swift-log.git",
"state": {
"branch": null,
"revision": "32e8d724467f8fe623624570367e3d50c5638e46",
"version": "1.5.2"
}
},
{
"package": "SwiftProtobuf",
"repositoryURL": "https://github.com/apple/swift-protobuf.git",
"state": {
"branch": null,
"revision": "f25867a208f459d3c5a06935dceb9083b11cd539",
"version": "1.22.0"
}
},
{
"package": "SwiftRichString",
"repositoryURL": "https://github.com/malcommac/SwiftRichString",
"state": {
"branch": null,
"revision": "9bf4b5af6bb4386865636fc504d6c588c2b65040",
"version": "3.7.2"
}
},
{
"package": "Tabman",
"repositoryURL": "https://github.com/uias/Tabman",
"state": {
"branch": null,
"revision": "6a87a2825939f5da06cf52a6582d67a646488cff",
"version": "3.0.1"
}
},
{
"package": "Zip",
"repositoryURL": "https://github.com/marmelroy/Zip",
"state": {
"branch": null,
"revision": "bd19d974e8a38cc8d3a88c90c8a107386c3b8ccf",
"version": "2.1.1"
}
}
]
},
"version": 1
}

If using CocoaPods, the project's Podfile.lock

PODS:

  • Analytics (4.1.6)
  • AppAuth (1.6.2):
    • AppAuth/Core (= 1.6.2)
    • AppAuth/ExternalUserAgent (= 1.6.2)
  • AppAuth/Core (1.6.2)
  • AppAuth/ExternalUserAgent (1.6.2):
    • AppAuth/Core
  • FirebaseABTesting (10.14.0):
    • FirebaseCore (~> 10.0)
  • FirebaseAnalytics (10.12.0):
    • FirebaseAnalytics/AdIdSupport (= 10.12.0)
    • FirebaseCore (~> 10.0)
    • FirebaseInstallations (~> 10.0)
    • GoogleUtilities/AppDelegateSwizzler (~> 7.11)
    • GoogleUtilities/MethodSwizzler (~> 7.11)
    • GoogleUtilities/Network (~> 7.11)
    • "GoogleUtilities/NSData+zlib (~> 7.11)"
    • nanopb (< 2.30910.0, >= 2.30908.0)
  • FirebaseAnalytics/AdIdSupport (10.12.0):
    • FirebaseCore (~> 10.0)
    • FirebaseInstallations (~> 10.0)
    • GoogleAppMeasurement (= 10.12.0)
    • GoogleUtilities/AppDelegateSwizzler (~> 7.11)
    • GoogleUtilities/MethodSwizzler (~> 7.11)
    • GoogleUtilities/Network (~> 7.11)
    • "GoogleUtilities/NSData+zlib (~> 7.11)"
    • nanopb (< 2.30910.0, >= 2.30908.0)
  • FirebaseCore (10.12.0):
    • FirebaseCoreInternal (~> 10.0)
    • GoogleUtilities/Environment (~> 7.8)
    • GoogleUtilities/Logger (~> 7.8)
  • FirebaseCoreExtension (10.14.0):
    • FirebaseCore (~> 10.0)
  • FirebaseCoreInternal (10.14.0):
    • "GoogleUtilities/NSData+zlib (~> 7.8)"
  • FirebaseCrashlytics (10.12.0):
    • FirebaseCore (~> 10.5)
    • FirebaseInstallations (~> 10.0)
    • FirebaseSessions (~> 10.5)
    • GoogleDataTransport (~> 9.2)
    • GoogleUtilities/Environment (~> 7.8)
    • nanopb (< 2.30910.0, >= 2.30908.0)
    • PromisesObjC (~> 2.1)
  • FirebaseInstallations (10.14.0):
    • FirebaseCore (~> 10.0)
    • GoogleUtilities/Environment (~> 7.8)
    • GoogleUtilities/UserDefaults (~> 7.8)
    • PromisesObjC (~> 2.1)
  • FirebasePerformance (10.12.0):
    • FirebaseCore (~> 10.5)
    • FirebaseInstallations (~> 10.0)
    • FirebaseRemoteConfig (~> 10.0)
    • FirebaseSessions (~> 10.5)
    • GoogleDataTransport (~> 9.2)
    • GoogleUtilities/Environment (~> 7.8)
    • GoogleUtilities/ISASwizzler (~> 7.8)
    • GoogleUtilities/MethodSwizzler (~> 7.8)
    • nanopb (< 2.30910.0, >= 2.30908.0)
  • FirebaseRemoteConfig (10.14.0):
    • FirebaseABTesting (~> 10.0)
    • FirebaseCore (~> 10.0)
    • FirebaseInstallations (~> 10.0)
    • GoogleUtilities/Environment (~> 7.8)
    • "GoogleUtilities/NSData+zlib (~> 7.8)"
  • FirebaseRemoteConfigSwift (10.12.0):
    • FirebaseRemoteConfig (~> 10.0)
    • FirebaseSharedSwift (~> 10.0)
  • FirebaseSessions (10.14.0):
    • FirebaseCore (~> 10.5)
    • FirebaseCoreExtension (~> 10.0)
    • FirebaseInstallations (~> 10.0)
    • GoogleDataTransport (~> 9.2)
    • GoogleUtilities/Environment (~> 7.10)
    • nanopb (< 2.30910.0, >= 2.30908.0)
    • PromisesSwift (~> 2.1)
  • FirebaseSharedSwift (10.14.0)
  • Gigya (1.5.2)
  • google-cast-sdk (4.7.0):
    • google-cast-sdk/Core (= 4.7.0)
    • Protobuf (~> 3.13)
  • google-cast-sdk/Core (4.7.0):
    • Protobuf (~> 3.13)
  • Google-Mobile-Ads-SDK (10.9.0):
    • GoogleAppMeasurement (< 11.0, >= 7.0)
    • GoogleUserMessagingPlatform (>= 1.1)
  • GoogleAds-IMA-iOS-SDK (3.18.4)
  • GoogleAppMeasurement (10.12.0):
    • GoogleAppMeasurement/AdIdSupport (= 10.12.0)
    • GoogleUtilities/AppDelegateSwizzler (~> 7.11)
    • GoogleUtilities/MethodSwizzler (~> 7.11)
    • GoogleUtilities/Network (~> 7.11)
    • "GoogleUtilities/NSData+zlib (~> 7.11)"
    • nanopb (< 2.30910.0, >= 2.30908.0)
  • GoogleAppMeasurement/AdIdSupport (10.12.0):
    • GoogleAppMeasurement/WithoutAdIdSupport (= 10.12.0)
    • GoogleUtilities/AppDelegateSwizzler (~> 7.11)
    • GoogleUtilities/MethodSwizzler (~> 7.11)
    • GoogleUtilities/Network (~> 7.11)
    • "GoogleUtilities/NSData+zlib (~> 7.11)"
    • nanopb (< 2.30910.0, >= 2.30908.0)
  • GoogleAppMeasurement/WithoutAdIdSupport (10.12.0):
    • GoogleUtilities/AppDelegateSwizzler (~> 7.11)
    • GoogleUtilities/MethodSwizzler (~> 7.11)
    • GoogleUtilities/Network (~> 7.11)
    • "GoogleUtilities/NSData+zlib (~> 7.11)"
    • nanopb (< 2.30910.0, >= 2.30908.0)
  • GoogleDataTransport (9.2.5):
    • GoogleUtilities/Environment (~> 7.7)
    • nanopb (< 2.30910.0, >= 2.30908.0)
    • PromisesObjC (< 3.0, >= 1.2)
  • GoogleMaps (6.2.1):
    • GoogleMaps/Maps (= 6.2.1)
  • GoogleMaps/Base (6.2.1)
  • GoogleMaps/Maps (6.2.1):
    • GoogleMaps/Base
  • GoogleSignIn (7.0.0):
    • AppAuth (~> 1.5)
    • GTMAppAuth (< 3.0, >= 1.3)
    • GTMSessionFetcher/Core (< 4.0, >= 1.1)
  • GoogleUserMessagingPlatform (2.1.0)
  • GoogleUtilities (7.11.1):
    • GoogleUtilities/AppDelegateSwizzler (= 7.11.1)
    • GoogleUtilities/Environment (= 7.11.1)
    • GoogleUtilities/ISASwizzler (= 7.11.1)
    • GoogleUtilities/Logger (= 7.11.1)
    • GoogleUtilities/MethodSwizzler (= 7.11.1)
    • GoogleUtilities/Network (= 7.11.1)
    • "GoogleUtilities/NSData+zlib (= 7.11.1)"
    • GoogleUtilities/Reachability (= 7.11.1)
    • GoogleUtilities/SwizzlerTestHelpers (= 7.11.1)
    • GoogleUtilities/UserDefaults (= 7.11.1)
  • GoogleUtilities/AppDelegateSwizzler (7.11.1):
    • GoogleUtilities/Environment
    • GoogleUtilities/Logger
    • GoogleUtilities/Network
  • GoogleUtilities/Environment (7.11.1):
    • PromisesObjC (< 3.0, >= 1.2)
  • GoogleUtilities/ISASwizzler (7.11.1)
  • GoogleUtilities/Logger (7.11.1):
    • GoogleUtilities/Environment
  • GoogleUtilities/MethodSwizzler (7.11.1):
    • GoogleUtilities/Logger
  • GoogleUtilities/Network (7.11.1):
    • GoogleUtilities/Logger
    • "GoogleUtilities/NSData+zlib"
    • GoogleUtilities/Reachability
  • "GoogleUtilities/NSData+zlib (7.11.1)"
  • GoogleUtilities/Reachability (7.11.1):
    • GoogleUtilities/Logger
  • GoogleUtilities/SwizzlerTestHelpers (7.11.1):
    • GoogleUtilities/MethodSwizzler
  • GoogleUtilities/UserDefaults (7.11.1):
    • GoogleUtilities/Logger
  • GTMAppAuth (2.0.0):
    • AppAuth/Core (~> 1.6)
    • GTMSessionFetcher/Core (< 4.0, >= 1.5)
  • GTMSessionFetcher/Core (3.1.1)
  • INSNibLoading (1.0.2)
  • nanopb (2.30909.0):
    • nanopb/decode (= 2.30909.0)
    • nanopb/encode (= 2.30909.0)
  • nanopb/decode (2.30909.0)
  • nanopb/encode (2.30909.0)
  • OneTrust-CMP-XCFramework (202304.1.0.0)
  • ownid-core-ios-sdk (2.1.0)
  • ownid-gigya-ios-sdk (2.1.0):
    • Gigya
    • ownid-core-ios-sdk (= 2.1.0)
  • pop (1.0.12)
  • PromisesObjC (2.3.1)
  • PromisesSwift (2.3.1):
    • PromisesObjC (= 2.3.1)
  • Protobuf (3.23.0)
  • SCSDKCameraKit (1.24.0)
  • SCSDKCameraKitReferenceSwiftUI (1.24.0):
    • SCSDKCameraKitReferenceUI (~> 1.24.0)
  • SCSDKCameraKitReferenceUI (1.24.0):
    • SCSDKCameraKit (~> 1.24.0)
  • SnapSDK/SCSDKCoreKit (2.4.0)
  • SnapSDK/SCSDKCreativeKit (2.4.0):
    • SnapSDK/SCSDKCoreKit
  • TTTAttributedLabel (2.0.0)
  • YouboraAVPlayerAdapter (6.7.0):
    • YouboraAVPlayerAdapter/Default (= 6.7.0)
    • YouboraLib (~> 6.5)
  • YouboraAVPlayerAdapter/Default (6.7.0):
    • YouboraLib (~> 6.5)
  • YouboraIMAAdapter (6.6.3):
    • GoogleAds-IMA-iOS-SDK (~> 3.13)
    • GoogleAds-IMA-tvOS-SDK (~> 4.3)
    • YouboraLib (~> 6.5)
  • YouboraLib (6.7.1)

DEPENDENCIES:

  • Analytics
  • FirebaseAnalytics (~> 10.12.0)
  • FirebaseCore (~> 10.12.0)
  • FirebaseCrashlytics (~> 10.12.0)
  • FirebasePerformance (~> 10.12.0)
  • FirebaseRemoteConfigSwift (~> 10.12.0)
  • Gigya (= 1.5.2)
  • google-cast-sdk (= 4.7.0)
  • Google-Mobile-Ads-SDK (~> 10.9.0)
  • GoogleAds-IMA-iOS-SDK (= 3.18.4)
  • GoogleMaps
  • GoogleSignIn (~> 7.0.0)
  • GoogleUtilities
  • INSNibLoading
  • OneTrust-CMP-XCFramework (~> 202304.1.0.0)
  • ownid-gigya-ios-sdk (= 2.1.0)
  • pop
  • SCSDKCameraKit
  • SCSDKCameraKitReferenceSwiftUI
  • SnapSDK/SCSDKCreativeKit (= 2.4.0)
  • TTTAttributedLabel
  • YouboraAVPlayerAdapter (= 6.7.0)
  • YouboraIMAAdapter

SPEC REPOS:
trunk:
- Analytics
- AppAuth
- FirebaseABTesting
- FirebaseAnalytics
- FirebaseCore
- FirebaseCoreExtension
- FirebaseCoreInternal
- FirebaseCrashlytics
- FirebaseInstallations
- FirebasePerformance
- FirebaseRemoteConfig
- FirebaseRemoteConfigSwift
- FirebaseSessions
- FirebaseSharedSwift
- Gigya
- google-cast-sdk
- Google-Mobile-Ads-SDK
- GoogleAds-IMA-iOS-SDK
- GoogleAppMeasurement
- GoogleDataTransport
- GoogleMaps
- GoogleSignIn
- GoogleUserMessagingPlatform
- GoogleUtilities
- GTMAppAuth
- GTMSessionFetcher
- INSNibLoading
- nanopb
- OneTrust-CMP-XCFramework
- ownid-core-ios-sdk
- ownid-gigya-ios-sdk
- pop
- PromisesObjC
- PromisesSwift
- Protobuf
- SCSDKCameraKit
- SCSDKCameraKitReferenceSwiftUI
- SCSDKCameraKitReferenceUI
- SnapSDK
- TTTAttributedLabel
- YouboraAVPlayerAdapter
- YouboraIMAAdapter
- YouboraLib

SPEC CHECKSUMS:
Analytics: eefe524436f904b8bb3f8c8c3425280e43b34efc
AppAuth: 3bb1d1cd9340bd09f5ed189fb00b1cc28e1e8570
FirebaseABTesting: e1535073fac4ff55c7537a6e041155c72d9e6906
FirebaseAnalytics: 0270389efbe3022b54ec4588862dabec3477ee98
FirebaseCore: f86a1394906b97ac445ae49c92552a9425831bed
FirebaseCoreExtension: 976638051b1a46b503afce7ec80277f9161f2040
FirebaseCoreInternal: d558159ee6cc4b823c2296ecc193de9f6d9a5bb3
FirebaseCrashlytics: c4d111b7430c49744c74bcc6346ea00868661ac8
FirebaseInstallations: f672b1eda64e6381c21d424a2f680a943fd83f3b
FirebasePerformance: 1a63c51c9d14fc1190b0970d5aab96672cb0bce6
FirebaseRemoteConfig: e22a706fa7ecc64135325f4c430a15af1e795535
FirebaseRemoteConfigSwift: 80d458558440af70fa77979fda2c921a127b7499
FirebaseSessions: f145e7365d36bec0d724c4574a8750e6f82fa6c8
FirebaseSharedSwift: 0eec812f08b6ec9e03196fc27635739781513028
Gigya: 030de6ed660df58730b0e188ea981cad02d82681
google-cast-sdk: 6731e9a206ce43e0f4433d15598ad8a19f0371d5
Google-Mobile-Ads-SDK: e81e8b009a182dc8dd14951782efdbb30a5e4510
GoogleAds-IMA-iOS-SDK: b01284e3bf3d64ba948de6692ffda531452c3713
GoogleAppMeasurement: 2d800fab85e7848b1e66a6f8ce5bca06c5aad892
GoogleDataTransport: 54dee9d48d14580407f8f5fbf2f496e92437a2f2
GoogleMaps: 20d7b12be49a14287f797e88e0e31bc4156aaeb4
GoogleSignIn: b232380cf495a429b8095d3178a8d5855b42e842
GoogleUserMessagingPlatform: dce302b8f1b84d6e945812ee7a15c3f65a102cbf
GoogleUtilities: 9aa0ad5a7bc171f8bae016300bfcfa3fb8425749
GTMAppAuth: 99fb010047ba3973b7026e45393f51f27ab965ae
GTMSessionFetcher: e8647203b65cee28c5f73d0f473d096653945e72
INSNibLoading: 0244d5b9c30d4642c77b31469cbfd905e8b1efb3
nanopb: b552cce312b6c8484180ef47159bc0f65a1f0431
OneTrust-CMP-XCFramework: 6ba009d173203f5e74bb33708df5ddac6f3edc1c
ownid-core-ios-sdk: 42096cb0aea330c8163ec29291290e8ad874f8ad
ownid-gigya-ios-sdk: c6c5112a0eccab4d1831e82145f233b60bfb1e64
pop: d582054913807fd11fd50bfe6a539d91c7e1a55a
PromisesObjC: c50d2056b5253dadbd6c2bea79b0674bd5a52fa4
PromisesSwift: 28dca69a9c40779916ac2d6985a0192a5cb4a265
Protobuf: 43e3764cdf3609fdd00417649561565703437fdc
SCSDKCameraKit: 7f8864857d4510a75bc08f83ff8ee4f7ea833959
SCSDKCameraKitReferenceSwiftUI: 6d841cd23ce860a79dba4c13897022eee314d168
SCSDKCameraKitReferenceUI: a6e2f239c2561799cda69eb49711cbfb7be9ae4d
SnapSDK: e832716ff024b17b448f9bca5feeac5a3daed3ff
TTTAttributedLabel: 8cffe8e127e4e82ff3af1e5386d4cd0ad000b656
YouboraAVPlayerAdapter: f48516d2e5862e3f6b183471993be165cc8e8c77
YouboraIMAAdapter: aed03e9cebc611875ba769315d6348dc040f9fd6
YouboraLib: bec896cbfc74ce4a2243a6a55da099e7843f1242

PODFILE CHECKSUM: e3691c39eb4c4199f5f5c7ce7f4d0486ae69c5d5

COCOAPODS: 1.12.1

@google-oss-bot
Copy link

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

@ehyche
Copy link

ehyche commented Aug 29, 2023

I am seeing this same issue, although with fetch() instead of fetchAndActivate(). It only seems to happen on first-install. On first-install, when I call fetch(withExpirationDuration:completionHandler:), then the completion handler is never called. It happens most often on the simulator. I have turned on Firebase logging, with verbose Analytics logging. Here is an output when it fails:

2023-08-29 15:57:10.687111-0400 Coach[79678:1965356]  - <AppMeasurement>[I-ACS036001] Analytics screen reporting is disabled. UIViewController transitions will not be logged.
2023-08-29 15:57:10.722874-0400 Coach[79678:1965353] 10.14.0 - [FirebaseCore][I-COR000001] Configuring the default app.
2023-08-29 15:57:10.726600-0400 Coach[79678:1965353] 10.14.0 - [FirebaseCore][I-COR000033] Data Collection flag is not set.
2023-08-29 15:57:10.730673-0400 Coach[79678:1965359] 10.14.0 - [FirebaseInstallations][I-FIS002000] -[FIRInstallationsIDController createGetInstallationItemPromise], appName: __FIRAPP_DEFAULT
2023-08-29 15:57:10.732247-0400 Coach[79678:1965103] [Firebase/Crashlytics] Version 10.14.0
2023-08-29 15:57:10.733973-0400 Coach[79678:1965360] 10.14.0 - [FirebaseSessions][I-SES000000] Version 10.14.0. Expecting subscriptions from: [Crashlytics, Performance]
2023-08-29 15:57:10.734289-0400 Coach[79678:1965360] 10.14.0 - [FirebaseCrashlytics][I-CLS000000] [Crashlytics] Running on iOS Simulator (iPhone), 16.4.0 (22F82)
2023-08-29 15:57:10.734388-0400 Coach[79678:1965360] 10.14.0 - [FirebaseCrashlytics][I-CLS000000] Generating Install ID
2023-08-29 15:57:10.734487-0400 Coach[79678:1965360] 10.14.0 - [FirebaseCrashlytics][I-CLS000000] Registering Sessions SDK subscription for session data
2023-08-29 15:57:10.734585-0400 Coach[79678:1965360] 10.14.0 - [FirebaseSessions][I-SES000000] Registering Sessions SDK subscriber with name: Crashlytics, data collection enabled: true
2023-08-29 15:57:10.734687-0400 Coach[79678:1965360] 10.14.0 - [FirebaseCrashlytics][I-CLS000000] Session ID changed: 0e4a1f2934d74150a65fe6be187cfb02
2023-08-29 15:57:10.735461-0400 Coach[79678:1965360] 10.14.0 - [FirebaseAnalytics][I-ACS024000] Debug mode is on
2023-08-29 15:57:10.735676-0400 Coach[79678:1965360] 10.14.0 - [FirebaseAnalytics][I-ACS005000] The AdSupport Framework is not currently linked. Some features will not function properly. Learn more at http://goo.gl/9vSsPb
2023-08-29 15:57:10.735845-0400 Coach[79678:1965360] 10.14.0 - [FirebaseCrashlytics][I-CLS000000] [Crashlytics:Settings] No settings were cached
2023-08-29 15:57:10.736000-0400 Coach[79678:1965360] 10.14.0 - [FirebaseCrashlytics][I-CLS000000] Root: /Users/ehyche/Library/Developer/CoreSimulator/Devices/7CC11059-AACC-4389-AA07-B096E13E2469/data/Containers/Data/Application/56F1EBE4-EACB-49B7-9127-0798E472E125/Library/Caches/com.crashlytics.data/com.noom.wlc.test
2023-08-29 15:57:10.737599-0400 Coach[79678:1965359] 10.14.0 - [FirebaseCrashlytics][I-CLS000000] [Crashlytics:Crash:Reports:Event] Registered Firebase Analytics event listener to receive breadcrumb logs
2023-08-29 15:57:10.737718-0400 Coach[79678:1965359] 10.14.0 - [FirebaseCrashlytics][I-CLS000000] Automatic data collection is enabled.
2023-08-29 15:57:10.737823-0400 Coach[79678:1965359] 10.14.0 - [FirebaseCrashlytics][I-CLS000000] Unsent reports will be uploaded at startup
2023-08-29 15:57:10.892229-0400 Coach[79678:1965366] 10.14.0 - [FirebasePerformance][I-PRF100001] Firebase Performance Monitoring is successfully initialized! In a minute, visit the Firebase console to view your data: https://console.firebase.google.com/project/noom-ios-test/performance/app/ios:com.noom.wlc.test/trends?utm_source=perf-ios-sdk&utm_medium=ios-ide
2023-08-29 15:57:10.894563-0400 Coach[79678:1965366] 10.14.0 - [FirebasePerformance][I-PRF100001] Registering Sessions SDK subscription for session data
2023-08-29 15:57:10.894688-0400 Coach[79678:1965366] 10.14.0 - [FirebaseSessions][I-SES000000] Registering Sessions SDK subscriber with name: Performance, data collection enabled: true
2023-08-29 15:57:10.894853-0400 Coach[79678:1965366] 10.14.0 - [FirebasePerformance][I-PRF900002] Session Id changed - 0e4a1f2934d74150a65fe6be187cfb02
2023-08-29 15:57:10.895397-0400 Coach[79678:1965366] 10.14.0 - [GoogleUtilities/AppDelegateSwizzler][I-SWZ001011] App Delegate Proxy is disabled.
2023-08-29 15:57:10.895782-0400 Coach[79678:1965366] 10.14.0 - [FirebaseInAppMessagingDisplay][I-FID100010] Got notification for kFIRAppReadyToConfigureSDKNotification. Setting display component on headless SDK.
2023-08-29 15:57:10.906422-0400 Coach[79678:1965366] 10.14.0 - [FirebaseInAppMessaging][I-IAM290001] Setting a non-nil message display component
2023-08-29 15:57:10.906767-0400 Coach[79678:1965366] 10.14.0 - [FirebaseInAppMessaging][I-IAM170001] Got notification for kFIRAppReadyToConfigureSDKNotification
2023-08-29 15:57:10.906880-0400 Coach[79678:1965366] 10.14.0 - [FirebaseInAppMessaging][I-IAM170002] Auto bootstrap Firebase in-app messaging SDK
2023-08-29 15:57:10.906992-0400 Coach[79678:1965366] 10.14.0 - [FirebaseRemoteConfig][I-RCN000062] Loading database at path /Users/ehyche/Library/Developer/CoreSimulator/Devices/7CC11059-AACC-4389-AA07-B096E13E2469/data/Containers/Data/Application/56F1EBE4-EACB-49B7-9127-0798E472E125/Library/Application Support/Google/RemoteConfig/RemoteConfig.sqlite3
2023-08-29 15:57:10.907146-0400 Coach[79678:1965366] 10.14.0 - [FirebaseInAppMessaging][I-IAM170004] Running in simulator. Do realtime clearcut uploading.
2023-08-29 15:57:10.907308-0400 Coach[79678:1965366] 10.14.0 - [FirebaseInAppMessaging][I-IAM310001] Persistent file path for activity log data is /Users/ehyche/Library/Developer/CoreSimulator/Devices/7CC11059-AACC-4389-AA07-B096E13E2469/data/Containers/Data/Application/56F1EBE4-EACB-49B7-9127-0798E472E125/Library/Caches/firebase-iam-activity-log-cache
2023-08-29 15:57:10.907460-0400 Coach[79678:1965366] 10.14.0 - [FirebaseInAppMessaging][I-IAM230001] Persistent file path for clearcut log records is /Users/ehyche/Library/Developer/CoreSimulator/Devices/7CC11059-AACC-4389-AA07-B096E13E2469/data/Containers/Data/Application/56F1EBE4-EACB-49B7-9127-0798E472E125/Library/Caches/firebase-iam-clearcut-retry-records
2023-08-29 15:57:10.907567-0400 Coach[79678:1965366] 10.14.0 - [FirebaseInAppMessaging][I-IAM230005] Returning 0 clearcut retry records from popStillValidRecords
2023-08-29 15:57:10.907669-0400 Coach[79678:1965366] 10.14.0 - [FirebaseInAppMessaging][I-IAM260001] FIRIAMClearcutUploader created with strategy as min wait time in seconds:0;max wait time in seconds:0;failure backoff time in seconds:3600;batch send size:50
2023-08-29 15:57:10.907783-0400 Coach[79678:1965366] 10.14.0 - [FirebaseInAppMessaging][I-IAM290001] SDK is in mode of Newly Installed and has seen 0 fetches.
2023-08-29 15:57:10.907878-0400 Coach[79678:1965366] 10.14.0 - [FirebaseInAppMessaging][I-IAM300010] Detected 4 custom URL schemes from environment
2023-08-29 15:57:10.907999-0400 Coach[79678:1965366] 10.14.0 - [FirebaseRemoteConfig][I-RCN000072] New config database created. Resetting user defaults.
2023-08-29 15:57:10.908135-0400 Coach[79678:1965366] 10.14.0 - [FirebaseRemoteConfig][I-RCN000072] New config database created. Resetting user defaults.
2023-08-29 15:57:10.908295-0400 Coach[79678:1965366] 10.14.0 - [FirebaseRemoteConfig][I-RCN000067] Successfully set configSettings. Minimum Fetch Interval:0.000000, Fetch timeout:60.000000
2023-08-29 15:57:10.908448-0400 Coach[79678:1965366] 10.14.0 - [GULReachability][I-REA902003] Monitoring the network status
2023-08-29 15:57:10.908535-0400 Coach[79678:1965366] 10.14.0 - [GULReachability][I-REA902003] Monitoring the network status
2023-08-29 15:57:10.908622-0400 Coach[79678:1965366] 10.14.0 - [FirebaseAnalytics][I-ACS023007] Analytics v.10.14.0 started
2023-08-29 15:57:10.908740-0400 Coach[79678:1965366] 10.14.0 - [FirebaseAnalytics][I-ACS023222] Build 101300
2023-08-29 15:57:10.908937-0400 Coach[79678:1965366] 10.14.0 - [FirebaseAnalytics][I-ACS023008] To disable debug logging set the following application argument: -noFIRAnalyticsDebugEnabled (see http://goo.gl/RfcP7r)
2023-08-29 15:57:10.909083-0400 Coach[79678:1965366] 10.14.0 - [FirebaseAnalytics][I-ACS023009] Debug logging enabled
2023-08-29 15:57:10.909323-0400 Coach[79678:1965366] 10.14.0 - [FirebaseAnalytics][I-ACS023207] To disable verbose logging set the following application argument: -FIRAnalyticsVerboseLoggingDisabled (see http://goo.gl/RfcP7r)
2023-08-29 15:57:10.909434-0400 Coach[79678:1965366] 10.14.0 - [FirebaseAnalytics][I-ACS025036] App Delegate Proxy is disabled
2023-08-29 15:57:10.940441-0400 Coach[79678:1965366] 10.14.0 - [FirebaseAnalytics][I-ACS820009] Successfully start the task manager
2023-08-29 15:57:10.940699-0400 Coach[79678:1965366] 10.14.0 - [FirebaseAnalytics][I-ACS002002] APMExperimentAlarm scheduled to fire in approx. (s): 9.999995946884155
2023-08-29 15:57:11.086379-0400 Coach[79678:1965366] 10.14.0 - [FirebasePerformance][I-PRF100009] Logging network request trace - https://api.mixpanel.com/track/, Response code: 200, 303.8650ms
2023-08-29 15:57:11.086678-0400 Coach[79678:1965366] 10.14.0 - [FirebasePerformance][I-PRF100009] Logging network request trace - https://api.mixpanel.com/track/, Response code: 200, 329.6680ms
2023-08-29 15:57:11.248454-0400 Coach[79678:1965368] 10.14.0 - [FirebasePerformance][I-PRF100009] Setting attribute success to true on trace dataLayerInit
2023-08-29 15:57:11.258343-0400 Coach[79678:1965368] 10.14.0 - [FirebasePerformance][I-PRF100009] Logging trace metric - dataLayerInit 328.7880ms. In a minute, visit the Firebase console to view your data: https://console.firebase.google.com/project/noom-ios-test/performance/app/ios:com.noom.wlc.test/troubleshooting/trace/DURATION_TRACE/dataLayerInit?utm_source=perf-ios-sdk&utm_medium=ios-ide
2023-08-29 15:57:11.263818-0400 Coach[79678:1965368] 10.14.0 - [FirebaseCrashlytics][I-CLS000000] Settings downloaded successfully
2023-08-29 15:57:11.265269-0400 Coach[79678:1965368] 10.14.0 - [FirebaseAnalytics][I-ACS800005] Registered client: app_measurement
2023-08-29 15:57:11.265850-0400 Coach[79678:1965368] 10.14.0 - [FirebaseAnalytics][I-ACS800023] No pending snapshot to activate. SDK name: app_measurement

// We call RemoteConfig.fetch(withExpirationDuration: 0) here!!!

2023-08-29 15:57:11.287646-0400 Coach[79678:1965367] 10.14.0 - [FirebaseRemoteConfig][I-RCN000066] Successfully read configSettings. Minimum Fetch Interval:0.000000, Fetch timeout: 60.000000
2023-08-29 15:57:11.287795-0400 Coach[79678:1965367] 10.14.0 - [FirebaseRemoteConfig][I-RCN000039] Starting requesting token.
2023-08-29 15:57:11.287903-0400 Coach[79678:1965367] 10.14.0 - [FirebaseInstallations][I-FIS002001] -[FIRInstallationsIDController installationWithValidAuthTokenForcingRefresh:0], appName: __FIRAPP_DEFAULT
2023-08-29 15:57:11.288015-0400 Coach[79678:1965367] 10.14.0 - [FirebaseAnalytics][I-ACS029017] Configuration was not found in database. The configuration will be fetched from the network when necessary
2023-08-29 15:57:11.288119-0400 Coach[79678:1965367] 10.14.0 - [FirebaseAnalytics][I-ACS023016] Analytics is ready to receive events
2023-08-29 15:57:11.288206-0400 Coach[79678:1965367] 10.14.0 - [FirebaseAnalytics][I-ACS800015] Looking for activated flag. SDK name, flag name, activated snapshot: app_measurement, persistent_config_in_application_support_enabled, (nil)
2023-08-29 15:57:11.288334-0400 Coach[79678:1965367] 10.14.0 - [FirebaseAnalytics][I-ACS800016] Cannot find activated flag. Looking for launched flag. SDK name, flag name, launched flag: app_measurement, persistent_config_in_application_support_enabled, (nil)
2023-08-29 15:57:11.295104-0400 Coach[79678:1965367] 10.14.0 - [FirebaseAnalytics][I-ACS800019] Cannot find launched flag. Returned the default flag value. SDK name, flag name, default flag: app_measurement, persistent_config_in_application_support_enabled, 0
2023-08-29 15:57:11.347370-0400 Coach[79678:1965366] 10.14.0 - [GULReachability][I-REA902004] Network status has changed. Code:2, status:Connected
2023-08-29 15:57:11.347605-0400 Coach[79678:1965366] 10.14.0 - [GULReachability][I-REA902004] Network status has changed. Code:2, status:Connected
2023-08-29 15:57:11.347818-0400 Coach[79678:1965366] 10.14.0 - [FirebaseInAppMessaging][I-IAM150004] Persistent file path for fetch response data is /Users/ehyche/Library/Developer/CoreSimulator/Devices/7CC11059-AACC-4389-AA07-B096E13E2469/data/Containers/Data/Application/56F1EBE4-EACB-49B7-9127-0798E472E125/Library/Caches/firebase-iam-messages-cache
2023-08-29 15:57:11.348016-0400 Coach[79678:1965366] 10.14.0 - [FirebaseInAppMessaging][I-IAM150003] Local fetch storage file not existent yet: first time launch of the app.
2023-08-29 15:57:11.348209-0400 Coach[79678:1965366] 10.14.0 - [FirebaseInAppMessaging][I-IAM180002] Firebase In-App Messaging SDK version 10.14.0 finished startup in 0.574427 seconds with these settings: APIServer:firebaseinappmessaging.googleapis.com;ProjectNumber:598163023680; API_Key:AIzaSyDwf584WUQRMGc28TWk8edpRs6mqEu4rU8;Clearcut Server:play.googleapis.com; Fetch Minimal Interval:86400 seconds; Activity Logger Max:100; Foreground Display Trigger Minimal Interval:86400 seconds;
Clearcut strategy:min wait time in seconds:0;max wait time in seconds:0;failure backoff time in seconds:3600;batch send size:50;Global Firebase auto data collection enabled
2023-08-29 15:57:11.348412-0400 Coach[79678:1965366] 10.14.0 - [FirebaseInAppMessaging][I-IAM900014] No fetch epoch time detected in API response.
2023-08-29 15:57:11.348616-0400 Coach[79678:1965366] 10.14.0 - [FirebaseInAppMessaging][I-IAM900002] 0 message definitions were parsed out successfully and 0 messages are discarded
2023-08-29 15:57:11.348708-0400 Coach[79678:1965366] 10.14.0 - [FirebaseInAppMessaging][I-IAM160011] No analytics event trigger based messages, disable listening
2023-08-29 15:57:11.348792-0400 Coach[79678:1965366] 10.14.0 - [FirebaseInAppMessaging][I-IAM140003] Stop observing Firebase Analytics events for display check.
2023-08-29 15:57:11.348883-0400 Coach[79678:1965366] 10.14.0 - [FirebaseInAppMessaging][I-IAM160001] There are 0 test messages and 0 regular messages and 0 Firebase Analytics events to watch after resetting the message cache
2023-08-29 15:57:11.349012-0400 Coach[79678:1965366] 10.14.0 - [FirebaseInAppMessaging][I-IAM180001] Message loading from fetch storage was done.
2023-08-29 15:57:11.349134-0400 Coach[79678:1965366] 10.14.0 - [FirebaseInAppMessaging][I-IAM180014] No auto data collection enable setting entry detected.So no FIAM programmatic setting from the app.
2023-08-29 15:57:11.349233-0400 Coach[79678:1965366] 10.14.0 - [FirebaseInAppMessaging][I-IAM180018] No programmatic or plist setting at FIAM level. Fallback to global Firebase level setting.
2023-08-29 15:57:11.349590-0400 Coach[79678:1965366] 10.14.0 - [FirebaseInAppMessaging][I-IAM180008] Start SDK runtime components.
2023-08-29 15:57:11.349793-0400 Coach[79678:1965366] 10.14.0 - [FirebaseInAppMessaging][I-IAM600002] Start observing app foreground notifications for message fetching.
2023-08-29 15:57:11.350070-0400 Coach[79678:1965366] 10.14.0 - [FirebaseInAppMessaging][I-IAM140002] Start observing Firebase Analytics events for rendering messages.
2023-08-29 15:57:11.350305-0400 Coach[79678:1965366] 10.14.0 - [FirebaseInAppMessaging][I-IAM180020] Start regular display flow for non-testing instance mode
2023-08-29 15:57:11.350395-0400 Coach[79678:1965366] 10.14.0 - [FirebaseInAppMessaging][I-IAM500002] Start observing app foreground notifications for rendering messages.
2023-08-29 15:57:11.350498-0400 Coach[79678:1965366] 10.14.0 - [FirebaseInAppMessaging][I-IAM400005] Interval time from last display is 1693339031.322339 seconds
2023-08-29 15:57:11.350587-0400 Coach[79678:1965366] 10.14.0 - [FirebaseInAppMessaging][I-IAM400001] No appropriate in-app message detected for display.
2023-08-29 15:57:11.350687-0400 Coach[79678:1965366] 10.14.0 - [FirebaseInAppMessaging][I-IAM700005] Interval from last time fetch is 1693339031.322374 seconds
2023-08-29 15:57:11.350774-0400 Coach[79678:1965366] 10.14.0 - [FirebaseInAppMessaging][I-IAM700001] Go ahead to fetch messages
2023-08-29 15:57:11.350864-0400 Coach[79678:1965366] 10.14.0 - [FirebasePerformance][I-PRF300005] URL length exceeds limits, truncating recorded URL - https://api.mixpanel.com/decide.
2023-08-29 15:57:11.351013-0400 Coach[79678:1965366] 10.14.0 - [FirebasePerformance][I-PRF100009] Incrementing metric _fsapc to 0 on trace _fs
2023-08-29 15:57:11.351134-0400 Coach[79678:1965366] 10.14.0 - [FirebasePerformance][I-PRF100009] Logging trace metric - _as 645.3150ms. In a minute, visit the Firebase console to view your data: https://console.firebase.google.com/project/noom-ios-test/performance/app/ios:com.noom.wlc.test/troubleshooting/trace/DURATION_TRACE/_as?utm_source=perf-ios-sdk&utm_medium=ios-ide
2023-08-29 15:57:11.351288-0400 Coach[79678:1965366] 10.14.0 - [FirebaseAnalytics][I-ACS023087] User property set. Name, value: first_open_after_install (_fi), 1
2023-08-29 15:57:11.351379-0400 Coach[79678:1965366] 10.14.0 - [FirebaseAnalytics][I-ACS023087] User property set. Name, value: first_open_time (_fot), 1693339200000
2023-08-29 15:57:11.351484-0400 Coach[79678:1965366] 10.14.0 - [FirebaseAnalytics][I-ACS800015] Looking for activated flag. SDK name, flag name, activated snapshot: app_measurement, efficient_engagement_reporting_enabled, (nil)
2023-08-29 15:57:11.351652-0400 Coach[79678:1965366] 10.14.0 - [FirebaseAnalytics][I-ACS800016] Cannot find activated flag. Looking for launched flag. SDK name, flag name, launched flag: app_measurement, efficient_engagement_reporting_enabled, (nil)
2023-08-29 15:57:11.351756-0400 Coach[79678:1965366] 10.14.0 - [FirebaseAnalytics][I-ACS800019] Cannot find launched flag. Returned the default flag value. SDK name, flag name, default flag: app_measurement, efficient_engagement_reporting_enabled, 0
2023-08-29 15:57:11.440108-0400 Coach[79678:1965359] 10.14.0 - [FirebaseSessions][I-SES000000] Data Collection is enabled for at least one Subscriber
2023-08-29 15:57:11.440263-0400 Coach[79678:1965359] 10.14.0 - [FirebaseInstallations][I-FIS002000] -[FIRInstallationsIDController createGetInstallationItemPromise], appName: __FIRAPP_DEFAULT
2023-08-29 15:57:11.440370-0400 Coach[79678:1965359] 10.14.0 - [FirebasePerformance][I-PRF300005] URL length exceeds limits, truncating recorded URL - https://firebase-settings.crashlytics.com/spi/v2/platforms/ios/gmp/1:598163023680:ios:6a967e04f2048dc4/settings.
2023-08-29 15:57:11.440540-0400 Coach[79678:1965359] 10.14.0 - [FirebaseInstallations][I-FIS001001] Sending request: <NSMutableURLRequest: 0x60000254ca90> { URL: https://firebaseinstallations.googleapis.com/v1/projects/noom-ios-test/installations/ }, body:{"appId":"1:598163023680:ios:6a967e04f2048dc4","fid":"dkkOHiTK4UMJi3xLiusDmv","authVersion":"FIS_v2","sdkVersion":"i:10.14.0"}, headers: {
    "Content-Type" = "application/json";
    "X-Goog-Api-Key" = AIzaSyDwf584WUQRMGc28TWk8edpRs6mqEu4rU8;
    "X-Ios-Bundle-Identifier" = "com.noom.wlc.test";
    "X-firebase-client" = "H4sIAAAAAAAAE13QzW6DMAwA4FdBPjf8BFR13PsUSw8GnBEtkCj2ulVV332gVtOUoz__yPYdZsIkA6Ew9O93wA9aBXrAGD2p6FFsSIupXODiaTx9mkrXZ92edmEJiUxl0TMVE0Ufbqbib2clLlt8deOWxbQcu8K6RAoHMVVTl01X1i9Z0d_Ejfz09s-_ZM5KrcMlJ87nuZUFvc81cCaRks0ojRkwZV0DMqkxIc__d96zgdWVEruwbnYsu-JnDNN2e9OdtdYDHGBCof3LoGvdqvqk9BtcHpcDvPqg149f1tpXgpEBAAA";
}.
2023-08-29 15:57:11.444313-0400 Coach[79678:1965359] 10.14.0 - [FirebaseInstallations][I-FIS002000] -[FIRInstallationsIDController createGetInstallationItemPromise], appName: __FIRAPP_DEFAULT
2023-08-29 15:57:11.444494-0400 Coach[79678:1965359] 10.14.0 - [FirebaseSessions][I-SES000000] Logging events using fast QOS due to running on a simulator
2023-08-29 15:57:11.444641-0400 Coach[79678:1965359] 10.14.0 - [FirebaseSessions][I-SES000000] Successfully logged Session Start event to GoogleDataTransport
2023-08-29 15:57:11.444797-0400 Coach[79678:1965359] 10.14.0 - [FirebaseSessions][I-SES000000] Successfully logged Session Start event
2023-08-29 15:57:11.445014-0400 Coach[79678:1965359] 10.14.0 - [FirebasePerformance][I-PRF100009] Logging network request trace - https://api.mixpanel.com/decide, Response code: 200, 52.8920ms
2023-08-29 15:57:11.445333-0400 Coach[79678:1965359] 10.14.0 - [FirebaseInstallations][I-FIS002000] -[FIRInstallationsIDController createGetInstallationItemPromise], appName: __FIRAPP_DEFAULT
2023-08-29 15:57:11.445470-0400 Coach[79678:1965359] 10.14.0 - [FirebasePerformance][I-PRF100009] Logging network request trace - https://graph.facebook.com/v12.0, Response code: 200, 170.0480ms
2023-08-29 15:57:11.445631-0400 Coach[79678:1965359] 10.14.0 - [FirebaseInstallations][I-FIS002000] -[FIRInstallationsIDController createGetInstallationItemPromise], appName: __FIRAPP_DEFAULT
2023-08-29 15:57:11.445814-0400 Coach[79678:1965359] 10.14.0 - [FirebasePerformance][I-PRF100009] Logging network request trace - https://graph.facebook.com/v12.0, Response code: 200, 172.5610ms
2023-08-29 15:57:11.445967-0400 Coach[79678:1965359] 10.14.0 - [FirebaseInstallations][I-FIS002000] -[FIRInstallationsIDController createGetInstallationItemPromise], appName: __FIRAPP_DEFAULT
2023-08-29 15:57:11.490911-0400 Coach[79678:1965359] 10.14.0 - [FirebaseAnalytics][I-ACS023051] Logging event: origin, name, params: auto, first_open (_f), {
    ga_event_origin (_o) = auto;
    previous_first_open_count (_pfo) = 7;
    update_with_analytics (_uwa) = 0;
}
2023-08-29 15:57:11.491917-0400 Coach[79678:1965359] 10.14.0 - [FirebasePerformance][I-PRF100009] Logging network request trace - https://graph.facebook.com/v12.0, Response code: 200, 164.0170ms
2023-08-29 15:57:11.492290-0400 Coach[79678:1965359] 10.14.0 - [FirebaseInstallations][I-FIS002000] -[FIRInstallationsIDController createGetInstallationItemPromise], appName: __FIRAPP_DEFAULT
2023-08-29 15:57:11.492437-0400 Coach[79678:1965359] 10.14.0 - [FirebasePerformance][I-PRF300005] URL length exceeds limits, truncating recorded URL - https://graph.facebook.com/v12.0/256784477690977/model_asset.
2023-08-29 15:57:11.494627-0400 Coach[79678:1965359] 10.14.0 - [FirebasePerformance][I-PRF300005] URL length exceeds limits, truncating recorded URL - https://graph.facebook.com/v12.0/256784477690977/ios_skadnetwork_conversion_config.
2023-08-29 15:57:11.496388-0400 Coach[79678:1965359] 10.14.0 - [FirebasePerformance][I-PRF300005] URL length exceeds limits, truncating recorded URL - https://graph.facebook.com/v12.0/256784477690977/aem_conversion_configs.
2023-08-29 15:57:11.649984-0400 Coach[79678:1965365] 10.14.0 - [FirebasePerformance][I-PRF100009] Logging network request trace - https://graph.facebook.com/v12.0/256784477690977/model_asset, Response code: 200, 146.4710ms
2023-08-29 15:57:11.665883-0400 Coach[79678:1965365] 10.14.0 - [FirebaseInstallations][I-FIS002000] -[FIRInstallationsIDController createGetInstallationItemPromise], appName: __FIRAPP_DEFAULT
2023-08-29 15:57:11.666518-0400 Coach[79678:1965365] 10.14.0 - [FirebasePerformance][I-PRF100009] Logging network request trace - https://graph.facebook.com/v12.0/256784477690977/ios_skadnetwork_conversion_config, Response code: 200, 147.1600ms
2023-08-29 15:57:11.669533-0400 Coach[79678:1965365] 10.14.0 - [FirebaseInstallations][I-FIS002000] -[FIRInstallationsIDController createGetInstallationItemPromise], appName: __FIRAPP_DEFAULT
2023-08-29 15:57:11.671161-0400 Coach[79678:1965365] 10.14.0 - [FirebasePerformance][I-PRF100009] Logging network request trace - https://graph.facebook.com/v12.0/256784477690977/aem_conversion_configs, Response code: 200, 166.0850ms
2023-08-29 15:57:11.674558-0400 Coach[79678:1965365] 10.14.0 - [FirebaseInstallations][I-FIS002000] -[FIRInstallationsIDController createGetInstallationItemPromise], appName: __FIRAPP_DEFAULT
2023-08-29 15:57:11.678195-0400 Coach[79678:1965365] 10.14.0 - [FirebasePerformance][I-PRF100009] Logging network request trace - https://graph.facebook.com/v12.0/256784477690977/activities, Response code: 200, 168.3750ms
2023-08-29 15:57:11.679927-0400 Coach[79678:1965365] 10.14.0 - [FirebaseInstallations][I-FIS002000] -[FIRInstallationsIDController createGetInstallationItemPromise], appName: __FIRAPP_DEFAULT
2023-08-29 15:57:11.686225-0400 Coach[79678:1965365] 10.14.0 - [FirebaseAnalytics][I-ACS023072] Event logged. Event name, event params: first_open (_f), {
    ga_conversion (_c) = 1;
    ga_debug (_dbg) = 1;
    ga_event_origin (_o) = auto;
    ga_realtime (_r) = 1;
    previous_first_open_count (_pfo) = 7;
    update_with_analytics (_uwa) = 0;
}
2023-08-29 15:57:11.700820-0400 Coach[79678:1965365] 10.14.0 - [FirebaseAnalytics][I-ACS002002] Measurement timer scheduled to fire in approx. (s): 0.016274094581604
2023-08-29 15:57:11.725242-0400 Coach[79678:1965365] 10.14.0 - [FirebaseAnalytics][I-ACS023028] Upload task scheduled to be executed in approx. (s): 0.016274094581604
2023-08-29 15:57:11.725364-0400 Coach[79678:1965365] 10.14.0 - [FirebaseAnalytics][I-ACS023087] User property set. Name, value: ga_session_id (_sid), 1693339030
2023-08-29 15:57:11.725503-0400 Coach[79678:1965365] 10.14.0 - [FirebaseAnalytics][I-ACS023087] User property set. Name, value: ga_session_number (_sno), 1
2023-08-29 15:57:11.725653-0400 Coach[79678:1965365] 10.14.0 - [FirebaseAnalytics][I-ACS023051] Logging event: origin, name, params: auto, session_start (_s), {
    ga_event_origin (_o) = auto;
    session_id (_sid) = 1693339030;
    session_number (_sno) = 1;
}
2023-08-29 15:57:11.725778-0400 Coach[79678:1965365] 10.14.0 - [FirebaseAnalytics][I-ACS023073] Debug mode is enabled. Marking event as debug and real-time. Event name, parameters: session_start (_s), {
    ga_debug (_dbg) = 1;
    ga_event_origin (_o) = auto;
    ga_realtime (_r) = 1;
    session_id (_sid) = 1693339030;
    session_number (_sno) = 1;
}
2023-08-29 15:57:11.751349-0400 Coach[79678:1965365] 10.14.0 - [FirebaseAnalytics][I-ACS023072] Event logged. Event name, event params: session_start (_s), {
    ga_debug (_dbg) = 1;
    ga_event_origin (_o) = auto;
    ga_realtime (_r) = 1;
    session_id (_sid) = 1693339030;
    session_number (_sno) = 1;
}
2023-08-29 15:57:11.752561-0400 Coach[79678:1965365] 10.14.0 - [FirebaseAnalytics][I-ACS002003] Measurement timer canceled
2023-08-29 15:57:11.753133-0400 Coach[79678:1965365] 10.14.0 - [FirebaseAnalytics][I-ACS002002] Measurement timer scheduled to fire in approx. (s): -0.04550492763519287
2023-08-29 15:57:11.753463-0400 Coach[79678:1965365] 10.14.0 - [FirebaseAnalytics][I-ACS023028] Upload task scheduled to be executed in approx. (s): -0.04550492763519287
2023-08-29 15:57:11.753781-0400 Coach[79678:1965365] 10.14.0 - [FirebaseAnalytics][I-ACS800015] Looking for activated flag. SDK name, flag name, activated snapshot: app_measurement, redundant_engagement_removal_enabled, (nil)
2023-08-29 15:57:11.754076-0400 Coach[79678:1965365] 10.14.0 - [FirebaseAnalytics][I-ACS800016] Cannot find activated flag. Looking for launched flag. SDK name, flag name, launched flag: app_measurement, redundant_engagement_removal_enabled, (nil)
2023-08-29 15:57:11.755979-0400 Coach[79678:1965365] 10.14.0 - [FirebaseAnalytics][I-ACS800019] Cannot find launched flag. Returned the default flag value. SDK name, flag name, default flag: app_measurement, redundant_engagement_removal_enabled, 0
2023-08-29 15:57:11.757146-0400 Coach[79678:1965365] 10.14.0 - [FirebaseAnalytics][I-ACS800015] Looking for activated flag. SDK name, flag name, activated snapshot: app_measurement, efficient_engagement_reporting_enabled, (nil)
2023-08-29 15:57:11.757572-0400 Coach[79678:1965365] 10.14.0 - [FirebaseAnalytics][I-ACS800016] Cannot find activated flag. Looking for launched flag. SDK name, flag name, launched flag: app_measurement, efficient_engagement_reporting_enabled, (nil)
2023-08-29 15:57:11.757713-0400 Coach[79678:1965365] 10.14.0 - [FirebaseAnalytics][I-ACS800019] Cannot find launched flag. Returned the default flag value. SDK name, flag name, default flag: app_measurement, efficient_engagement_reporting_enabled, 0
2023-08-29 15:57:11.757882-0400 Coach[79678:1965365] 10.14.0 - [FirebaseAnalytics][I-ACS023051] Logging event: origin, name, params: auto, user_engagement (_e), {
    engagement_time_msec (_et) = 1;
    ga_event_origin (_o) = auto;
}
2023-08-29 15:57:11.758132-0400 Coach[79678:1965365] 10.14.0 - [FirebaseAnalytics][I-ACS023073] Debug mode is enabled. Marking event as debug and real-time. Event name, parameters: user_engagement (_e), {
    engagement_time_msec (_et) = 1;
    ga_debug (_dbg) = 1;
    ga_event_origin (_o) = auto;
    ga_realtime (_r) = 1;
}
2023-08-29 15:57:11.765854-0400 Coach[79678:1965356] 10.14.0 - [FirebaseAnalytics][I-ACS023072] Event logged. Event name, event params: user_engagement (_e), {
    engagement_time_msec (_et) = 1;
    ga_debug (_dbg) = 1;
    ga_event_origin (_o) = auto;
    ga_realtime (_r) = 1;
}
2023-08-29 15:57:11.767583-0400 Coach[79678:1965356] 10.14.0 - [FirebaseAnalytics][I-ACS002003] Measurement timer canceled
2023-08-29 15:57:11.767976-0400 Coach[79678:1965356] 10.14.0 - [FirebaseAnalytics][I-ACS002002] Measurement timer scheduled to fire in approx. (s): -0.08451592922210693
2023-08-29 15:57:11.768447-0400 Coach[79678:1965356] 10.14.0 - [FirebaseAnalytics][I-ACS023028] Upload task scheduled to be executed in approx. (s): -0.08451592922210693
2023-08-29 15:57:11.770752-0400 Coach[79678:1965356] 10.14.0 - [FirebaseAnalytics][I-ACS032006] Scheduling Search Ad Report timer
2023-08-29 15:57:11.772215-0400 Coach[79678:1965356] 10.14.0 - [FirebaseAnalytics][I-ACS002002] Search Ad campaign report alarm scheduled to fire in approx. (s): -1693252631.77064
2023-08-29 15:57:11.777455-0400 Coach[79678:1965356] 10.14.0 - [FirebaseAnalytics][I-ACS002003] Measurement timer canceled
2023-08-29 15:57:11.780473-0400 Coach[79678:1965356] 10.14.0 - [FirebaseAnalytics][I-ACS002002] Measurement timer scheduled to fire in approx. (s): -0.08854496479034424
2023-08-29 15:57:11.780850-0400 Coach[79678:1965356] 10.14.0 - [FirebaseAnalytics][I-ACS023028] Upload task scheduled to be executed in approx. (s): -0.08854496479034424
2023-08-29 15:57:11.781217-0400 Coach[79678:1965356] 10.14.0 - [FirebaseAnalytics][I-ACS002002] Engagement timer scheduled to fire in approx. (s): 3600
2023-08-29 15:57:11.781874-0400 Coach[79678:1965356] 10.14.0 - [FirebaseAnalytics][I-ACS023012] Analytics collection enabled
2023-08-29 15:57:11.782337-0400 Coach[79678:1965356] 10.14.0 - [FirebaseAnalytics][I-ACS002001] Search Ad campaign report alarm fired
2023-08-29 15:57:11.783246-0400 Coach[79678:1965356] 10.14.0 - [FirebaseAnalytics][I-ACS002003] Search Ad campaign report alarm canceled
2023-08-29 15:57:11.829543-0400 Coach[79678:1965366] 10.14.0 - [FirebasePerformance][I-PRF100009] Logging network request trace - https://firebase-settings.crashlytics.com/spi/v2/platforms/ios/gmp/1:598163023680:ios:6a967e04f2048dc4/settings, Response code: 200, 467.4770ms
2023-08-29 15:57:11.829791-0400 Coach[79678:1965366] 10.14.0 - [FirebaseInstallations][I-FIS002000] -[FIRInstallationsIDController createGetInstallationItemPromise], appName: __FIRAPP_DEFAULT
2023-08-29 15:57:12.042393-0400 Coach[79678:1965356] 10.14.0 - [FirebasePerformance][I-PRF100009] Logging network request trace - https://graph.facebook.com/v12.0/256784477690977/activities, Response code: 200, 519.3870ms
2023-08-29 15:57:12.043542-0400 Coach[79678:1965356] 10.14.0 - [FirebaseInstallations][I-FIS002000] -[FIRInstallationsIDController createGetInstallationItemPromise], appName: __FIRAPP_DEFAULT
2023-08-29 15:57:12.044705-0400 Coach[79678:1965356] 10.14.0 - [FirebaseInstallations][I-FIS001003] Request response received: <NSMutableURLRequest: 0x60000254ca90> { URL: https://firebaseinstallations.googleapis.com/v1/projects/noom-ios-test/installations/ }, error: (null), body: {
  "name": "projects/598163023680/installations/dkkOHiTK4UMJi3xLiusDmv",
  "fid": "dkkOHiTK4UMJi3xLiusDmv",
  "refreshToken": "3_AS3qfwLmIq2KPueVgXfA-g_JfhLjGaXzO0pS8NCWsqgqEGKbhEGSdBj1HzWFF6LaMHPxLgEimT_ZqH1CN9ienTqoDA18kAwtCjCFREOayPA1uw",
  "authToken": {
    "token": "eyJhbGciOiJFUzI1NiIsInR5cCI6IkpXVCJ9.eyJhcHBJZCI6IjE6NTk4MTYzMDIzNjgwOmlvczo2YTk2N2UwNGYyMDQ4ZGM0IiwiZXhwIjoxNjkzOTQzODMyLCJmaWQiOiJka2tPSGlUSzRVTUppM3hMaXVzRG12IiwicHJvamVjdE51bWJlciI6NTk4MTYzMDIzNjgwfQ.AB2LPV8wRAIhAJRrk7OOnwikE_vgHUEyYRAy8w5xTxi1oRyPI1JUN4UWAh9o5NK3RUm6mBwH0df8KMK1Dsm9onz4OaTEIho65Hus",
    "expiresIn": "604800s"
  }
}
.
2023-08-29 15:57:12.044856-0400 Coach[79678:1965356] 10.14.0 - [FirebasePerformance][I-PRF100009] Logging network request trace - https://firebaseinstallations.googleapis.com/v1/projects/noom-ios-test/installations/, Response code: 200, 669.5420ms
2023-08-29 15:57:12.050730-0400 Coach[79678:1965356] 10.14.0 - [FirebaseInstallations][I-FIS001005] Parsing server response for https://firebaseinstallations.googleapis.com/v1/projects/noom-ios-test/installations/.
2023-08-29 15:57:12.050876-0400 Coach[79678:1965356] 10.14.0 - [FirebaseInstallations][I-FIS001007] FIRInstallationsItem parsed successfully.
2023-08-29 15:57:12.050984-0400 Coach[79678:1965356] 10.14.0 - [FirebaseInstallations][I-FIS002000] -[FIRInstallationsIDController createGetInstallationItemPromise], appName: __FIRAPP_DEFAULT
2023-08-29 15:57:12.051083-0400 Coach[79678:1965356] 10.14.0 - [FirebaseInstallations][I-FIS002000] -[FIRInstallationsIDController createGetInstallationItemPromise], appName: __FIRAPP_DEFAULT
2023-08-29 15:57:12.051177-0400 Coach[79678:1965356] 10.14.0 - [FirebaseInAppMessaging][I-IAM190007] Successfully generated FIS token
2023-08-29 15:57:12.051262-0400 Coach[79678:1965356] 10.14.0 - [FirebaseInAppMessaging][I-IAM190007] Successfully generated FIS token
2023-08-29 15:57:12.051344-0400 Coach[79678:1965356] 10.14.0 - [FirebaseInstallations][I-FIS002001] -[FIRInstallationsIDController installationWithValidAuthTokenForcingRefresh:0], appName: __FIRAPP_DEFAULT
2023-08-29 15:57:12.051429-0400 Coach[79678:1965356] 10.14.0 - [FirebaseInAppMessaging][I-IAM190009] Successfully in fetching both FID as dkkOHiTK4UMJi3xLiusDmv and FIS token as eyJhbGciOiJFUzI1NiIsInR5cCI6IkpXVCJ9.eyJhcHBJZCI6IjE6NTk4MTYzMDIzNjgwOmlvczo2YTk2N2UwNGYyMDQ4ZGM0IiwiZXhwIjoxNjkzOTQzODMyLCJmaWQiOiJka2tPSGlUSzRVTUppM3hMaXVzRG12IiwicHJvamVjdE51bWJlciI6NTk4MTYzMDIzNjgwfQ.AB2LPV8wRAIhAJRrk7OOnwikE_vgHUEyYRAy8w5xTxi1oRyPI1JUN4UWAh9o5NK3RUm6mBwH0df8KMK1Dsm9onz4OaTEIho65Hus
2023-08-29 15:57:12.051528-0400 Coach[79678:1965356] 10.14.0 - [FirebaseInAppMessaging][I-IAM180017] Starting InAppMessaging runtime with Firebase Installation ID dkkOHiTK4UMJi3xLiusDmv
2023-08-29 15:57:12.051618-0400 Coach[79678:1965356] 10.14.0 - [FirebaseRemoteConfig][I-RCN000022] Success to get iid : dkkOHiTK4UMJi3xLiusDmv.
2023-08-29 15:57:12.051765-0400 Coach[79678:1965356] 10.14.0 - [FirebaseRemoteConfig][I-RCN000060] Fetch with user properties completed.
2023-08-29 15:57:12.051891-0400 Coach[79678:1965356] 10.14.0 - [FirebaseInAppMessaging][I-IAM190009] Successfully in fetching both FID as dkkOHiTK4UMJi3xLiusDmv and FIS token as eyJhbGciOiJFUzI1NiIsInR5cCI6IkpXVCJ9.eyJhcHBJZCI6IjE6NTk4MTYzMDIzNjgwOmlvczo2YTk2N2UwNGYyMDQ4ZGM0IiwiZXhwIjoxNjkzOTQzODMyLCJmaWQiOiJka2tPSGlUSzRVTUppM3hMaXVzRG12IiwicHJvamVjdE51bWJlciI6NTk4MTYzMDIzNjgwfQ.AB2LPV8wRAIhAJRrk7OOnwikE_vgHUEyYRAy8w5xTxi1oRyPI1JUN4UWAh9o5NK3RUm6mBwH0df8KMK1Dsm9onz4OaTEIho65Hus
2023-08-29 15:57:12.052001-0400 Coach[79678:1965356] 10.14.0 - [FirebaseInAppMessaging][I-IAM130001] Making a restful API request for pulling messages with fetch POST body as {
    "already_seen_campaigns" =     (
    );
    "client_signals" =     {
        "app_version" = "11.30.0";
        "language_code" = "en-US";
        "platform_version" = "16.4.0";
        "time_zone" = "America/New_York";
    };
    "requesting_client_app" =     {
        "app_instance_id" = dkkOHiTK4UMJi3xLiusDmv;
        "app_instance_id_token" = "eyJhbGciOiJFUzI1NiIsInR5cCI6IkpXVCJ9.eyJhcHBJZCI6IjE6NTk4MTYzMDIzNjgwOmlvczo2YTk2N2UwNGYyMDQ4ZGM0IiwiZXhwIjoxNjkzOTQzODMyLCJmaWQiOiJka2tPSGlUSzRVTUppM3hMaXVzRG12IiwicHJvamVjdE51bWJlciI6NTk4MTYzMDIzNjgwfQ.AB2LPV8wRAIhAJRrk7OOnwikE_vgHUEyYRAy8w5xTxi1oRyPI1JUN4UWAh9o5NK3RUm6mBwH0df8KMK1Dsm9onz4OaTEIho65Hus";
        "gmp_app_id" = "1:598163023680:ios:6a967e04f2048dc4";
    };
} and request headers as {
    Accept = "application/json";
    "Content-Type" = "application/json";
    "X-Ios-Bundle-Identifier" = "com.noom.wlc.test";
    "x-goog-firebase-installations-auth" = "eyJhbGciOiJFUzI1NiIsInR5cCI6IkpXVCJ9.eyJhcHBJZCI6IjE6NTk4MTYzMDIzNjgwOmlvczo2YTk2N2UwNGYyMDQ4ZGM0IiwiZXhwIjoxNjkzOTQzODMyLCJmaWQiOiJka2tPSGlUSzRVTUppM3hMaXVzRG12IiwicHJvamVjdE51bWJlciI6NTk4MTYzMDIzNjgwfQ.AB2LPV8wRAIhAJRrk7OOnwikE_vgHUEyYRAy8w5xTxi1oRyPI1JUN4UWAh9o5NK3RUm6mBwH0df8KMK1Dsm9onz4OaTEIho65Hus";
}
2023-08-29 15:57:12.052248-0400 Coach[79678:1965356] 10.14.0 - [FirebasePerformance][I-PRF300005] URL length exceeds limits, truncating recorded URL - https://firebaseinappmessaging.googleapis.com/v1/sdkServing/projects/598163023680/eligibleCampaigns:fetch.
2023-08-29 15:57:12.229481-0400 Coach[79678:1965367] 10.14.0 - [FirebasePerformance][I-PRF100009] Logging network request trace - https://graph.facebook.com/v12.0/256784477690977/activities, Response code: 200, 732.5000ms
2023-08-29 15:57:12.230272-0400 Coach[79678:1965367] 10.14.0 - [FirebaseInstallations][I-FIS002000] -[FIRInstallationsIDController createGetInstallationItemPromise], appName: __FIRAPP_DEFAULT
2023-08-29 15:57:12.230648-0400 Coach[79678:1965367] 10.14.0 - [FirebaseInstallations][I-FIS002001] -[FIRInstallationsIDController installationWithValidAuthTokenForcingRefresh:0], appName: __FIRAPP_DEFAULT
2023-08-29 15:57:12.600098-0400 Coach[79678:1965353] 10.14.0 - [FirebasePerformance][I-PRF100009] Logging network request trace - https://firebaseinappmessaging.googleapis.com/v1/sdkServing/projects/598163023680/eligibleCampaigns:fetch, Response code: 200, 558.5210ms
2023-08-29 15:57:12.600632-0400 Coach[79678:1965353] 10.14.0 - [FirebaseInAppMessaging][I-IAM130007] Fetch API response headers are {
    "Alt-Svc" = "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000";
    "Cache-Control" = private;
    "Content-Encoding" = gzip;
    "Content-Length" = 1011;
    "Content-Type" = "application/json; charset=UTF-8";
    Date = "Tue, 29 Aug 2023 19:57:12 GMT";
    Server = ESF;
    Vary = "Origin, X-Origin, Referer";
    "x-content-type-options" = nosniff;
    "x-frame-options" = SAMEORIGIN;
    "x-xss-protection" = 0;
}
2023-08-29 15:57:12.600862-0400 Coach[79678:1965353] 10.14.0 - [FirebaseInAppMessaging][I-IAM900014] No fetch epoch time detected in API response.
2023-08-29 15:57:12.600956-0400 Coach[79678:1965353] 10.14.0 - [FirebaseInstallations][I-FIS002000] -[FIRInstallationsIDController createGetInstallationItemPromise], appName: __FIRAPP_DEFAULT
2023-08-29 15:57:12.601055-0400 Coach[79678:1965353] 10.14.0 - [FirebaseInstallations][I-FIS002001] -[FIRInstallationsIDController installationWithValidAuthTokenForcingRefresh:0], appName: __FIRAPP_DEFAULT
2023-08-29 15:57:12.605940-0400 Coach[79678:1965353] 10.14.0 - [FirebaseInAppMessaging][I-IAM900002] 3 message definitions were parsed out successfully and 0 messages are discarded
2023-08-29 15:57:12.606148-0400 Coach[79678:1965353] 10.14.0 - [FirebaseInAppMessaging][I-IAM130012] API request for fetching messages and parsing the response was successful.
2023-08-29 15:57:12.606345-0400 Coach[79678:1965353] 10.14.0 - [FirebaseInAppMessaging][I-IAM700004] 3 messages were fetched successfully.
2023-08-29 15:57:12.611536-0400 Coach[79678:1965353] 10.14.0 - [FirebaseInAppMessaging][I-IAM150004] Persistent file path for fetch response data is /Users/ehyche/Library/Developer/CoreSimulator/Devices/7CC11059-AACC-4389-AA07-B096E13E2469/data/Containers/Data/Application/56F1EBE4-EACB-49B7-9127-0798E472E125/Library/Caches/firebase-iam-messages-cache
2023-08-29 15:57:12.612043-0400 Coach[79678:1965353] 10.14.0 - [FirebaseInAppMessaging][I-IAM270005] No impression records update due to no change after applying the server message list
2023-08-29 15:57:12.612181-0400 Coach[79678:1965353] 10.14.0 - [FirebaseInAppMessaging][I-IAM160010] There are analytics event trigger based messages, enable listening
2023-08-29 15:57:12.612301-0400 Coach[79678:1965353] 10.14.0 - [FirebaseInAppMessaging][I-IAM140002] Start observing Firebase Analytics events for rendering messages.
2023-08-29 15:57:12.612394-0400 Coach[79678:1965353] 10.14.0 - [FirebaseInAppMessaging][I-IAM160001] There are 0 test messages and 3 regular messages and 3 Firebase Analytics events to watch after resetting the message cache
2023-08-29 15:57:12.612489-0400 Coach[79678:1965353] 10.14.0 - [FirebaseInAppMessaging][I-IAM400005] Interval time from last display is 1693339032.592823 seconds
2023-08-29 15:57:12.612625-0400 Coach[79678:1965353] 10.14.0 - [FirebaseInAppMessaging][I-IAM400040] No appropriate in-app message detected for display.
2023-08-29 15:57:20.947571-0400 Coach[79678:1965356] 10.14.0 - [FirebaseAnalytics][I-ACS002001] APMExperimentAlarm fired
2023-08-29 15:57:20.954870-0400 Coach[79678:1965356] 10.14.0 - [FirebaseAnalytics][I-ACS002003] APMExperimentAlarm canceled
2023-08-29 15:57:20.955082-0400 Coach[79678:1965356] 10.14.0 - [FirebaseAnalytics][I-ACS002002] APMExperimentAlarm scheduled to fire in approx. (s): 14399.99530982971

// At this point, the Rx stream we have wrapped the RemoteConfig.fetch() call in times out.

If you look at just the Remote Config logs, then you see this:

2023-08-29 15:57:10.906992-0400 Coach[79678:1965366] 10.14.0 - [FirebaseRemoteConfig][I-RCN000062] Loading database at path /Users/ehyche/Library/Developer/CoreSimulator/Devices/7CC11059-AACC-4389-AA07-B096E13E2469/data/Containers/Data/Application/56F1EBE4-EACB-49B7-9127-0798E472E125/Library/Application Support/Google/RemoteConfig/RemoteConfig.sqlite3
2023-08-29 15:57:10.907999-0400 Coach[79678:1965366] 10.14.0 - [FirebaseRemoteConfig][I-RCN000072] New config database created. Resetting user defaults.
2023-08-29 15:57:10.908135-0400 Coach[79678:1965366] 10.14.0 - [FirebaseRemoteConfig][I-RCN000072] New config database created. Resetting user defaults.
2023-08-29 15:57:10.908295-0400 Coach[79678:1965366] 10.14.0 - [FirebaseRemoteConfig][I-RCN000067] Successfully set configSettings. Minimum Fetch Interval:0.000000, Fetch timeout:60.000000
2023-08-29 15:57:11.287646-0400 Coach[79678:1965367] 10.14.0 - [FirebaseRemoteConfig][I-RCN000066] Successfully read configSettings. Minimum Fetch Interval:0.000000, Fetch timeout: 60.000000
2023-08-29 15:57:11.287795-0400 Coach[79678:1965367] 10.14.0 - [FirebaseRemoteConfig][I-RCN000039] Starting requesting token.
2023-08-29 15:57:12.051618-0400 Coach[79678:1965356] 10.14.0 - [FirebaseRemoteConfig][I-RCN000022] Success to get iid : dkkOHiTK4UMJi3xLiusDmv.
2023-08-29 15:57:12.051765-0400 Coach[79678:1965356] 10.14.0 - [FirebaseRemoteConfig][I-RCN000060] Fetch with user properties completed.

So when I look at the code, I see this:

- (void)doFetchCall:(NSString *)fetchTypeHeader
          completionHandler:(FIRRemoteConfigFetchCompletion)completionHandler
    updateCompletionHandler:(RCNConfigFetchCompletion)updateCompletionHandler {
  [self getAnalyticsUserPropertiesWithCompletionHandler:^(NSDictionary *userProperties) {
    dispatch_async(self->_lockQueue, ^{
      [self fetchWithUserProperties:userProperties
                    fetchTypeHeader:fetchTypeHeader
                  completionHandler:completionHandler
            updateCompletionHandler:updateCompletionHandler];
    });
  }];
}

- (void)getAnalyticsUserPropertiesWithCompletionHandler:
    (FIRAInteropUserPropertiesCallback)completionHandler {
  FIRLogDebug(kFIRLoggerRemoteConfig, @"I-RCN000060", @"Fetch with user properties completed.");
  id<FIRAnalyticsInterop> analytics = self->_analytics;
  if (analytics == nil) {
    completionHandler(@{});
  } else {
    [analytics getUserPropertiesWithCallback:completionHandler];
  }
}

- (void)fetchWithUserProperties:(NSDictionary *)userProperties
                fetchTypeHeader:(NSString *)fetchTypeHeader
              completionHandler:(FIRRemoteConfigFetchCompletion)completionHandler
        updateCompletionHandler:(RCNConfigFetchCompletion)updateCompletionHandler {
  FIRLogDebug(kFIRLoggerRemoteConfig, @"I-RCN000061", @"Fetch with user properties initiated.");
  ...
}

So therefore, if the [analytics getUserPropertiesWithCallback:completionHandler] call returned correctly, then I should expect to see these two log messages in sequence:

I-RCN000060 "Fetch with user properties completed."
I-RCN000061 "Fetch with user properties initiated."

However, as you can see, we never see the 2nd log message. Therefore, I can only assume that the [analytics getUserPropertiesWithCallback:completionHandler] call never returns (i.e. - never calls the completionHandler).

Interestingly enough, if I kill the app (in this case by hitting Stop on the debugger) and then immediately restart, then everything progresses normally - fetch() returns correctly, etc.

@ehyche
Copy link

ehyche commented Aug 29, 2023

I would appreciate if this issue can be confirmed and if so, to know if there is any workaround.

@LauraLopezAragoneses
Copy link
Author

Hi! We found a fix for our issue moving all the Firebase pods and files to the app target. We were using it from another target.

@rizafran
Copy link
Contributor

That's great to hear, @LauraLopezAragoneses.

Hi @ehyche, may I know if the fix in #11738 (comment) also works for you? If not, then it's possible that your issue might be different with this issue. That said, could you file a new separate ticket for better tracking?

@ehyche
Copy link

ehyche commented Aug 31, 2023

@rizafran : we are already calling RemoteConfig.fetch() from our main app target, so the fix that @LauraLopezAragoneses mentions doesn't work for us. I will be glad to file a separate Github issue on this.

@rizafran rizafran closed this as completed Sep 4, 2023
@firebase firebase locked and limited conversation to collaborators Oct 5, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
4 participants