gpt4 book ai didi

rest - 似乎无法找到使用 Azure Messaging 推送通知的方法

转载 作者:行者123 更新时间:2023-12-03 00:33:04 25 4
gpt4 key购买 nike

我一直在开发一个用于通信的 iOS 应用程序,我希望它能够接收和发送推送通知。我想通过使用 Azure 通知中心服务来实现这一目标。我一直在关注this (click here)教程直到它显示“从后端发送通知”。之后我有点迷失了:

· 我似乎无法安装 NuGET 包 WindowsAzure.ServiceBus,因为它返回此错误

Adding WindowsAzure.ServiceBus... Attempting to resolve dependency 'Microsoft.WindowsAzure.ConfigurationManager'. Adding 'Microsoft.WindowsAzure.ConfigurationManager 2.0.3' to Board. Could not install package 'Microsoft.WindowsAzure.ConfigurationManager 2.0.3'. You are trying to install this package into a project that targets 'MonoTouch,Version=v1.0', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author.

· 我想过使用 REST Sharp,但我不知道如何使用该库连接到 Azure 通知中心并推送通知

拜托,任何想法或评论都将不胜感激,因为我最近几天一直在研究这个问题,而且我似乎找不到一个简单的解决方案。我想要做的就是将通知推送到服务器,以便所有其他客户端都可以收到它 - 例如,如果用户发布图像,我希望所有其他用户都收到通知。我似乎无法找到一个简单、直接的答案来解决我的问题。

谢谢!!

最佳答案

我在将 nuget 包安装到 xamarin 应用程序时发现了同样的问题。所以我创建了一个单独的 Web API 来将消息推送到所有设备。

关于rest - 似乎无法找到使用 Azure Messaging 推送通知的方法,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27871723/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com