📜  firebase persistence enable android - 任何代码示例

📅  最后修改于: 2022-03-11 14:56:43.441000             🧑  作者: Mango

代码示例1
//In android manifest inside 
android:name=".FireBaseApp"

public class FireBaseApp extends Application {
    @Override
    public void onCreate() {
        super.onCreate();
        /* enable Disk persistence */
        FirebaseDatabase.getInstance().setPersistenceEnabled(true);
    }
}