我在设置端点以通过 ac# 控制器中的 Pub/Sub 接收 Google Play 开发者通知时遇到困难。我已经针对应用程序设置了所有内容以发布到某个主题,并且我已在 Google Pub/Sub 中成功设置了订阅...并且测试通知正在 Google Pub/Sub 上通过...问题是我遇到了在我的服务器端 C# 控制器端点上接收推送通知时遇到问题...我不确定如何设置以及是否有正确的 json 签名。我找不到与此相关的任何示例或文档。任何帮助将不胜感激!
I'm having difficulty setting up an end-point to receive Google Play Developer Notifications via Pub/Sub in a c# controller. I've set everything up against the app to publish to a topic and I have successfully setup a subscription in Google Pub/Sub...and the test notification is coming through on Google Pub/Sub...the problem is I am having trouble receiving the push notification on my server side c# controller end-point...I'm not sure how to set that up and if I have the correct json signature. I can't find any examples or documentation around this. Any help would be appreciated!
发布评论
评论(1)
这是我对Pub/sub的第一个“测试”,该样本对我有用。
请参阅此处的所有样本:
这些步骤需要完成:
测试消息可能看起来像这样:
class class class class in the Backvers in Buckdent in Background note等待。
如果您只想在控制台中尝试,请使用
Console.Readline()
希望这会引导您以正确的方式:)
This is my first "test" of Pub/Sub and this sample worked for me.
See all samples here: https://github.com/GoogleCloudPlatform/dotnet-docs-samples/tree/main/pubsub/api/Pubsub.Samples
These steps needs to be done:
Test message could look something like this:
Class below runs the client in the background without waiting.
If you just wanna try in a console, use the
Console.ReadLine()
Hopefully this will lead you on the right way :)