Skip to content

Parity of response format between ios and android #119

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

Merged
merged 5 commits into from
Nov 9, 2016
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Catch exception thrown by setPersistenceEnabled which was causing the…
… rn app to fail
  • Loading branch information
chaitanya-bhagavan committed Nov 8, 2016
commit 972b16d27d83791db5ff66f043bab883d9270762
1 change: 1 addition & 0 deletions android/.idea/gradle.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -304,8 +304,12 @@ public String getName() {
public void enablePersistence(
final Boolean enable,
final Callback callback) {
FirebaseDatabase.getInstance()
try {
FirebaseDatabase.getInstance()
.setPersistenceEnabled(enable);
} catch (Throwable t) {
Log.e(TAG, "FirebaseDatabase setPersistenceEnabled exception", t);
}

WritableMap res = Arguments.createMap();
res.putString("status", "success");
Expand Down