Questions on Native Extensions

I was wanting to port firebase’s sdk to defold but from looking at

It seems native extensions can’t be written in swift or kotlin, and I was wondering when (if ever) that might be changed.

Why would you need Swift or Kotlin? Firebase exist both as a pure C++ lib and as a Java+Objective C lib.

Which parts of Firebase do you plan to use?

1 Like

sorry! I was using haxe for a bit before coming over here does the pure C++ work on both android and ios though?

and for what I was planning to use, fcm for notifications, remote config, and some anylitics if possible.

Yes, ofcourse: Add Firebase to your C++ project  |  Firebase for C++

Defold has built in support for local and remote notifications: iOS and Android push notifications in Defold

We are currently using Google Cloud Messaging but we plan to migrate to Firebase before GCM gets deprecated.

I started working on a Firebase extension for Analytics a while back. It’s working properly on Android but needs more work on iOS. I had to pause continued development since more pressing matters came up.

You can find the extension here: GitHub - defold/extension-firebase: Firebase is Google's mobile platform that helps you quickly develop high-quality apps and grow your business. This repository contains the core components required by the various products included in Firebase. It is not intended for use on its own

2 Likes

thanks for the info and links! I think that’ll work for me. If I come across something I have to add to the extension are pr’s welcomed?

2 Likes

Yes, PR or create an issue.