Firebase android security

前端 未结 1 1266
北海茫月
北海茫月 2021-01-28 04:20

i am building a chat android app that allows users to chat where users can create account and use all the features. It\'s about to be completed but there\'s a problem, actually

相关标签:
1条回答
  • 2021-01-28 04:49

    You can't prevent malicious clients from executing whatever code they want against your Firebase project. Someone will always find a way to compromise your app at runtime on a device that you can't fully control.

    The way to protect your data is through sophisticated security rules that:

    1. Requires users to be authenticated (as you already have)
    2. Decide which users can read and write to which locations in your database
    3. Reject invalid data from being written

    This requires a fair amount of thought and effort. You can start with the documentation to learn more.

    Please also read this question on Quora for some more ideas.

    0 讨论(0)
提交回复
热议问题