Not receiving notification when using Azure hub notifications rest api from Postman - azure

I want to integrate Azure push notifications REST API in Mule 4. I have registered my device to the azure portal hub and I am receiving the notification when sending the notification directly from azure portal.
But when using the rest api from postman, I am not receiving it although it returns me a 201 CREATED response.
I am not targeting any tags. I tried direct send, gcm native. could not receive any notifications.
Direct Send API Headers
Direct Send API Body

Related

how to send signal r notification to azure ad authenticated users from azure function app?

Hi I have azure data factory which will be triggered by users which they are authenticated via azure ad implicit flow. ADF after the run will send events to service bus. Now I have to write azure function app based on the service bus trigger. In app function I want to send notification to users via signal r. But my problem is whoever triggered adf for them only I need to send notification. UI will trigger adf and adf will send events to service bus and in this flow UI will send user information to adf and adf will send user information to service bus event also. But In azure function app I want to send notification to only those user who triggered ADF.
public void BroadcastMessage(string message)
{
Clients.Caller.SendAsync("broadcastMessage", message);
}
Currently above code I am using in my other application which will send notification to web app. When coming to azure function app how can I send notification to only specific user who triggered ADF. I have seen several example with azure app service authentication but not with azure ad. My front end is currently having azure ad authentication and deployed in app service but I do not have app service authentication.Can someone help me is it possible or what would be the correct approach? Any help would be greatly appreciated. Thank you
The negotiate endpoint accepts a UserId parameter that could pass around to later identify the user to notify.
While the example is fetching the user identity for app service, you could leverage runtime binding if you are using C#. For non-C# languages, you could have an "internal" negotiate function that is called by the "external" negotiate function passing in the extracted user identity from the JWT token.
With this, you could extract the same user identity in the function that initiates the ADF pipeline passing this value, which ADF could include in the service bus messages it sends later on.

Bearer from Azure request missing

I'm facing an issue of communication from Azure to Mashery (and so Mashery to my code but it's work).
I'm in a professional Azure environment.
From a user's request, Azure has to send his request to our program in my company's cloud (thanks to the messaging endpoint of the bot azure). However for security, Azure has to send it through Mashery.
In consequence my code needs to receive users' requests with a security layer using Mashery : Azure has to be authenticated by Mashery.
It's required to work properly with the SDK. The SDK requires a bearer in the header of the message. However there is no bearer currently.
How can I setup Azure to authenticate itself to Mashery (before sending the user's request at the messaging endpoint) ?

Push notification from Notification Hub not working but in FCM it is working

I have configured my Notification Hub with FCM and have configured my Android mobile app (running in Emulator) to receive notifications. The issue I face here is, If I send test notification from FCM I am getting the notification in Emulator but If I am sending the notification from Azure Notification Hub I am not getting the notification. I have configured as advised by the link (Assigned API Key with server key and legacy key). Also, I see that the Registration ID in the Test Notification is the registration ID of the running emulator also.
So what should I check now here? so that I can make notification work from Azure Notification Hub?
Are you using HTTP Trigger for triggering azure notification hub?
Because HTTP Trigger doesn't support FCM, it supports GCM (which is depreceated one)
So, Trigger Android using FCM

Can you use Botkit and botframework on azure webchat and skype?

I've set up a starterkit on studio.botkit.ai for Microsoft Teams. The bot is hosted on glitch. In Azure bot registration I've included the endpoint provided by glitch. Ive also added my id and password from azure bot registration to my bot.
When I try and test out the bot in azure web chat I sends an error that reads
"There was an error sending this message to your bot: HTTP status code NotFound"
It this possible?
Check to make sure the messaging endpoint URL configured in Azure matches your Glitch url for Botkit, which will include "/receive/teams"

Create stripe webhooks using API

Is it possible to create webhook in stripe account using API if we have client secret key of destination account?
No, webhook endpoints can only be created, edited or removed via the dashboard, not via the API.
EDIT: This is no longer true. Webhook endpoints can now be managed via the API: https://stripe.com/docs/api/webhook_endpoints.
If you want to receive events emitted from accounts that are connected to your platform, you need to set up a Connect webhook endpoint on the platform's account, not add endpoints to each connected account. See the documentation here for more information.

Resources