Shi*_*til 5 android firebase firebase-security firebase-realtime-database firebase-storage
我在我的应用程序中使用firebase,在调试apk一切正常,但当我更改我的构建类型以释放并签署我的apk并运行应用程序数据未加载我做了什么错误的规则?
无法将调试器附加到发布模式apk,因此无法获得如何调试它.
自定义登录工作正常,我可以使用我的注册电子邮件和密码登录,但数据和图像没有加载.
我登录然后尝试显示数据,我认为调用已经过身份验证
我的数据库和存储规则
存储规则
service firebase.storage {
match /b/example-frienda-backend.appspot.com/o {
match /{allPaths=**} {
allow read, write: if request.auth != null;
}
}
}
Run Code Online (Sandbox Code Playgroud)
数据存储规则
{
"rules": {
".read": "auth != null",
".write": "auth != null",
"geofire": {
".indexOn": ["g"],
}
}
}
Run Code Online (Sandbox Code Playgroud)
Proguard 在您的情况下会产生问题,您需要检查 proguard 规则,确保您的所有 Pojo 类都列在 proguard 中。
更好的选择是将所有 Pojo 类放在同一个包中并添加它
-保持类com.memes.trollfootball.data.db.model.** { *; }
进入您的 proguard-rules.pro 文件。
| 归档时间: |
|
| 查看次数: |
2333 次 |
| 最近记录: |