codelab-friendlychat-ios icon indicating copy to clipboard operation
codelab-friendlychat-ios copied to clipboard

Firebase iOS Codelab Swift

Open sirljan opened this issue 6 years ago • 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'}".

sirljan avatar Sep 16 '18 09:09 sirljan

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

amchew avatar Dec 19 '18 02:12 amchew

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

sirljan avatar Dec 19 '18 08:12 sirljan

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 !

amchew avatar Dec 19 '18 17:12 amchew