How to integrate firebase in cocos creator 2d

I want to integrate firebase into cocos creator , is there any possibilities to do it ?
I want to avoid doing it into android

AFAIK, if you are targeting an Android release, there is no other option than setup the C++ version of the library directly on the Android Studio project and setup JSB reflections to call them between the TypeScript codebase and the Java/C++ scope.

If you are targeting web platforms, then you can try to setup the JS sdk, but that will not work over Native builds (Android, IOS, Desktop, etc…)