401错误从Azure的网站Android的推送通知 [英] 401 Error on Android Push Notification from Azure Website

查看:159
本文介绍了401错误从Azure的网站Android的推送通知的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在我的Windows Azure网站,发送推送通知到Android设备的PHP脚本。在谷歌云端控制台。当我设置为允许所有IP的。它工作得很好,但是当我将它设置为仅允许我的Azure网站投入的公网IP​​它给了我401我是否想提供给服务器的公网IP​​?如果不是我怎么得到正确的IP允许访问?

I have a php script on my Windows Azure website that sends push notifications to Android devices. In Google Cloud Console. When I set to allow all IP's. It works just fine, but when I set it to only allow my Azure Website by putting in the public IP it gives me a 401. Do I suppose to provide the Public IP of the server? If not how do I get the right IP to allow access?

感谢您的帮助。

推荐答案

您应该指定您的Azure VIP(虚拟IP)作为允许的IP。
您可以通过调用获取部署服务管理API让您的VIP。
裁判文档这里

You should be specifying your Azure VIP(Virtual IP) as allowed IP. You get your VIP by calling the Get Deployment Service Management API. Ref to Doc here

这篇关于401错误从Azure的网站Android的推送通知的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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