[英]Sending Push Registration from Xamarin.Forms Android to Azure Notification Hubs
I cannot send a registration from my Xamarin.Forms Android App to the Notification Hub. 我无法将注册从我的Xamarin.Forms Android应用发送到通知中心。 After Calling
通话后
hub.Register(token, tags)
I get the following Android error: 我收到以下Android错误:
Javax.Net.Ssl.SSLHandshakeException: java security.cert.CertPathValidatorException: Trust anchor for certification path not found.
Javax.Net.Ssl.SSLHandshakeException:java security.cert.CertPathValidatorException:找不到证书路径的信任锚。
The hub is initialized by 集线器初始化为
hub = new NotificationHub(hubname, listconnectionstring, this)
What could be the reason? 可能是什么原因?
The reason for that error was the fact that I used Azure Germany. 该错误的原因是我使用了Azure德国。 It seems that their Hub Endpoint is causing the error.
看来他们的集线器端点导致了错误。
I changed to Azure Global and the Hub Connection was successful. 我更改为Azure Global,并且集线器连接成功。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.