Skip to content
FIRERUN.

The BaaS & deploy-platform newsroom for builders

Subscribe

Firebase

Firebase C++ and Unity Fix Dropped Database Writes, Break Old Builds

Add bcrypt, iphlpapi and secur32 to Windows link settings before upgrading the Firebase C++ or Unity SDK, or desktop builds fail to link.

Abstract flat-vector editorial illustration for "Firebase C++ and Unity Fix Dropped Database Writes, Break Old Builds"

Firebase’s C++ and Unity SDKs stopped silently dropping Realtime Database writes on desktop, but the same release swaps a six-year-old networking library and changes what Windows and macOS builds must link. Firebase C++ SDK 14.2.0, released Nov. 17, fixes writes that vanished when a request was an exact multiple of 16,384 bytes long, and moves the bundled libcurl from 7.73.0 to 8.23.0 (Firebase C++ SDK release notes, Nov. 17, 2026). The Unity SDK picked up the same changes in its 14.2.0 release on Nov. 19.

Key Takeaways

  • On desktop, a Realtime Database write whose serialized request was an exact multiple of 16,384 bytes was dropped without an error, and the request after it was corrupted. 14.2.0 fixes it.
  • Windows apps that link the desktop libraries must now also link bcrypt, iphlpapi and secur32. macOS apps must link the SystemConfiguration framework.
  • Desktop REST and WebSocket connections now always verify the peer and hostname, require TLS 1.2 or newer and check certificates against the OS trust store.
  • Builds that bring their own libcurl through CURL_SOURCE_DIR need libcurl 8.14.0 or newer, built with WebSocket support.

What Changed

The write bug sat in the desktop Realtime Database transport. Firebase’s release notes say writes were “silently dropped, and the following request corrupted” when the serialized request hit an exact multiple of 16,384 bytes.

The fix came with a rewrite. The desktop Realtime Database dropped its uWebSockets and libuv transport for libcurl’s own WebSocket support, with one event-driven thread per connection. Windows apps no longer need psapi or userenv for the database, and its connections now honor the same proxy variables (https_proxy, all_proxy, no_proxy) as the REST transport.

The libcurl jump is the other half. Version 7.73.0 dates to October 2020, according to the curl project’s release history, so desktop Firebase builds had been shipping a networking stack six years behind. The new one pulls in Windows and macOS system libraries the old one didn’t, which is why the link settings change.

TLS is now one policy across REST and WebSocket traffic, including the hop to an HTTPS proxy. On Linux, the SDK finds the CA bundle at runtime instead of using the path from the machine it was built on. The release notes say that fixes CURLE_SSL_CACERT_BADFILE failures on RHEL, Fedora and openSUSE, and that CURL_CA_BUNDLE, SSL_CERT_FILE and SSL_CERT_DIR are honored if set before the first request.

The Unity release adds a change of its own: managed assemblies are now built as AnyCPU instead of x86, so they load in 64-bit CoreCLR runtimes such as Unity 7. The two releases also let the desktop App Check debug provider read CLI-provisioned debug tokens and fix an iOS crash when Unity listens to TokenChanged.

This follows the 14.1.0 release on Oct. 23, which removed the compromised eMudhra root certificates from Firestore’s embedded trust store.

The Take

The dropped-write fix alone is reason to upgrade. An app that writes payloads of varying size would hit the bug only now and then, with no error to log, and the garbled request after it makes the cause harder to trace. App-side retry logic can’t catch a write the client thinks it sent.

Plan the upgrade as a build change, not a version bump. Add the three Windows libraries and the macOS framework to the link settings first, or the desktop target will fail to link. Then test anything that reaches Firebase through a corporate proxy or a TLS-inspecting firewall: with verification always on, a proxy certificate the OS doesn’t trust ends the connection. If the desktop build sets its own CA bundle, check that it sets the environment variables before the first Firebase request.

Mobile-only Unity and C++ apps get the iOS and Android fixes but none of the desktop link changes.

Stay in the loop

Get new articles in your inbox

We'll only email you when a new article drops. Unsubscribe anytime.