Problem in using one signal

when I add my OneSignal app Id in the project settings the app refuses to open..
any help?

Did you try following this guide?

Hi Mohamed,

Do you not get any error?

yes but this guide does not contain How to coordinate between Firebase logging using firebase auth and OneSignal

hi, if I put one signal call for permisson block in the first step in screen 1 it works but the firebase auth after that does not work to check the user signed in or no and this error appears
Runtime Error

Attempt to invoke virtual method ‘com m.google.firebase.auth.FirebaseUser com.google.firebase.auth.FirebaseAuth.getCurrentUser()’ on a null object reference

and If I put the auth first the app refuses to open..
I don’t want to place the notification permission request on the first page; I only want the first page to be for checking login status via Firebase.

Then add it on another screen simple

If I put firebase logging blocks before one signal the app refuse to open at all regardless of which page it is and If I put one signal step first this error come after that when I try to logging with firebase
the error
Attempt to invoke virtual method ‘com m.google.firebase.auth.FirebaseUser com.google.firebase.auth.FirebaseAuth.getCurrentUser()’ on a null object reference

Have you tried it and still gives the same error?

Yes same error.

Make it like this,

Make your sign up/in methods, the add a button where user will be asked to activate pushing notifications separately

I did that but the app refuse to open as well.. if I did not made one signal step before logging the app refuse to launch.

Can I have a look at your aia If you don’t mind

Not solved.
I think there is a conflict between Onesignal and firebase authentication
can anyone help?

I tested an app with Firebase Authentication alone and it worked. But when I add OneSignal, Firebase Authentication stops working. Is there a solution to make both components work together?

Maybe you want to use web component like this video

1 Like

think you numan :grinning_face:

but I want to use google sign in