Microsoft Graph API Chat Subscription notify nothing recently - microsoft-graph-api

I subscribe the chat message about a chat session,and I can see subscription info on "/subscriptions" API,but can't receive any notify on notify URL recently.
Everything was normal before today.Maybe I send message too fast? When it happened,
I can not receive notify any more,what should I do.

Related

Microsoft Graph API Contacts Subscription - Not Receiving Notification

We are migrating over from Outlook API that is deprecated to Microsoft Graph API. We have a working flow where we are subscribed to a user's contacts changed/created/deleted events.
I created a subscription and got back a 201 response and the following:
{"#odata.context":"https://graph.microsoft.com/beta/$metadata#subscriptions/$entity",
"id":"xxxxxxx",
"resource":"me/contactFolders/YYYYYYYYYYY/contacts",
"applicationId":"ZZZZZZZZZZZZ",
"changeType":"created,updated,deleted",
"clientState":null,
"notificationUrl":"https://xxxxxxx.com/xxxxxxx",
"notificationQueryOptions":null,
"notificationContentType":"application/json",
"lifecycleNotificationUrl":null,
"expirationDateTime":"2022-05-21T17:05:09Z",
"creatorId":"444444444444",
"includeResourceData":null,
"latestSupportedTlsVersion":"v1_2",
"encryptionCertificate":null,
"encryptionCertificateId":null,
"notificationUrlAppId":null}
However, I've tried to subscribe to just "me/contacts" instead of a specific folder as well but no matter what I do, my notification URL does not receive any notifications. I have subscriptions for email messages and that one works fine. Is there something that is different with receiving notifications from the old Outlook API vs Microsoft Graph's subscription notification?

Get all the notification when device connect back to the internet in ios

I have developed one iOS chat app in objective-c, in which when UserA send message to UserB at that time UserB get push notification. When UserB get push notification it is calling one url to my backend to know UserA that your message is delivered to UserB(when app is not running or killed). This all working fine visa-versa.
But my problem is that when UserA sends more than 5-10 message to UserB and UserB is not connected to the internet(my backend is also sending successful message to UserB - via FCM). After when UserB connect to the internet its receiving only most recent notification.
This is because apple is maintaining QoS. I read this article.
So to solve this issue I tried to add apns-collapse-id parameter when sending request to send push notification via fcm. But this is combining only max 4 notification at a time. Also this scenario not working all time. Sometimes getting only 1 message not all.
In short I want to display all the message notification same as Whatsapp displaying all notification when connect to the internet.
Please guide me what to do now to solve this issue.
Thanks in advance.
What you can do in this case is,
Remove all the pending notifications from APNS.
[[UNUserNotificationCenter currentNotificationCenter] removeAllPendingNotificationRequests];
Call a service and Pull all the notifications from your server for particular user.
When you receive the response from your server, show local notifications in your app.
Also notify your server which all notifications you have displayed, and mark them delivered on your server. So that next time you can get all the notifications that are not delivered yet.

How to ensure that Publish message through Pubnub IOS SDK was delivered?

I am attempting to integrate PubNub iOS SDK in my project. How can I confirm that the published message was delivered?
Message Delivered Notification
If the publish callback status is success, then you know PubNub Network received it and sent it to all active subscribers.
If you want to be notified when a subscriber or each individual subscriber (if there are more than one) have received the message, then the subscriber(s) need to send (publish) a message back to the publisher.
But how many subscribers are receiving the message? Do you want to receive a message delivered notification for all subscribers? Just something to consider.

How to receive offline messages with XMPP in ios

I am working on a chat using XMPP Protocol. Everything is working fine using XMPP. But I'm unable to receive offline messages from agent when user comes to online. As user A is logged out and user B sends messages to user A, and when user A logs into app, it must receive all the messages that were sent by user B during offline session. How can I receive these messages?
With rooms you can do this easily by joining the chat asking history since the time you went offline. For one-to-one chat, you will have to implement per user offline queue at the server end. And notify server once you are online to receive the chats.

Receiving notifications from Slack Direct messages

I'm building a simple slack bot and can currently send private messages as well as checking for the last 10 messages received within this one-to-one channel.
Is there a way of getting a POST notification to my webservice whenever the user replies, instead of having to poll and continuously check messages on that one-to-one channel?
Now you can make use of Slack events to receive notifications.
In the give use-case, 'Message' event can be used to capture message received and process accordingly.
https://api.slack.com/events/message
Bots generally work by connecting to the real-time messaging API, a WebSocket-based API that sends you events as they happen. Specifically, you should see a message event sent to you every time a message visible to your bot is sent.
To answer your question, there's no way to get an HTTP POST sent to you instead; you'll need to connect to the RTM API and listen for events that way.

Resources