[docs][core] persistence on dynamically created apps
This commit is contained in:
parent
658821a631
commit
77e5085a85
@ -30,6 +30,9 @@ const iosConfig = {
|
|||||||
storageBucket: 'x',
|
storageBucket: 'x',
|
||||||
messagingSenderId: 'x',
|
messagingSenderId: 'x',
|
||||||
projectId: 'x',
|
projectId: 'x',
|
||||||
|
|
||||||
|
// enable persistence by adding the below flag
|
||||||
|
persistence: true,
|
||||||
};
|
};
|
||||||
|
|
||||||
// pluck values from your `google-services.json` file you created on the firebase console
|
// pluck values from your `google-services.json` file you created on the firebase console
|
||||||
@ -41,6 +44,9 @@ const androidConfig = {
|
|||||||
storageBucket: 'x',
|
storageBucket: 'x',
|
||||||
messagingSenderId: 'x',
|
messagingSenderId: 'x',
|
||||||
projectId: 'x',
|
projectId: 'x',
|
||||||
|
|
||||||
|
// enable persistence by adding the below flag
|
||||||
|
persistence: true,
|
||||||
};
|
};
|
||||||
|
|
||||||
const kittensApp = firebase.initializeApp(
|
const kittensApp = firebase.initializeApp(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user