Android - Sinch 使用 ManagedPush 从自己的服务器获取推送

Android - Sinch get push from own server with ManagedPush

我将 Sinch 用于 App-to-App 消息传递,并将 ManagedPush 设置为 true,其中指出

NOTE: Using setSupportManagedPush(true) will register a token with Google Cloud Messaging using a Sender ID connected to Sinch, which will implicitly unregister your own token. You should not register any token with GCM if using Sinch push notifications.

现在除了来自 Sinch 的即时消息推送通知外,我还想从我自己的服务器接收其他通知,如所有用户的一般广告等,我做了一些研发但无法弄清楚以下内容

  1. 由于 Sinch 自己注册了 GCM 令牌,所以我可以使用相同的令牌从我自己的服务器发送推送通知吗?
  2. 如果 1 的答案是肯定的,那么我如何才能让 Sinch 注册的令牌发送到我自己的服务器以接收来自我自己的服务器的通知以及通过 Sinch 发送的通知?
  3. 或者有什么方法可以从 Google 服务器通过 Sinch 注册 GCM 令牌?

如果您已经拥有发送推送的基础设施,我会使用它而不是托管推送。因此,而不是 setSupportManagedPush(true) 设置 setSupportPush(true) 然后在 onShouldSendPush 事件

中将推送发送到您的服务器