vitaliy-paliy / Messenger

iOS - Real-time messaging app 🎨
Apache License 2.0
615 stars 87 forks source link

App Halted #22

Open Ligmon opened 2 years ago

Ligmon commented 2 years ago

After setup the Firebase, successfully build the project, app will be halted after these pages. How to figure it out? Is that related to the Firebase read/write right?

截屏2022-03-14 下午6 36 54

截屏2022-03-14 下午6 37 26

Ligmon commented 2 years ago

App will stay in the page as below 截屏2022-03-14 下午6 51 00

Ligmon commented 2 years ago

after rebuild the project and run, it will stay in the following page 截屏2022-03-14 下午6 56 39

vitaliy-paliy commented 2 years ago

Set Realtime Database rules to: { "rules": { ".read": true, ".write": true } }

Ligmon commented 2 years ago

Set Realtime Database rules to: { "rules": { ".read": true, ".write": true } }

Thanks for your kind and prompt reply. I have this problem with the following settings:, looking for more of your help

截屏2022-03-14 下午6 17 22

Ligmon commented 2 years ago

I my self also consider this as a problem of database read/write. So where can I got some check points or dash board in Firebase that can help me to locate the problem? thanks for you prompt reply

vitaliy-paliy commented 2 years ago

I think this was the issue that didn't allow you to sign up. If that didn't help, try enabling Email/Password authentication method.

Ligmon commented 2 years ago

I still need more help, thanks in advance...The Email/Password authentication has been enabled as below. I am so looking to figure this out.

截屏2022-03-15 下午6 10 56 截屏2022-03-15 下午6 11 10

Ligmon commented 2 years ago

I mean problem still there if enabled the Email/Password authentication.

Ligmon commented 2 years ago

Is it related to the content of pod file? The sentence to specify iOS version is deleted. So the pod is on iOS 13.2 instead of 9.0

vitaliy-paliy commented 2 years ago

Try reinstalling the project and follow all of the installation prompts carefully.

xoojulian commented 2 years ago

@Ligmon Hi, I've met the same problem. Actually, you need to modify the Storage Rule to the following. You can monitor denied operation in the Usage section of the Firebase console. rules_version = '2'; service firebase.storage { match /b/{bucket}/o { match /{allPaths=**} { allow read, write: if true; } } } @vitaliy-paliy I have followed the README but it seems that in the Storage section, there's no instruction about permission/rule setting.

linhnguyen9988 commented 2 years ago

@Ligmon Hi, I've met the same problem. Actually, you need to modify the Storage Rule to the following. You can monitor denied operation in the Usage section of the Firebase console. rules_version = '2'; service firebase.storage { match /b/{bucket}/o { match /{allPaths=**} { allow read, write: if true; } } } @vitaliy-paliy I have followed the README but it seems that in the Storage section, there's no instruction about permission/rule setting.

edit your Storage Rule to the following rules_version = '2'; service firebase.storage { match /b/{bucket}/o { match /{allPaths=**} { allow read, write; } } }