【发布时间】:2018-11-02 01:25:14
【问题描述】:
我在 Swift 中遇到以下错误,任何人都可以建议或提供解决方案。
SUCCESS: {
error = {
code = 401;
message = "Request is missing required authentication credential. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project.";
status = UNAUTHENTICATED;
};
}
我正在使用 firebase 发送推送通知。
【问题讨论】:
-
这是由于您没有告诉您的应用程序请求推送通知权限时引起的。您的应用正在尝试激活推送通知,但您的手机尚未授予您的应用使用推送通知的权限。
标签: iphone swift firebase firebase-realtime-database