How to get callback information on how many notifications sent to which user? - azure-notificationhub

I am using Azure Notification Hub for sending mobile notification from Node.js. I am using Tags when I send Notification, I need to store how many users received notification. But in the callback, I am not getting any information.
Is there any way to get this information?

What Billing subscription are you using for Azure Notification Hubs? Only the standard billing tier provides detailed telemetry.
All Azure Notification Hubs is going to know is that the PNS accepted the notification. You should update your client application to send results to the backend application when the notification arrives on device.

Related

How to setup push notification with supabase in flutter?

I had just replaced my app with supabase from firebase in flutter app.
Firebase has firebase_messaging that provide push notification to device token.
Is there any facilities to create function in supabase and send notification to selected user with device token while changing in database.
If yes than please suggest some function else suggest some method to send notification.
Supabase does not provide a mechanism to send push notifications at this point, so you can use FCM or other push notification sending services to send them out to the users.
If you are going with FCM, you can setup your own backend using Firebase cloud functions or other backend service that you prefer to send the notifications from.
Typically, you would want to send push notifications to your users when there is some kind of change in the database, like when there was a new message sent or someone liked a post. You can listen to these events using Supabase database webhooks. With database webhooks, you can send your backend a request whenever you receive certain data change happening in your database.

IsThere Any way to Get Notifications like this"Good Morning (User Name) "

I am New and Creating Xamarin Forms Application , I need Help to Give Message Like "Good Morning" or "Did You Forget to To Login" message Notification to User.
Thanks In advance
There are two kinds of notification you can choose:
Local notification:
Here is the document, local notification send by applications. It can be time or location based, you can also choose repeat or not by config the notification.
Remote notification:
Here is document about remote notification in Xamarin.Android: Google Messaging
Xamarin.iOS: about-remote-notifications
Remote notification send by you. You can choose to send the notification at any time with any content. It is different in iOS and Android. You can read the document for more information.
Send and receive push notifications with Azure Notification Hubs and Xamarin.Forms

How to send mass notification to all users who is using my application

i am developing a Facebook application using PHP SDK. According to FB Developer docs, notifications can be send with this metdod;
POST /{recipient_userid}/notifications?access_token= … &template= … &href= …
but This Methot let me send notification to user with "{recipient_userid}" value. But i am trying to send all users a notification. How can i do it?
By finding all members who is using Application and in a loop one by one Notification sending?
thank you for your Help.
I haven't try this yet but i think facebook batch requests is the answer.
https://developers.facebook.com/docs/reference/api/batch/
I frequently have to send notification to all my app users (about 30000 users) and it takes too long. Sending by one by method can't let you send instant notification for all your users, if it works, then it will be also possible.

Could one iOS application support multiple push notification registration?

This is the first time that I approach the push notification service and I'm little bit confused. I 'd like to have just some conceptual help, not code.
I need to build an app that should receive and register for different kind of notifications. For instance in my app I'd like that users could register for PROMO notifications category and NEWS notifications category, I'd like that they could choose which one they want to be notified.
Reading the Apple doc, that was not so clear to me, it seems that once the app device is registered I receive just one token and seems impossible to receive more tokens for different kind of registration(NEWS and PROMO for instance), because the token is related to the app and the device. Is that correct?
The other thing that is not so clear to me is, if a device is registered for a specific notification is it possible to send the notification only to a set o devices?
If nothing of that is offered by Apple Push services do you think that is possible to manage everything like that:
-I register the app device for notification if (PROMO || NEWS) are selected
-I get the token
-I send the token to my server giving also as additional info about the service which the user wants to subscribe
-The server (provider) register the token and the kind of subscription (PROMO || NEWS)
-Later when I have a notification to push I ask the server all the tokens registered for that specific category and then I send the notification only to those devices registered for that category.
Thanks for helping me out I'm really confused.
"Reading the Apple doc, that was not so clear to me, it seems that once the app device is registered I receive just one token and seems impossible to receive more tokens for different kind of registration(NEWS and PROMO for instance), because the token is related to the app and the device. Is that correct?"
YES
The other thing that is not so clear to me is, if a device is registered for a specific notification is it possible to send the notification only to a set o devices?
YES, you need a DB where you connect a Push Token with the related Services (promo | news). If you have a new Promo Push Message you send the message to all related token. on the app site, everytime the user change the categorie (promo / news) you should prpvide these infos to your service with the push token.
These are all problems that you have to solve yourself on the server side. The push service simply provides a means to send a single message to a single device. You have to figure out yourself which messages you want to send to which devices. Each message has to be sent individually, there's no way to "broadcast" a message to all your users directly.
You could think of the push tokens as email addresses – of course, one email address might be subscribed to different newsletters from the same publisher, but it's the publisher's job (yours) to figure out whom to send which newsletters, not the email provider's (Apple's).
You should think of the push notification registration like my I send the user push notifications. Not what kind of push notification can I send the user.
Then you need to do serverside filtering on you categories, like the ones in your example promo and news.
The perferance of the user should be stored on your server, so you will know what kind of notification to send to which user.

Apple Push Notifications to specific Users

as far as I understand APN's I can only send them to the app not a specific user that uses my app.
Is there a way of sending APN's only to specific users that use my app? I can't think of a way of doing this...
Greetz
APNS is not a broadcast medium. As it says in the documentation:
Apple Push Notification service transports and routes a notification
from a given provider to a given device.
When you send a notification from the server, one of the paramters is the device ID.
Apple's Push Notifications are always sent to specific 'users' (a specific device being an iphone, ipad)
What you do when you want to use APN is register the application for push notifications. Then you get a token that links the user's device to the notification service. You then use this token to 'push notifications' to APN which will in turn send a notification to that device. Notifications are pushed by 'Providers'.
Here's apple's documentation on the matter: Apple Push Notifications
Look up 'Registering for Remote Notifications' to register the device
and 'Handling Local and Remote Notifications' to handle the incoming notifications.
Read up on how to send notifications here: Providers
It is possible. I use Easy APNS and in newMessage() you can specify the PID (saved in a MySQL database) of the user.
Have a look at http://www.easyapns.com/