Skip to content
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

users are not found #9

Open
moh1122 opened this issue Oct 5, 2018 · 3 comments
Open

users are not found #9

moh1122 opened this issue Oct 5, 2018 · 3 comments

Comments

@moh1122
Copy link

moh1122 commented Oct 5, 2018

Hello
the project is very well developed but the i cant find any users i have enabled the database {
"rules": {
".read": true,
".write": true
}
}
and
userInformationRef.keepSynced(true)
registeredUsernamesRef.keepSynced(true)
reportedUsersRecordRef.keepSynced(true)
are in AuthController.swift but still cant see any users can you please help me
thank you

@joelrorseth
Copy link
Owner

Hi! Are you running the app on your own Firebase database, and have you downloaded your GoogleService-Info.plist? It sounds like you are, if you are setting the rules from the Firebase side.

Here are the exact rules I have set on the Firebase console. Let me know if these work for you:

{
  "rules": {
    "registeredUsernames": {
      ".read": true,
      ".write": true
    },
    "userInformation": {
      ".read": true,
      ".write": true
    },
    "conversations": {
      ".read": "auth != null",
      ".write": "auth != null"
    },
    "userConversationList": {
      ".read": "auth != null",
      ".write": "auth != null"
    },
    "userInactiveConversations": {
      ".read": "auth != null",
      ".write": "auth != null"
    },
    "reportedUsersRecord": {
      ".read": "auth != null",
      ".write": "auth != null"
    }
  }
}

@moh1122
Copy link
Author

moh1122 commented Oct 10, 2018

Hello
Thank you for your reply
well i added the rules in the firebase console but still. i cant see the users?
image

image

@moh1122
Copy link
Author

moh1122 commented Oct 17, 2018

Hello @joelrorseth where you able to check what I sent before
Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants