Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Assign remoteConfig on firebase instance #1129

Open
dancixx opened this issue Aug 15, 2021 · 0 comments
Open

Assign remoteConfig on firebase instance #1129

dancixx opened this issue Aug 15, 2021 · 0 comments

Comments

@dancixx
Copy link

dancixx commented Aug 15, 2021

I have imported the remote-config module from firebase and call after the initialize method, but I don't have access to remoteConfig method when I try to use useFirebase. Do you have any idea what can be wrong?

// core imports
import firebase from 'firebase/app';
import 'firebase/firestore';
import 'firebase/database';
import 'firebase/auth';
import 'firebase/storage';
import 'firebase/functions';
import 'firebase/remote-config';


interface ConfigProps {
    apiKey: string;
    authDomain: string;
    databaseURL: string;
    projectId: string;
    storageBucket: string;
    messagingSenderId: string;
    appId: string;
}

firebase.initializeApp(config);
firebase.remoteConfig()
firebase.functions()
firebase.firestore().settings({ experimentalForceLongPolling: true });

export default firebase;
@dancixx dancixx changed the title Assing remoteConfig on firebase instance Assign remoteConfig on firebase instance Aug 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant