You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have just upgraded from firebase 20.3.0 to 21.7.4. Now on my iPhone X iOS 16.7 when I turn wifi off then turn it back on both database methods on and once hang indefinitely. I needed to upgrade to 21.7.4 in order to build on xcode 16.2 (are you seeing this requirement as well?). 20.3.0 is working great in production.
This is happening on the dev version of my production react-native(v0.74.5) app. I have also reproduced this on a fresh react-native(v0.77.0) with only firebase/app and firebase/database packages added.
This is happening with Namespaced and Modular queries. Also occurs in debug and release build.
Xcode logs the following after turning back on wifi and making a query:
[[FirebaseDatabase]] 11.8.1 - [FirebaseDatabase][I-RDB083016] Error sending web socket data: Error Domain=NSPOSIXErrorDomain Code=57 "Socket is not connected" UserInfo={NSErrorFailingURLStringKey=wss://s-usc1a-nss-2008.firebaseio.com/.ws?v=5&ns=database-test-5860a-default-rtdb, NSErrorFailingURLKey=wss://s-usc1a-nss-2008.firebaseio.com/.ws?v=5&ns=database-test-5860a-default-rtdb}.
Let me know if you need any more information. Thank you for your attention on this.
# Resolve react_native_pods.rb with node to allow for hoistingrequirePod::Executable.execute_command('node',['-p','require.resolve( "react-native/scripts/react_native_pods.rb", {paths: [process.argv[1]]}, )',__dir__]).stripplatform:ios,min_ios_version_supportedprepare_react_native_project!linkage=ENV['USE_FRAMEWORKS']iflinkage != nilPod::UI.puts"Configuring Pod with #{linkage}ally linked Frameworks".greenuse_frameworks!:linkage=>linkage.to_symend
$RNFirebaseAsStaticFramework =truetarget'AwesomeProject'doconfig=use_native_modules!use_react_native!(:path=>config[:reactNativePath],# An absolute path to your application root.:app_path=>"#{Pod::Config.instance.installation_root}/..")post_installdo |installer|
# https://github.com/facebook/react-native/blob/main/packages/react-native/scripts/react_native_pods.rb#L197-L202react_native_post_install(installer,config[:reactNativePath],:mac_catalyst_enabled=>false,# :ccache_enabled => true)endend
AppDelegate.swift:
Note that I have tried this with Objective C AppDelegate.mm
import UIKit
import React
import React_RCTAppDelegate
import ReactAppDependencyProvider
import Firebase
@main
class AppDelegate: RCTAppDelegate {
override func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey : Any]? = nil) -> Bool {
FirebaseApp.configure()
self.moduleName = "AwesomeProject"
self.dependencyProvider = RCTAppDependencyProvider()
// You can add your custom initial props in the dictionary below.// They will be passed down to the ViewController used by React Native.
self.initialProps = [:]
return super.application(application, didFinishLaunchingWithOptions: launchOptions)
}
override func sourceURL(for bridge: RCTBridge) -> URL? {
self.bundleURL()
}
override func bundleURL() -> URL? {
#if DEBUG
RCTBundleURLProvider.sharedSettings().jsBundleURL(forBundleRoot: "index")
#else
Bundle.main.url(forResource: "main", withExtension: "jsbundle")
#endif
}
}
This is not something that is in our control unfortunately so I'm going to close this but I encourage you to subscribe to the upstream issues that are of interest and/or the repo releases notification of firebase-ios-sdk if that is of interest. We will adopt that SDK internally and release it almost immediately after it comes out
Issue
Describe your issue here
I have just upgraded from firebase 20.3.0 to 21.7.4. Now on my iPhone X iOS 16.7 when I turn wifi off then turn it back on both database methods
on
andonce
hang indefinitely. I needed to upgrade to 21.7.4 in order to build on xcode 16.2 (are you seeing this requirement as well?). 20.3.0 is working great in production.This is happening on the dev version of my production react-native(v0.74.5) app. I have also reproduced this on a fresh react-native(v0.77.0) with only firebase/app and firebase/database packages added.
This is happening with Namespaced and Modular queries. Also occurs in debug and release build.
Xcode logs the following after turning back on wifi and making a query:
Let me know if you need any more information. Thank you for your attention on this.
Project Files
Javascript
Click To Expand
package.json
:iOS
Click To Expand
ios/Podfile
:AppDelegate.swift
:Note that I have tried this with Objective C AppDelegate.mm
Environment
Click To Expand
react-native info
output:react-native-firebase
versions"@react-native-firebase/app": "^21.10.1",
"@react-native-firebase/database": "^21.10.1",
TypeScript
"typescript": "5.0.4"
React Native Firebase
andInvertase
on Twitter for updates on the library.The text was updated successfully, but these errors were encountered: