0
votes

I am new to azure and firstly i want to send push notification by azure portal, so i was reading this tutorial https://docs.microsoft.com/en-us/azure/notification-hubs/notification-hubs-android-push-notification-google-fcm-get-started

i have already a blank android app and i want to send push notification by that blank app so can i do it with that or i have to make a new blank app which should be configured with azure notification hub as described in above links point(Connect your app to the notification hub) after connecting with FCM ?

Please help me

1

1 Answers

1
votes

It IS possible, but NOT recommended as your referenced documentation said as below.

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.

If you are making your app for public purpose, bad user could get security key of push notification and could send spam messages. So, to address this issue, you need to create Azure WebApp to register and send push message.