将新的 APNS 证书更新为 GCM [英] Update new APNS certificate to GCM

查看:34
本文介绍了将新的 APNS 证书更新为 GCM的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在 Apple 开发者中心生成了新证书.奇怪的是,我无法将该证书上传到 GCM,也无法看到 UPDATE 按钮开发者网站.

Generated new certificates in Apple Developer Centre. It's weird i couldn't upload that certificates to GCM and also i couldn't see UPDATE button developer website.

它显示错误 {{ controller.errorMessage }}

It shows error {{ controller.errorMessage }}

我该怎么做?这是 Google Developer 的屏幕截图

How do I do that? Here's a screenshot of the Google Developer

推荐答案

同样的问题我遇到了并且能够解决!

Same issue I was facing and able to solve !

背景:在我的场景中,我们在商店中有一个 iOS 应用程序,并且我们所有的推送通知都通过 Google GCM 配置(我们没有使用 FCM).但是我们遇到了我们的 APNS 证书即将过期的情况,我们不想发布任何 iOS 版本(我们在当前版本上有大约 4k DAU)

Background : In my scenario we have an iOS App in the store and all our push notification configured through Google GCM (We were not using FCM). But we had situation where our APNS certificate is just about to get expired and we don't want to make any iOS Release(We had around 4k DAU on the current version)

一旦证书过期,我们发送的任何通知都会从 GCM 中抛出 InvalidApnsCredential.

Once certificate was expired any Notification we sent was throwing InvalidApnsCredentialfrom GCM.

这里是如何摆脱这种情况.

Here is how to get out of this.

  1. 配置您的 Firebase 项目.(确保您登录了正确的 Google 帐户 - 您为设置 GCM 配置的帐户)
    转到:

  1. Configure you Firebase project. (Make sure you're logged into right Google account - the one you configured for setting up your GCM)
    Goto : https://firebase.google.com > GET STARTED

  2. Choose Import Google Project

您现在必须看到以下所有 GCM 项目 - 如果您使用正确的帐户登录.选择项目.

You must see now all the GCM Project as below - If your logged in with correct account. Choose the project.

现在您的 Firebase 项目已准备就绪.它应该如下所示.

Now your Firebase project is ready. It should look like below.

更新新证书.

  • 在概览中选择设置齿轮.
  • 选择项目设置

现在选择云消息传递标签&现在您可以看到 APN 证书部分.

Now choose Cloud Messaging Tab & now you APNs Certificate section is visible.

  • 如果证书已经过期 - 您必须看到带有 UPLOAD 和 RED 标记的单元格删除选项.使用 * UPLOAD* 上传新的 APNs 证书.
  • If Certificate already expired - you must see RED flagged cell with UPLOAD & DELETE options. Upload new APNs certificate using * UPLOAD*.

你有更好的方法来做到这一点,请分享你的想法!干杯!

You got better way to do it, please share your thoughts ! Cheers !

这篇关于将新的 APNS 证书更新为 GCM的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆