Firebase Authentication not working when OneSignal / FCM is used in same project

Hi everyone,
I’m facing a strange issue in Kodular and I need some help.

In my project, when I use the OneSignal component, it works fine. However, Firebase Authentication stops working completely.

I tested a few scenarios:

  • Using OneSignal + Firebase Authentication → OneSignal works, but Firebase Auth does not work
  • Removing OneSignal → Firebase Auth works again
  • Using Firebase Cloud Messaging (instead of OneSignal) → same issue happens (Firebase Auth still doesn’t work)

So it seems like whenever I use any notification system (OneSignal or Firebase Cloud Messaging), Firebase Authentication stops working.

Also, due to recent Kodular updates, Firebase Realtime Database is not working properly without Firebase Authentication, which makes things more difficult.

What I need:

  • A way to use both Firebase Authentication and OneSignal in the same app without conflicts
  • Or a proper setup/solution if I’m doing something wrong
  • If this is not possible, then please suggest an alternative way to send push notifications without using OneSignal or Firebase Cloud Messaging

Any help or guidance would be really appreciated. Thanks in advance!

Yeah, its probably a bug. Firebase (FB) isn;t working with onesignal(OS) component. Also, if you remove FB authentication then probably FB RTDB also will not work. The only way to get OS to work is to use Web component for authentication. Below are the blocks:

.URL = https://identitytoolkit.googleapis.com/v1/accounts:signInWithPassword?key=API_KEY

This is for LOGIN. Let me know if you need block for SIGNUP as well or follow firebase doc.

The main issue here is not that. The actual problem is that, according to Kodular’s new update, in order to use the Firebase Realtime Database component, it is now mandatory to use Kodular’s Firebase Authentication as well.

But if we follow the method you showed, then the Firebase Realtime Database will no longer work properly. Basically, I do not need authentication — I only need Firebase Realtime Database and OneSignal. However, due to Kodular’s new update, Authentication has become required in order to use the Realtime Database component.

Fcm or OneSignal extension, whichever works with these two components.

None of the options seem to work properly with Firebase Authentication. No matter whether I use FCM or a OneSignal extension, Firebase Authentication stops working after integration. Because of the recent Kodular update, if Firebase Authentication fails, Firebase Realtime Database also stops functioning.

So I’m looking for an FCM or OneSignal solution that works properly alongside both Firebase Authentication and Realtime Database without breaking them.

Which extensions?

I have tried using Kodular’s OneSignal notification component, DeepHost’s OneSignal extension, and OneSignal Auth extension, but I still faced issues.

Here is how you can use the web component in replacement of FB RTDB:

set web1.URL to https://xxxxXXXxx.firebaseio.com/PATH.json

Let me know if you need help in blocks.

Yes, they wont work. I have tried that as well.

That explains.

Both of my push extensions (FCM and OneSignalPush) have zero class conflicts with other extensions/components.

Please translate to English, our community language
Taifun

What I want to know is if there is already any push notification extension that works with the new RTDB component and Firebase Authentication together in the same project?"

If this extension really works, then I will buy it.

You can ask @Joao_renilson

Do you have a trial version of this extension? I’d like to test it first. If it works properly, I’ll buy it right away.

Unfortunately there is no trial version.

Okay, then will it work properly with Firebase Realtime Database, Firebase Authentication, and Firebase Storage?

Yes. All the conflicting classes have been renamed except some interfaces. These are provided by firebase authentication sdk so you’ll get two versions of extension. One has kodular suffix and is meant to be used only when auth component is there in the project.