How to send message to specific user in flutter without FCM in flutter - flutter

I am making VC appointment system when the user request for appointment then the admin approve his request and send him a message for appointment now i dont know how the admin send message for that user who wants appointment otherwise everyone can see the admin message in flutter

Related

erpnext: how to send system notificatio particular user wise in erpnext

for example 5 user ,A,B,C,D,E owner send notification notification specific user like A only ahow this notification not all user show this notification

Device to device push notifications logic Swift IOS Firebase

My goal is to implement a function where, when a user (lets call him User1) sends a message to another user (User2), a notification is sent to User2´s device, so he can see the message right on the lock screen. I have already implemented a function where this works. My only problem now is that when I send the push Notification from User1´s device to User2´s device, I don't know if User2 is on the account that he should receive the message on.
If User2 has logged into a different account and User1 sends him a message, he sees this message, although User2 is in a different account and shouldn't see this message. Is there any way to know if a user logged into a different account and to then block the notification from showing on User2´s device?
Firebase Cloud Messaging has no concept of a user. It only knows about devices, or more explicitly app instances (a specific app on a specific device is an app instance).
If your use-case is based around users, your application logic is making a mapping from a user to their FCM instance ID/IDs. If you want the user to not receive a message anymore on a specific app instance, you need to remove the mapping you made.
The most common way to do this is to remove the mapping when the user signs out from your application on a specific device.
Since this is all rather abstract, I recommend also checking out:
When to register an FCM token for a user
Removing a user from Firebase
How to send FCM messages to a different user
Android: How to handle user logout Firebase Cloud Messaging in 2021
How to get Firebase user id from FCM token? (in admin code on server)

How currentuser send request notification to another user via fcm in flutter?

I have a list of users those data in available in my firestore.
I want that, if currentuser want to send a request notification to other use. How I build it?
Alright.
A user can have multiple FCM tokens because tokens are binded to a device and they have no clue about User entity.
So what you can do is to create a tokens array inside each user document and when a user authorize to receive notification on his device, you add the new token to that array.
You could write a cloud function called notifyUser where you pass in the userSender ID and the userRecipient ID. And then you could simply grab the userRecipient user object and then call the messaging() function from the admin SDK to send your payload to all devices (based on the user token).

Start conversation without user interaction in Facebook Messenger

Is it possible to send a message to a user without the user interacting with the bot first?
I'm using the following guide to retrieve psids from users that have already connected their profile to an app that I own.
https://developers.facebook.com/docs/messenger-platform/connecting-accounts.
For users that have at least one interaction with a page that I also own, I'm able to get their id. For all other users the endpoint returns an empty array.
Im aware of customer matching but is that the only way to achieve this?
You can't send a message by bot before the user initializes the conversation.
Facebook Messanger Bot permits a standard messages, with a 24-hour interval
to reply to a message initiated by a user. In Some specific cases, Facebook permits to send a message after this time.
A message are triggerd when the user either sends a message to a company or clicks a call button for action in Messenger, or when the user requests a message from a company through a plugin, such as send to Messenger.
Check out the policies here : https://developers.facebook.com/docs/messenger-platform/policy-overview
You are correct, customer matching is your only option for this.
Just learned this today, if you have a user's phone number, you can message them unprompted. You also need the pages_messaging_phone_number permission, which you can only get by paying the $99 customer matching fee.
Check the docs on sending to phone numbers here. Customer matching docs here

BlackBerry 10 / WebWorks 2 send email automatically

I'm writing an app to prepare an email message with data provided by the user in a form. Upon the user clicking "finish" in the form, the email message gets prepared on the email card, but the user still has to click Send.
I used this method to prepare the message: blackberry.invoke.card.invokeEmailComposer. How do I get the message to send immediately after the message is prepared?
That behavior is currently not available. As you describe, the invokeEmailComposer() method opens a new screen (named a 'Card') where the user can confirm/modify/cancel/submit an email.
One of the benefits of the emailComposer card is that you give the user the ability to select which email account they wish to send it from (e.g. if they have both a personal and work account on the device).