【问题标题】:probelm with angular and firebase cloud messaging角度和firebase云消息传递的问题
【发布时间】:2019-05-31 19:17:41
【问题描述】:

我试图使用 Angular 和 Firebase 云消息传递,我一步一步地按照这个示例进行操作,然后我在控制台上遇到了这个错误。任何人都可以帮忙吗? https://medium.com/@a.adendrata/push-notifications-with-angular-6-firebase-cloud-massaging-dbfb5fbc0eeb

未处理的承诺拒绝:PERMISSION_DENIED:权限被拒绝;区域:;任务:WebSocket.addEventListener:message;值:错误:PERMISSION_DENIED:权限被拒绝 at index.cjs.js:13076 at exceptionGuard (index.cjs.js:690) at Repo.push../node_modules/@firebase/database/dist/index.cjs.js.Repo.callOnCompleteCallback (index.cjs.js:13067) at index.cjs.js:12880 at index.cjs.js:12019 at PersistentConnection.push../node_modules/@firebase/database/dist/index.cjs.js.PersistentConnection.onDataMessage_ (index.cjs.js:12052)

【问题讨论】:

    标签: angular firebase


    【解决方案1】:

    如果您可以显示更多代码,这将非常有帮助

    这个错误是针对firebase中的权限,你可以阅读这篇文章

    Firebase Permission Denied

    您可以尝试在 firebase 中更改此设置

    { “规则”:{ “.read”:是的, “.write”:真 } }

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多