How can I get clients to send messages from whatsup to the cell phone number they used to register on my website with nodeJS and twilio? - node.js

how can I get with the twilio whatsap api that clients can send messages to the user who registers on my website.
For example, if the user registered with the number 12345, the clients can send messages to the number 12345 of the cell phone.
Then if another user registers with the number 456789, their clients can send messages to the cell phone number 456789 and so on.
At the moment I am thinking of using twilio, but if you can recommend another api that works with nodejs I would appreciate it
i am working with nodejs
thanks

Related

sending thousands of firebase push notifications with dynamic message

I've this case when I have to send message to collection of devices using their tokens but I want to put user name or some data that related to the user (variable) in the body of the notification like
Dear %name% you got degree %degree%
The problem now that I've to send a notification request to each user that's mean if I have 100k user => 100k request
Now I'm using Redis queue for the sending but I want to know if there is better way to do that
Not sure how it is used together with Redis, but at last look into it:
Make sure that you send your messages in batches. Build lists of 500 individual messages and send those using e.g. sendAll() from the FCM admin SDK.
Stating the obvious: 100k messages will be 200 requests.
https://firebase.google.com/docs/cloud-messaging/send-message#send-a-batch-of-messages

How can I track unread messages in a messenger app

I am building a chat app using Node.js, Express, React and Socket.io. I want to keep track of unread messages so I can notify the user with unread messages count. Should this be implemented on both server and client sides?
Check this to see some of the tradeoff doing it either on client or server side.
Also it depends on how you are implementing it.
I'm currently doing something very similar and I chose to keep track of the last time the user checked the chatroom/ conversation and compare it to the created_at date of the messages. So the server sends off all the chatrooms and their last 50 messages to the client. I then calculate the number of unread messages directly in redux via a helper function and display it on the chatroom badge.

Sender shows as NOTICE when sending sms from a dedicated Indian AWS pinpoint phone number

I have purchased a dedicated AWS pinpoint long code for India (ie. An Indian phone number) for $120/mo. I'm not using any keywords. I've enabled two way sms on it. I'm able to receive messages on it and send messages, however when I send a message, the sender id shows up as NOTICE to the user.
Thus a conversation is not possible because while to user has to send a message to the dedicated long code, they receive a reply from a different number.
eg. When I send this message:
{
"ApplicationId":"6b07b70b18714cf6ba60fb5446123456",
"MessageRequest":{
"Addresses":{
"+914321321321":{
"ChannelType":"SMS"
}
},
"MessageConfiguration":{
"SMSMessage":{
"Body":"Your message was received, we will contact you shortly. ",
"MessageType":"TRANSACTIONAL",
"OriginationNumber":"+911234123123"
}
}
}
}
The person receiving it sees it from sender "NOTICE". Even if I explicitly specify the senderId to be the same as the origination number. ie. I add ,"SenderId":"+911234123123" to the above, the behavior is the same.
Am I missing something, or is the AWS Pinpoint dedicated long code two way sms functionality broken in India?
This use case should be supported according to the AWS docs here:
https://docs.aws.amazon.com/pinpoint/latest/userguide/channels-sms-originating-identities.html
I've found that this is not possible on all SMS api providers in India and I experienced the same behaviour on multiple different SMS api providers (aws/textlocal/some other). I also found a picture in the docs of one provider that showed this was not possible.
ie. India telecom infrastructure does not allow responses from long codes.
The infrastructure does allow responses from shortcodes, but sending a sms to a short code charges customers Rs 3., while a customer sending a message to a long code is billed at their standard sms rates.

how to send push notification for a specific device in windows phone 8 using azure

I am developing windows phone application, For that I need to send push notification for a specific device or specific phone.
I have succeed to send push notification for all device by one click, But I am unable to achieve to send a push notification for a specific phone. I have tried a lot i net but I can not find it out.
Hey you need get token or device id of your phone and save into server and one more thing, when you will register on Microsoft console, It provide us server key that key you need for server side. then you can get notification by MPNS.. thanks
Try this way,hope this will help you to solve your problem

Is it possible to have a J2ME app get an SMS and send it to a computer?

That's basically my question, I have written the code for sending/receiving SMS but it's basically a "server/client" so I can't get the SMS that are sent directly to the phone number instead of through the j2me program. Is it even possible?
It is quite possible to write an app that receives an incoming SMS, extracts the message and sends it to server through a HTTP call. You can then make that server send that SMS to another phone.
Using the Wireless Messaging API (JSR 120) you can receive SMS to a JavaME application. However, you must register to receive SMS on a particular port, and you cannot read SMS from the phone's standard inbox.
Register:
import javax.wireless.messaging.MessageConnection;
MessageConnection connection =
(MessageConnection) javax.microedition.io.Connector.open("sms://:1234");
There are 2 different methods of receiving SMS:
event-driven using javax.wireless.messaging.MessageListener
using blocking method javax.wireless.messaging.MessageConnection.receive()

Resources