firebase/codelab-friendlychat-ios

Firebase iOS Codelab Swift

sirljan opened this issue · 3 comments

When I follow https://codelabs.developers.google.com/codelabs/firebase-ios-swift there are few issues:

  1. In step 4. Create Firebase console Project in section Connect your iOS app, you can't use Bundle id "com.google.firebase.codelab.FriendlyChatSwift", because Apple won't let you run app on your device. Apple insists on unique bundle id. Maybe every user might want to insert her/his modified bundle id.
  2. In step 5. Identify Users, there is no tab RULES. Maybe it is caused that database isn't created right away when project is created. Either it is missing in codelab or it is issue with creating project.
  3. When I created database manually and inserted the snippet from codelab into RULES it is not possible to make it public. It looks like there is deprecated snippet in codelab. I get error: "Error saving rules - Line 1: mismatched input '{' expecting {'function', 'service', 'syntax'}".

Hey @sirljan ! A fellow app developer here who is trying out the Firebase tutorial :)

For point 2, you have to go to the Firebase console, and click Database, then, choose Realtime Database, then, click Rules

image

Thanks 🙂 After a while I figured it out but I wasn't sure. I just wanted to point out that tutorial is incomplete.

Yea I agree @sirljan ! I don't think you should close this issue (if I may suggest) as the documentation could be clearer; I found some parts of the tutorial missing in information, and doing a google search yielded your result, which makes me think I'm not the only one :) I posted the answer to help others facing the same issue.

fyi @morganchen12 and @ulukaya !