发送推送后未注册的设备 [英] Devices being unregistered after push is sent

查看:149
本文介绍了发送推送后未注册的设备的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这可能听起来很奇怪,但我看不到任何其他解释。

This might sound weird, but I can't see any other explanation.

我在Bluemix上设置了IBM推送通知,这是我之前做过的。出于某种原因,我已经建立了这个新的应用程序。任何时候我发送推送通知,它都没有通过,我尝试再次这样做,它告诉我没有设备。

I've setup IBM Push Notifications on Bluemix, which I have done before. For some reason on this new app that i've built. Any time I send a push notification, it doesn't come through, I try to do so again and it tells me there are no devices.

这只发生在我身上今天,也许这是服务的问题?

This only happened to me today, maybe its an issue with the service?

我尝试/注意到的一些事情:

Some things i've tried / noticed:


  • 我的设备正在注册,并通过控制台从服务接收成功的消息。

  • 我只有1台设备,但监控现在告诉我7台设备已经注册通知。

  • 当使用Web控制台发送推送通知时,它首次显示成功(但没有任何结果),再次单击,显示内部服务器错误:找不到设备

  • 使用swagger文档,我输入appID并搜索设备,没有显示。我运行应用程序,一个显示,我将应用程序放在后台,一个仍然显示。我通过招摇发送通知,说成功,检查已注册的设备,返回空数组。

  • 我的iOS应用程序中的代码仅限于为提供的示例IMFPush / IMFCore cocoapods,用于注册。我没有取消订阅任何类型的代码。

  • 我已经验证了这一点,但没有运行任何我的node.js代码,也没有使用swagger / web控制台工具运行iOS代码。

  • 我正在使用之前用于其他应用程序的沙盒配置文件。

  • 我删除了IMF推送服务并重新创建。

  • My device is being registered and receiving successful messages from the service via the console.
  • I only have 1 device, but monitoring is now telling me 7 devices have registered for notifications.
  • When using the web console for sending push notifications, it says successful the first time (but nothing comes through), clicking again, says Internal Server error: No devices found.
  • Using swagger docs, I input my appID and search for devices, none show up. I run the app, one shows up, I place the app in background, one still shows up. I send a notification through swagger, says successful, check for registered devices, returns empty array.
  • Code in my iOS app is limited to the sample provided for the IMFPush / IMFCore cocoapods, for registering. I have no unsubscribe code of any kind.
  • I have verified this without running any of my node.js code, or iOS code using only the swagger / web console tools.
  • I'm using a sandbox provision profile I have used previously for a different app.
  • I have deleted the IMF push service and recreated.

我们将非常感谢任何帮助/见解。

Any help / insights would be greatly appreciated.

推荐答案

< @Simon请重新下载推沙箱证书并将其从钥匙串中导出为.p12。这似乎解决了这个问题。虽然糟糕的私钥给你无效令牌,但这似乎很奇怪。因此当您尝试向无效令牌设备发送通知时,Apple服务器正在删除设备。请确保您按照正确的步骤生成沙盒或生产证书 https ://console.ng.bluemix.net/docs/services/mobilepush/t_push_provider_ios.html

这篇关于发送推送后未注册的设备的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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