[docs] persistence
This commit is contained in:
parent
c53854cfc4
commit
dd0051b42d
|
@ -8,8 +8,8 @@ You can still however easily enable this natively for the default app instance:
|
||||||
|
|
||||||
#### Android
|
#### Android
|
||||||
|
|
||||||
Add `FirebaseDatabase.getInstance().setPersistenceEnabled(true);` inside your MainActivity.java onCreate() method.
|
Add `FirebaseDatabase.getInstance().setPersistenceEnabled(true);` inside your `MainActivity.java` files `onCreate()` method.
|
||||||
|
|
||||||
#### iOS
|
#### iOS
|
||||||
|
|
||||||
Add `[FIRDatabase database].persistenceEnabled = YES;` after the `[FIRApp configure];` line inside your `AppDelegate` `didFinishLaunchingWithOptions` method.
|
Add `[FIRDatabase database].persistenceEnabled = YES;` after the `[FIRApp configure];` line inside your `AppDelegate.m` files `didFinishLaunchingWithOptions` method.
|
||||||
|
|
Loading…
Reference in New Issue