From af15a8ba0b63ba54ea2c9c42526b964b323bf619 Mon Sep 17 00:00:00 2001 From: chonghorizons <36284839+chonghorizons@users.noreply.github.com> Date: Thu, 9 Apr 2020 11:33:45 -0400 Subject: [PATCH] Realtime Database no longer has "test mode" Fixed my bug reprot/issue #41. Have to manually change the RealtimeDatabase Rules. Not the cloud_firestore rules. (console.firebase.google.com has changed and deprecated/stopped promoting realtimeDatabase. (I might try to rewrite this to use cloud_firestore since I'll be doing that for my project today, anyway.) Also, small edit to the README.MD on the SHA1 key based on Issue #40. --- README.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 5fad6a0..fb1cbda 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,11 @@ MemeChat contains platform-specific elements for Android and iOS. - Click the "sign-in method" tab - Click "anonymous" and enable it - Click "Google" and enable it -4. Next, click "Database" in the left-hand menu. Create a real-time database and start in test mode. Click "Enable". +4. Next, click "Database" in the left-hand menu. Create a real-time database. Click "Enable". + > Note: The default database is `Cloud Firestore` which is not the one you want. You need to setup the `Realtime Database` from the dropdown. +![RealtimeDatabase setting is hidden](https://user-images.githubusercontent.com/36284839/78911054-c6899100-7a53-11ea-92aa-2e1e25361131.png "RealtimeDatabase setting is hidden") + + > Go to the rules and modify them intelligently. For testing, you can change both read and write to `true`, but [don't leave these lax settings on forever](https://firebase.google.com/docs/database/security). 5. Finally, click "Storage" in the left-hand menu. Enable it. ## Android Setup @@ -23,6 +27,8 @@ MemeChat contains platform-specific elements for Android and iOS. keytool -exportcert -list -v \ -alias androiddebugkey -keystore ~/.android/debug.keystore ``` +OR +```keytool -list -v -keystore ~/.android/debug.keystore -alias androiddebugkey -storepass android -keypass android``` 4. In the Firebase console, in the settings of your Android app, add your SHA-1 key by clicking "Add Fingerprint". ## iOS Setup