Hi @Faisal,
So that depends on how you structured your code. Usually that involves exporting a module which is then made a global object for other scripts to call.
If you do that and load the bundle .js to your project, you will be able to call it from any PlayCanvas or other JS script included with your project.
That’s the meaning of attaching them in the window object above:
// Initialize Firebase
window.firebaseModule = {
app: initializeApp(firebaseConfig),
analytics: getAnalytics(app)
};
You can then call it like this:
window.firebaseModule.app;
// or even shorter
firebaseModule.app;
firebaseModule.analytics;