I have an ecommerce app created with flutter ( under development),,
so I heard about the Stream_chat_flutter SDK ,, It is a really simple and easy solution to deal with, So my question is I have a user and a seller in my app and I want to make channel conversation between the seller and this particular user so when this user want to send a message to this seller in this time the channel will be created and the seller will be notified and get the message , How can I implement this with your Sdk?
note: that the seller can be contacted by many users .
(I have a authentication system with firebase.)
Capture from the app
Capture from the app
Channels are unique either by specifying a channel ID or a list of members in the create request.
If you want a private one on one channel between one user and a seller, use this:
client.channel("messaging", extraData: {"members": ["user_id", "seller_id"]});
See here for more info.
You can specify as many members as needed to create a group chat.
Related
I'm trying to send test message on WhatsApp Business API
it took a day until I was shown a test number on "from" option
now I need to register the test phone but don't know how.
the register link take me to the configuration page,
but there is no option to register
Here is my WhatsApp account:
You can't add any testing phone numbers, Facebook App by default provides one, that you can see in From dropdown,
You can add only productions phone numbers, follow the below ways,
You can find the option in your Facebook App > Getting Started under WhatsApp menu,
Second, you can add from Your Business Setting,
Read more about how to register a phone number in WhatsApp Business,
https://developers.facebook.com/docs/whatsapp/phone-numbers
I also experienced this, it seems to be a bug in facebook itself or some lock in relation verified business, I did a test by creating a new business account and also a new application for this account , I activated whatsapp business and everything worked perfectly. But when I try to do the same procedure with an already verified account, the test number requests some kind of registration and also sends a notification that the test number was not approved. Unfortunately I haven't found any solution for this yet.
notification refused number
Whatsapp just released their api (yeah FINALLY!)
You have to confirm a phonenumber. I was wondering if you could create multiple Whatsapp bots with one phonenumber. Or you would need to buy prepaid cards for each new bot to receive sms and confirm that number.
Each bot should have it's own number.
When a user sends a message, the correct bot needs to load which is not possible, as it cannot guess which one was intended.
A possible workaround is to combine all bots into a single one and create a redirection phase (first one obviously) with a "bot selection menu".
For example:
Hi, please choose the correct service:
shopping helper
calendar
timer
app downloader
Choosing an option will load the requested agent
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)
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
I am fairly new to iOS app developemt but I am doing some research on behalf of a client who wants to create a native or hybrid iOS app that allows users to take a photo using their iPhone camera and proceed to automatically send that picture (upon confirmation by user), with a unique identifier attached to the email, to a predetermined email address. Is this reasonably straightforward? Are there any privacy issues that need to be addressed when sending this type of data?
Also, how would that user be identified so that the relevant response can be sent back to them? Basically, what happens is the photo of the product is received and that product is manually sourced from a chain of partner merchants. Then, the prices and merchant details are sent back to the user. How might this work on iOS?
Many thanks, sorry if this sounds too vague but just ask for more details.
You can Use PHP for backend For Uploading the image in server and Generating a unique code for each pictures uploaded by user.
So the process is like iPhone -->upload.php -->get the response link from php and mail that link to specified