# Firebase extensions update (remove C++ SDK)

**URL:** <https://forum.defold.com/t/firebase-extensions-update-remove-c-sdk/75704>\
**Category:** The Defoldmine\
**Created:** [January 18, 2024, 10:49am UTC](https://forum.defold.com/t/firebase-extensions-update-remove-c-sdk/75704 "2024-01-18T10:49:02Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![AGulev](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/agulev/32/4541_2.png) [@AGulev](https://forum.defold.com/u/AGulev)\
**Post date:** [January 18, 2024, 10:49am UTC](https://forum.defold.com/t/firebase-extensions-update-remove-c-sdk/75704/1 "2024-01-18T10:49:02Z")

</div>

All three Firebase extensions have been updated to the latest version.  
Additionally, the Firebase C++ SDK was removed from the extensions, and now the extension directly supports Android and iOS.

The API has changed, making this a breaking update. Please pay attention to the example before updating.

> **[Release Remove FIR cpp SDK · defold/extension-firebase](https://github.com/defold/extension-firebase/releases/tag/2.0.0)**
>
> Firebase CPP SDK was removed from the extension, and now the extension uses iOS and Android SDKs directly.
> BREAKING CHANGES in API:
> 
> Now firebase uses one callback for all the async event that can ...

> **[Release Remove FIR cpp SDK · defold/extension-firebase-analytics](https://github.com/defold/extension-firebase-analytics/releases/tag/3.0.0)**
>
> Firebase CPP SDK was removed from the extension, and now the extension uses iOS and Android SDKs directly.
> BREAKING CHANGES in API:
> 
> Now firebase.analytics uses one callback for all the async event...

> **[Release Remove FIR cpp SDK · defold/extension-firebase-remoteconfig](https://github.com/defold/extension-firebase-remoteconfig/releases/tag/2.0.0)**
>
> Firebase CPP SDK was removed from the extension, and now the extension uses iOS and Android SDKs directly.
> BREAKING CHANGES in API:
> 
> Now firebase.remoteconfig uses one callback for all the async ev...

Special thanks to @Sippul79 for doing most of the work.

---

<div class="post-metadata">

**Author:** ![AarrrBee](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/aarrrbee/32/24978_2.png) [@AarrrBee](https://forum.defold.com/u/AarrrBee)\
**Post date:** [January 18, 2024, 11:10am UTC](https://forum.defold.com/t/firebase-extensions-update-remove-c-sdk/75704/2 "2024-01-18T11:10:44Z")

</div>

Im curious, what was the motivation for moving away from the C++ SDK?  
I was hoping in future to be able to [use the C++ SDK on desktop](https://github.com/defold/extension-firebase/issues/8) (Windows / Mac) for testing, as right now our game behaves quite differently on Android/iOS because it fetches different values from Remote Config.

See [NE library link order](https://forum.defold.com/t/ne-library-link-order/72814) for more context

---

<div class="post-metadata">

**Author:** ![AGulev](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/agulev/32/4541_2.png) [@AGulev](https://forum.defold.com/u/AGulev)\
**Post date:** [January 18, 2024, 12:06pm UTC](https://forum.defold.com/t/firebase-extensions-update-remove-c-sdk/75704/3 "2024-01-18T12:06:24Z")

</div>

- It’s easier to maintain (updating the SDK version in the gradle/podfile is straightforward).
- It has fewer issues, or at least we can fix them ourselves.  
(also, smaller size and less external deps, but these aren’t so important)

Using the C++ SDK, I patched our extension to workaround an issue related to thread attachment on Android. Additionally, @Sippul79 reported an issue with RemoteConfig and deadlock in some cases. There were also issues with the compilation of C++ SDK lib on certain compiler versions, etc.

---

<div class="post-metadata">

**Author:** ![AGulev](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/agulev/32/4541_2.png) [@AGulev](https://forum.defold.com/u/AGulev)\
**Post date:** [January 18, 2024, 12:18pm UTC](https://forum.defold.com/t/firebase-extensions-update-remove-c-sdk/75704/4 "2024-01-18T12:18:38Z")

</div>

I think the current implementation should work on Mac, because ObjC lib isn’t iOS only, but more like “Apple platforms SDK”. If it’s something you are interested in, create a ticket for it, I’ll take a look.

---

<div class="post-metadata">

**Author:** ![AarrrBee](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/aarrrbee/32/24978_2.png) [@AarrrBee](https://forum.defold.com/u/AarrrBee)\
**Post date:** [January 19, 2024, 9:30am UTC](https://forum.defold.com/t/firebase-extensions-update-remove-c-sdk/75704/5 "2024-01-19T09:30:10Z")

</div>

Thanks. Should I create an issue in all of the firebase repos where it might be applicable, or is it sufficient to create one in extension-firebase?

---

<div class="post-metadata">

**Author:** ![AGulev](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/agulev/32/4541_2.png) [@AGulev](https://forum.defold.com/u/AGulev)\
**Post date:** [January 19, 2024, 9:33am UTC](https://forum.defold.com/t/firebase-extensions-update-remove-c-sdk/75704/6 "2024-01-19T09:33:48Z")

</div>

You can create just one in the Firebase repo, I’ll add support for all of them
