firebase / firebase/firebase-admin-node

[FR] Allow to upload APNs auth keys to Firebase

未关闭
#2,204 1 条评论 3 个 reaction 已指派 0 人 在 GitHub 查看
type: feature request
主要语言
TypeScript
星标
1.7k
派生
419
平均合并
3 天 10 小时
30 天内合并 PR
16

描述

**Is your feature request related to a problem? Please describe.**
We are trying to automate Firebase app creation since we manage many apps and most of them need push notifications. I played around with the Firebase admin SDK and got the most stuff working somehow, but I can't figure out how to upload the APNs auth key to Firebase. Is there and official way to do this via this SDK or via Rest API?

**Describe the solution you'd like**
I would like to have an SDK method or rest API endpoint where I can upload an Apple Push Notification service authentication key to Firebase so we can send push notifications to iOS apps managed in Firebase.

**Describe alternatives you've considered**
The alternative to having a method in the SDK would be at least a rest API endpoint.

**Additional context**
Funnily in my desperation I asked ChatGPT how it would solve this and it generated this code:
```js
const messaging = admin.messaging(app);
const apnsKey = {
authKey: '/path/to/AuthKey_XXXXXXXX.p8',
keyId: 'XXXXXXXX',
teamId: 'XXXXXXXX',
};

messaging.setApnsCredential(credential, apnsKey);
```

But I looked around the repo (even in older revisions) and could not find any method like this. Was there any and if yes, when and why was it removed?

贡献指南

打开贡献指南

调研方向

首先查看 Firebase Admin Node.js SDK 的 messaging 接口和 Firebase REST API 文档,以确定是否支持上传 APNs 身份验证密钥;issue 未指定 repository 文件或测试。完成的标准是确定一条用于上传密钥的 SDK 或 REST API 路径,或清楚记录一种受支持的替代方案。

由索引模型根据 Issue 内容生成。

评估

技术栈
node.js, typescript
领域
api, cloud
Issue 类型
功能
难度
5/5
预计耗时
一周以上
活跃度
停滞
描述清晰度
需要澄清
新手友好度
30/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。