Azure:空白 android 应用程序是否应该配置 azure 库以发送 azure 推送通知?
Azure: Should a blank android app configure with azure library to send azure push notification or not?
我是 azure 的新手,首先我想通过 azure 门户发送推送通知,所以我正在阅读本教程 https://docs.microsoft.com/en-us/azure/notification-hubs/notification-hubs-android-push-notification-google-fcm-get-started
我已经有一个空白的 android 应用程序,我想通过该空白应用程序发送推送通知,所以我可以用它来做,或者我必须制作一个新的空白应用程序,该应用程序应该配置 azure 通知与 FCM 连接后,如上链接点(将您的应用程序连接到通知中心)中所述的集线器?
请帮帮我
It IS possible,但不推荐,因为您的参考文档如下所述。
This example of sending notifications from the client app is provided for learning purposes only. Since this will require the DefaultFullSharedAccessSignature to be present on the client app, it exposes your notification hub to the risk that a user may gain access to send unauthorized notifications to your clients.
如果您是出于 public 目的制作应用程序,恶意用户可能会获得推送通知的安全密钥并可能发送垃圾邮件。因此,为了解决这个问题,您需要创建 Azure WebApp 来注册和发送推送消息。
我是 azure 的新手,首先我想通过 azure 门户发送推送通知,所以我正在阅读本教程 https://docs.microsoft.com/en-us/azure/notification-hubs/notification-hubs-android-push-notification-google-fcm-get-started
我已经有一个空白的 android 应用程序,我想通过该空白应用程序发送推送通知,所以我可以用它来做,或者我必须制作一个新的空白应用程序,该应用程序应该配置 azure 通知与 FCM 连接后,如上链接点(将您的应用程序连接到通知中心)中所述的集线器?
请帮帮我
It IS possible,但不推荐,因为您的参考文档如下所述。
This example of sending notifications from the client app is provided for learning purposes only. Since this will require the DefaultFullSharedAccessSignature to be present on the client app, it exposes your notification hub to the risk that a user may gain access to send unauthorized notifications to your clients.
如果您是出于 public 目的制作应用程序,恶意用户可能会获得推送通知的安全密钥并可能发送垃圾邮件。因此,为了解决这个问题,您需要创建 Azure WebApp 来注册和发送推送消息。