[docs] persistence

This commit is contained in:
Salakar 2017-10-04 20:14:57 +01:00
parent c53854cfc4
commit dd0051b42d
1 changed files with 2 additions and 2 deletions

View File

@ -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.