{"action":"created","issue":{"url":"https://api.github.com/repos/firebase/firebase-js-sdk/issues/703","repository_url":"https://api.github.com/repos/firebase/firebase-js-sdk","labels_url":"https://api.github.com/repos/firebase/firebase-js-sdk/issues/703/labels{/name}","comments_url":"https://api.github.com/repos/firebase/firebase-js-sdk/issues/703/comments","events_url":"https://api.github.com/repos/firebase/firebase-js-sdk/issues/703/events","html_url":"https://github.com/firebase/firebase-js-sdk/issues/703","id":315593999,"number":703,"title":"Expo and Firestore security rules","user":{"login":"kusaeva","id":5486933,"avatar_url":"https://avatars1.githubusercontent.com/u/5486933?v=4","gravatar_id":"","url":"https://api.github.com/users/kusaeva","html_url":"https://github.com/kusaeva","followers_url":"https://api.github.com/users/kusaeva/followers","following_url":"https://api.github.com/users/kusaeva/following{/other_user}","gists_url":"https://api.github.com/users/kusaeva/gists{/gist_id}","starred_url":"https://api.github.com/users/kusaeva/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kusaeva/subscriptions","organizations_url":"https://api.github.com/users/kusaeva/orgs","repos_url":"https://api.github.com/users/kusaeva/repos","events_url":"https://api.github.com/users/kusaeva/events{/privacy}","received_events_url":"https://api.github.com/users/kusaeva/received_events","type":"User","site_admin":false},"labels":[{"id":606540090,"url":"https://api.github.com/repos/firebase/firebase-js-sdk/labels/needs-triage","name":"needs-triage","color":"b60205","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-04-18T18:33:10Z","updated_at":"2018-04-18T18:33:11Z","closed_at":null,"author_association":"NONE","body":"I’m using expo and the firebase web sdk (cause native firebase sdk is not working without detaching expo project).\r\nWhen I decided to set up firestore security rules like this:\r\n```\r\nservice cloud.firestore {\r\n   match /databases/{database}/documents {\r\n     match /{document=**} {\r\n       allow read, write: if request.auth != null;\r\n     }\r\n   }\r\n }\r\n```\r\n\r\nsuddenly I got permission-denied. It appears both on Android/iOS\r\n<img width=\"260\" alt=\"screen shot 2018-04-18 at 21 14 18\" src=\"https://user-images.githubusercontent.com/5486933/38950314-b73072d0-434d-11e8-9b88-6ee665d930d3.png\">\r\n\r\nUser is 100% authorized and I am not the only one who experiences this problem. I found it at StackOverflow, Firebase Google Group, Firebase Slack channel, Expo forums but it seems that no one creates the issue here.\r\nThe only solution was suggested at [stackoverflow](https://stackoverflow.com/questions/48054884/firebase-firestore-missing-or-insufficient-permissions-using-expo-react-native) - downgrading firebase sdk to 4.6.2. \r\nBut I really don't like it, it has a problem with firestore on Android and need to be patched.\r\n\r\nI understand that using firebase web sdk for Android/iOS is not the case but is there any chance that the issue will be fixed?\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/firebase/firebase-js-sdk/issues/comments/382485849","html_url":"https://github.com/firebase/firebase-js-sdk/issues/703#issuecomment-382485849","issue_url":"https://api.github.com/repos/firebase/firebase-js-sdk/issues/703","id":382485849,"user":{"login":"firebase-oss-bot","id":26440463,"avatar_url":"https://avatars0.githubusercontent.com/u/26440463?v=4","gravatar_id":"","url":"https://api.github.com/users/firebase-oss-bot","html_url":"https://github.com/firebase-oss-bot","followers_url":"https://api.github.com/users/firebase-oss-bot/followers","following_url":"https://api.github.com/users/firebase-oss-bot/following{/other_user}","gists_url":"https://api.github.com/users/firebase-oss-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/firebase-oss-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/firebase-oss-bot/subscriptions","organizations_url":"https://api.github.com/users/firebase-oss-bot/orgs","repos_url":"https://api.github.com/users/firebase-oss-bot/repos","events_url":"https://api.github.com/users/firebase-oss-bot/events{/privacy}","received_events_url":"https://api.github.com/users/firebase-oss-bot/received_events","type":"User","site_admin":false},"created_at":"2018-04-18T18:33:11Z","updated_at":"2018-04-18T18:33:11Z","author_association":"COLLABORATOR","body":"Hmmm this issue does not seem to follow the issue template. Make sure you provide all the required information."}}
{"actor":{"display_login":"firebase-oss-bot"}}